public interface DeploymentTarget
FileSystemDeploymentTarget,
org.alfresco.deployment.impl.asr.AVMDeploymentTarget| Modifier and Type | Method and Description |
|---|---|
void |
abort(String ticket)
Signals that the deployment should be aborted and
rolled back.
|
String |
begin(String target,
String storeName,
int version,
String user,
char[] password)
Start a new deployment.
|
void |
commit(String ticket)
Signals that the deployment is finished and should
commit.
|
void |
createDirectory(String ticket,
String path,
String guid,
Set<String> aspects,
Map<String,Serializable> properties)
Create a directory.
|
void |
delete(String ticket,
String path)
Delete a file or directory.
|
int |
getCurrentVersion(String target,
String storeName)
Get the current version for this target and source Store
|
List<FileDescriptor> |
getListing(String ticket,
String path)
Get a listing of a directory.
|
void |
prepare(String ticket)
Signals that the deployment should be prepared.
|
OutputStream |
send(String ticket,
boolean create,
String path,
String guid,
String encoding,
String mimeType,
Set<String> aspects,
Map<String,Serializable> props)
Send a file to a path.
|
void |
updateDirectory(String ticket,
String path,
String guid,
Set<String> aspects,
Map<String,Serializable> properties)
Update a directory .
|
String begin(String target, String storeName, int version, 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(String ticket) throws DeploymentException
ticket - The deployment ticket.DeploymentExceptionvoid commit(String ticket)
ticket - The deployment ticket, returned by an earlier call to 'begin'.void abort(String ticket)
ticket - The deployment ticket, returned by an earlier call to 'begin'.OutputStream send(String ticket, boolean create, String path, String guid, String encoding, String mimeType, Set<String> aspects, Map<String,Serializable> 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(String ticket, String path, String guid, Set<String> aspects, Map<String,Serializable> 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 directoryDeploymentException - - unable to get the listing, deployment should be abortedvoid updateDirectory(String ticket, String path, String guid, Set<String> aspects, Map<String,Serializable> 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 directoryDeploymentException - - unable to set the GUID, deployment should be abortedvoid delete(String ticket, String path) throws DeploymentException
ticket - the deployment ticket, returned by an earlier call to 'begin'path - DeploymentException - - unable to delete, deployment should be abortedList<FileDescriptor> getListing(String ticket, 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(String target, 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.Copyright © 2005–2014 Alfresco Software. All rights reserved.