org.jboss.profileservice.spi
Interface ProfileRepository


public interface ProfileRepository

An interface for obtaining a DeploymentRepository for a Profile.

Version:
$Revision:$
Author:
Scott.Stark@jboss.org, Emanuel Muckenhuber

Method Summary
 DeploymentRepository createProfileDeploymentRepository(ProfileKey key, ProfileMetaData metaData)
          Create a new DeploymentRepository for a profile.
 DeploymentRepository getProfileDeploymentRepository(ProfileKey key)
          Get a created DeploymentRepository for the given profile key.
 Collection<ProfileKey> getProfileKeys()
          Get the keys for all known profiles with a deploymentRepository.
 void removeProfileDeploymentRepository(ProfileKey key)
          Remove the DeploymentRepository for the given profile key.
 

Method Detail

getProfileKeys

Collection<ProfileKey> getProfileKeys()
Get the keys for all known profiles with a deploymentRepository.

Returns:
keys for all known profiles.

createProfileDeploymentRepository

DeploymentRepository createProfileDeploymentRepository(ProfileKey key,
                                                       ProfileMetaData metaData)
                                                       throws Exception
Create a new DeploymentRepository for a profile.

Parameters:
metaData - - the profile meta data.
Returns:
the profile DeploymentRepository
Throws:
Exception - for any error

getProfileDeploymentRepository

DeploymentRepository getProfileDeploymentRepository(ProfileKey key)
                                                    throws NoSuchProfileException
Get a created DeploymentRepository for the given profile key.

Parameters:
key - - the key for the Profile to obtain the DeploymentRepository for.
Returns:
the profile DeploymentRepository
Throws:
NoSuchProfileException - thrown if there is no such profile.

removeProfileDeploymentRepository

void removeProfileDeploymentRepository(ProfileKey key)
                                       throws Exception,
                                              NoSuchProfileException
Remove the DeploymentRepository for the given profile key.

Parameters:
key - - the key for the Profile to obtain the DeploymentRepository for.
Throws:
NoSuchProfileException - thrown if there is no such profile.
IOException - thrown on error removing the repository
Exception - for any error


Copyright © 2010 JBoss, a division of Red Hat, Inc.. All Rights Reserved.