|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DeploymentTarget
The deployment target is the interface that is provided by deployment targets.
FileSystemDeploymentTarget
,
org.alfresco.deployment.impl.asr.AVMDeploymentTarget
Method Summary | |
---|---|
void |
abort(java.lang.String ticket)
Signals that the deployment should be aborted and rolled back. |
java.lang.String |
begin(java.lang.String target,
java.lang.String storeName,
int version,
java.lang.String user,
char[] password)
Start a new deployment. |
void |
commit(java.lang.String ticket)
Signals that the deployment is finished and should commit. |
void |
createDirectory(java.lang.String ticket,
java.lang.String path,
java.lang.String guid,
java.util.Set aspects,
java.util.Map properties)
Create a directory. |
void |
delete(java.lang.String ticket,
java.lang.String path)
Delete a file or directory. |
int |
getCurrentVersion(java.lang.String target,
java.lang.String storeName)
Get the current version for this target and source Store |
java.util.List |
getListing(java.lang.String ticket,
java.lang.String path)
Get a listing of a directory. |
void |
prepare(java.lang.String ticket)
Signals that the deployment should be prepared. |
java.io.OutputStream |
send(java.lang.String ticket,
boolean create,
java.lang.String path,
java.lang.String guid,
java.lang.String encoding,
java.lang.String mimeType,
java.util.Set aspects,
java.util.Map props)
Send a file to a path. |
void |
updateDirectory(java.lang.String ticket,
java.lang.String path,
java.lang.String guid,
java.util.Set aspects,
java.util.Map properties)
Update a directory . |
Method Detail |
---|
java.lang.String begin(java.lang.String target, java.lang.String storeName, int version, java.lang.String user, char[] password)
target
- The name of the target which is being deployed to.storeName
- the name of the store being deployed. (authoring instance)version
- the version of the store being deployed. (authoring instance)user
- The user name for authentication.password
- The password for authentication.
DeploymentException
- - unable to start a new deploymentvoid prepare(java.lang.String ticket) throws DeploymentException
ticket
- The deployment ticket.
DeploymentException
void commit(java.lang.String ticket)
ticket
- The deployment ticket, returned by an earlier call to 'begin'.void abort(java.lang.String ticket)
ticket
- The deployment ticket, returned by an earlier call to 'begin'.java.io.OutputStream send(java.lang.String ticket, boolean create, java.lang.String path, java.lang.String guid, java.lang.String encoding, java.lang.String mimeType, java.util.Set aspects, java.util.Map props) throws DeploymentException
ticket
- The deployment ticket, returned by an earlier call to 'begin'create
- - true - create a new file, false update an existing file.path
- path of the new fileguid
- unique identifier for this particular version of the fileencoding
- the encoding of the filemimeType
- the mime type of the fileaspects
- aspects to apply to the fileprops
- properties.
DeploymentException
- - unable to send, deployment should be abortedvoid createDirectory(java.lang.String ticket, java.lang.String path, java.lang.String guid, java.util.Set aspects, java.util.Map properties) throws DeploymentException
ticket
- the deployment ticket, returned by an earlier call to 'begin'path
- path of the new fileguid
- The GUID (version) of the directory to be created.aspects
- aspects to apply to the new directoryprops
- properties for the new directory
DeploymentException
- - unable to get the listing, deployment should be abortedvoid updateDirectory(java.lang.String ticket, java.lang.String path, java.lang.String guid, java.util.Set aspects, java.util.Map properties) throws DeploymentException
ticket
- the deployment ticket, returned by an earlier call to 'begin'path
- path of the new fileguid
- The GUID (version) of the directory to be created.aspects
- aspects to apply to the new directoryprops
- properties for the new directory
DeploymentException
- - unable to set the GUID, deployment should be abortedvoid delete(java.lang.String ticket, java.lang.String path) throws DeploymentException
ticket
- the deployment ticket, returned by an earlier call to 'begin'path
-
DeploymentException
- - unable to delete, deployment should be abortedjava.util.List getListing(java.lang.String ticket, java.lang.String path) throws DeploymentException
ticket
- the deployment ticket, returned by an earlier call to 'begin'path
-
DeploymentException
- - unable to get the listing, deployment should be abortedint getCurrentVersion(java.lang.String target, java.lang.String storeName)
target
- storeName
- Returns the current version (authoring version), 0 means no version has been deployed, -1 means the version is unknown or not
implemented by this target.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |