org.jboss.system.server.profileservice.attachments
Interface AttachmentStore

All Known Implementing Classes:
AbstractAttachmentStore

public interface AttachmentStore

The AttachmentStore.

Version:
$Revision: 89127 $
Author:
Emanuel Muckenhuber

Method Summary
 org.jboss.deployers.client.spi.Deployment createDeployment(org.jboss.profileservice.spi.ProfileDeployment deployment)
          Create a MC deployment.
 URI getAttachmentStoreRoot()
          Get the uri where the attachments are stored.
 PersistenceRoot loadAttachment(org.jboss.virtual.VirtualFile deploymentCtx, AttachmentMetaData attachment)
          Load a attachment.
 RepositoryAttachmentMetaData loadMetaData(org.jboss.virtual.VirtualFile deploymentCtx)
          Load the repository attachment meta data
 void removeComponent(String ctx, org.jboss.managed.api.ManagedComponent comp)
          Remove a component from the attachment.
 void updateDeployment(String ctx, org.jboss.managed.api.ManagedComponent comp)
          Persist the managed component.
 

Method Detail

getAttachmentStoreRoot

URI getAttachmentStoreRoot()
Get the uri where the attachments are stored.

Returns:
the attachment store root

loadMetaData

RepositoryAttachmentMetaData loadMetaData(org.jboss.virtual.VirtualFile deploymentCtx)
                                          throws Exception
Load the repository attachment meta data

Parameters:
deploymentCtx - the deployment root
Returns:
the persisted meta data or null if it does not exist
Throws:
Exception

loadAttachment

PersistenceRoot loadAttachment(org.jboss.virtual.VirtualFile deploymentCtx,
                               AttachmentMetaData attachment)
                               throws Exception
Load a attachment.

Parameters:
deploymentCtx -
attachment -
Returns:
Throws:
Exception

updateDeployment

void updateDeployment(String ctx,
                      org.jboss.managed.api.ManagedComponent comp)
                      throws Exception
Persist the managed component.

Parameters:
ctx - the deployment context name
comp - the managed componenbt
Throws:
Exception

removeComponent

void removeComponent(String ctx,
                     org.jboss.managed.api.ManagedComponent comp)
                     throws Exception
Remove a component from the attachment.

Parameters:
ctx - the deployment context name
comp - the managed componenbt
Throws:
Exception

createDeployment

org.jboss.deployers.client.spi.Deployment createDeployment(org.jboss.profileservice.spi.ProfileDeployment deployment)
                                                           throws Exception
Create a MC deployment.

Parameters:
deployment -
Returns:
Throws:
Exception


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