|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface DeploymentRepository
An interface for managing the contents of a Profile.
| Method Summary | |
|---|---|
void |
addDeployment(String name,
ProfileDeployment deployment)
Add a deployment. |
String |
addDeploymentContent(String name,
InputStream contentIS)
Upload raw deployment content to a profile repository. |
String |
addDeploymentContent(String name,
InputStream contentIS,
DeploymentOption... options)
Upload raw deployment content to a profile repository. |
int |
clearDeploymentContentFlags(String name,
int flags)
Clear one or more flags for the deployment. |
void |
create()
Create the repository. |
ProfileDeployment |
getDeployment(String name)
Get a named deployment. |
org.jboss.virtual.VirtualFile |
getDeploymentContent(String name)
Get the repository virtual file for the given deployment name. |
int |
getDeploymentContentFlags(String name)
Get the status flags for the deployment path |
Set<String> |
getDeploymentNames()
Get the names of all deployments in the repository |
Collection<ProfileDeployment> |
getDeployments()
Get all deployments defined in this profile |
long |
getLastModified()
Get the time any contents were last modified. |
Collection<ModificationInfo> |
getModifiedDeployments()
Get the modified deployments. |
String[] |
getRepositoryNames(String... names)
Get repository names. |
URI[] |
getRepositoryURIs()
Get the uris of this repository. |
boolean |
hasDeploymentContentFlags(String name,
int flag)
Does a deployment content have the indicated flag. |
void |
load()
Load the repository contents. |
int |
lockDeploymentContent(String name)
lock deployment content and exclude it from modified deployment checks. |
void |
remove()
Delete the repository. |
ProfileDeployment |
removeDeployment(String name)
Remove a deployment. |
int |
setDeploymentContentFlags(String name,
int flags)
Set one or more flags for the deployment. |
void |
unload()
Unload the repository; |
int |
unlockDeploymentContent(String name)
Unlock a previously locked deployment content. |
| Method Detail |
|---|
URI[] getRepositoryURIs()
void create()
throws Exception
Exception
void load()
throws Exception
Exceptionvoid unload()
void remove()
throws Exception
Exceptionlong getLastModified()
Set<String> getDeploymentNames()
String[] getRepositoryNames(String... names)
throws Exception
names - the names
Exception - for any error
String addDeploymentContent(String name,
InputStream contentIS)
throws IOException
name - - the full vfs path of the deploymentcontentIS - - the input stream for the deployment contents
IOException
String addDeploymentContent(String name,
InputStream contentIS,
DeploymentOption... options)
throws IOException
name - - the full vfs path of the deploymentcontentIS - - the input stream for the deployment contentsoptions - - optional deployment options
IOException
org.jboss.virtual.VirtualFile getDeploymentContent(String name)
throws IOException,
URISyntaxException
name - - the unique virtual file URI name as returned by addDeploymentContent
IOException - for any error
URISyntaxExceptionint lockDeploymentContent(String name)
name - - the full vfs path of the deployment
int unlockDeploymentContent(String name)
name - - the full vfs path of the deployment
int getDeploymentContentFlags(String name)
name - - the full vfs path of the deployment
int setDeploymentContentFlags(String name,
int flags)
name - - the full vfs path of the deploymentflags - - the deployment content flags, DeploymentContentFlags#clearDeploymentContentFlags(String)
int clearDeploymentContentFlags(String name,
int flags)
name - - the full vfs path of the deploymentflags - - the deployment content flags, DeploymentContentFlags
boolean hasDeploymentContentFlags(String name,
int flag)
name - - the full vfs path of the deploymentflags - - the deployment content flags, DeploymentContentFlags
void addDeployment(String name,
ProfileDeployment deployment)
throws Exception
name - - the name of the deploymentdeployment - the deployment
Exception - for any error
ProfileDeployment getDeployment(String name)
throws NoSuchDeploymentException
name - - the deployment name
NoSuchDeploymentException - - if there is no such deployment
ProfileDeployment removeDeployment(String name)
throws Exception
name - - the name of the deployment
Exception - for any errorCollection<ProfileDeployment> getDeployments()
Collection<ModificationInfo> getModifiedDeployments()
throws Exception
Exception - for any error
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||