Package org.jboss.profileservice.spi

Examples of org.jboss.profileservice.spi.DeploymentRepository


    * @throws Exception for any error
    */
   protected void remove(DeploymentID dtID) throws Exception
   {
      String[] names = dtID.getNames();
      DeploymentRepository deploymentRepository = getDeploymentRepository(dtID);
      log.info("Remove, "+Arrays.asList(names));
     
      for(String name : names)
      {
         // Remove from repository
View Full Code Here


      return this.repositories.keySet();
   }

   public DeploymentRepository getProfileDeploymentRepository(ProfileKey key) throws NoSuchProfileException
   {
      DeploymentRepository repository = this.repositories.get(key);
      if(repository == null)
         throw new NoSuchProfileException("No such repository for profile: "  + key);
     
      return repository;
   }
View Full Code Here

      if(metaData == null)
         throw new IllegalArgumentException("Null metaData");
      if(metaData.getName() == null)
         throw new IllegalArgumentException("Null metaData name");
     
      DeploymentRepository repository = this.repositories.get(key);
      if(repository == null)
      {
         String type = null;
         if(metaData.getSource() == null)
            throw new IllegalStateException("No profile source.");
View Full Code Here

      return factory.createDeploymentRepository(key, metaData);
   }

   public void removeProfileDeploymentRepository(ProfileKey key) throws Exception, NoSuchProfileException
   {
      DeploymentRepository repository = this.repositories.remove(key);
      if(repository == null)
         throw new NoSuchProfileException("No such repository for profile: "  + key);
     
      // Remove
      repository.remove();
   }
View Full Code Here

         throw new IllegalArgumentException("Null profile key.");
      if(metaData == null)
         throw new IllegalArgumentException("Null profile meta data.");
     
      // Start to create the profile
      DeploymentRepository repository = profileRepository.createProfileDeploymentRepository(key, metaData);
     
      // Create the profile
      AbstractProfile profile = new AbstractProfile(repository, key);
     
      // Copy the sub-profile keys
View Full Code Here

/*     */   }
/*     */
/*     */   public Profile newProfile(ProfileKey key)
/*     */     throws Exception
/*     */   {
/* 175 */     DeploymentRepository repo = this.profileRepository.createProfileDeploymentRepository(key);
/* 176 */     return new ProfileImpl(repo, key);
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   public DeploymentRepository createProfileDeploymentRepository(ProfileKey key)
/*     */     throws Exception
/*     */   {
/* 123 */     DeploymentRepository repository = this.repositoryFactory.getDeploymentRepository(key);
/* 124 */     repository.create();
/* 125 */     return repository;
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   public DeploymentRepository getProfileDeploymentRepository(ProfileKey key)
/*     */     throws Exception, NoSuchProfileException
/*     */   {
/* 134 */     DeploymentRepository repository = this.repositoryFactory.getDeploymentRepository(key);
/* 135 */     repository.load();
/* 136 */     return repository;
/*     */   }
View Full Code Here

/*     */   }
/*     */
/*     */   public void removeProfileDeploymentRepository(ProfileKey key)
/*     */     throws Exception, NoSuchProfileException
/*     */   {
/* 142 */     DeploymentRepository repository = this.repositoryFactory.getDeploymentRepository(key);
/* 143 */     repository.remove();
/*     */   }
View Full Code Here

TOP

Related Classes of org.jboss.profileservice.spi.DeploymentRepository

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.