public class FileSystemDeploymentTarget extends Object implements Serializable, DeploymentTarget
| Constructor and Description |
|---|
FileSystemDeploymentTarget() |
| Modifier and Type | Method and Description |
|---|---|
void |
abort(String ticket)
Signals that the deployment should be aborted and
rolled back.
|
String |
begin(String targetName,
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> props)
Create a directory.
|
void |
delete(String ticket,
String path)
Delete a file or directory.
|
DeploymentReceiverAuthenticator |
getAuthenticator() |
int |
getCurrentVersion(String target,
String storeName)
Get the current version for this target and source Store
|
FileSystemReceiverService |
getFileSystemReceiverService() |
List<FileDescriptor> |
getListing(String ticket,
String path)
Get a listing of a directory.
|
String |
getMetaDataDirectory()
Get the directory in which metadata
|
String |
getName()
Get the target name.
|
List<FSDeploymentRunnable> |
getPostCommit() |
List<FSDeploymentRunnable> |
getPrepare() |
String |
getRootDirectory()
Get the root directory.
|
void |
init()
initialise this target
|
boolean |
isAutoFix() |
boolean |
isBusy() |
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 |
setAuthenticator(DeploymentReceiverAuthenticator authenticator) |
void |
setAutoFix(boolean autoFix)
tell this target to autofix data during validation
|
void |
setBusy(boolean isBusy) |
void |
setFileSystemReceiverService(FileSystemReceiverService fileSystemReceiverService) |
void |
setMetaDataDirectory(String dir) |
void |
setName(String name)
Set the target name.
|
void |
setPostCommit(List<FSDeploymentRunnable> postCommit) |
void |
setPrepare(List<FSDeploymentRunnable> prepare) |
void |
setRootDirectory(String root) |
void |
updateDirectory(String ticket,
String path,
String guid,
Set<String> aspects,
Map<String,Serializable> props)
Update a directory .
|
void |
validate()
Validate this target
|
public void setAuthenticator(DeploymentReceiverAuthenticator authenticator)
public DeploymentReceiverAuthenticator getAuthenticator()
public void init()
public String getName()
public void setName(String name)
public String getRootDirectory()
public void setRootDirectory(String root)
public void setAutoFix(boolean autoFix)
autoFix - public boolean isAutoFix()
public void setFileSystemReceiverService(FileSystemReceiverService fileSystemReceiverService)
public FileSystemReceiverService getFileSystemReceiverService()
public String begin(String targetName, String storeName, int version, String user, char[] password)
DeploymentTargetbegin in interface DeploymentTargettargetName - 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.public void prepare(String ticket)
DeploymentTargetprepare in interface DeploymentTargetticket - The deployment ticket.public void abort(String ticket)
DeploymentTargetabort in interface DeploymentTargetticket - The deployment ticket, returned by an earlier call to 'begin'.public void commit(String ticket)
DeploymentTargetcommit in interface DeploymentTargetticket - The deployment ticket, returned by an earlier call to 'begin'.public void delete(String ticket, String path)
DeploymentTargetdelete in interface DeploymentTargetticket - the deployment ticket, returned by an earlier call to 'begin'public List<FileDescriptor> getListing(String ticket, String path)
DeploymentTargetgetListing in interface DeploymentTargetticket - the deployment ticket, returned by an earlier call to 'begin'public void createDirectory(String ticket, String path, String guid, Set<String> aspects, Map<String,Serializable> props)
DeploymentTargetcreateDirectory in interface DeploymentTargetticket - 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 directorypublic OutputStream send(String ticket, boolean create, String path, String guid, String encoding, String mimeType, Set<String> aspects, Map<String,Serializable> props)
DeploymentTargetsend in interface DeploymentTargetticket - 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.public void updateDirectory(String ticket, String path, String guid, Set<String> aspects, Map<String,Serializable> props)
DeploymentTargetupdateDirectory in interface DeploymentTargetticket - 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 directorypublic void validate()
public void setBusy(boolean isBusy)
public boolean isBusy()
public void setPostCommit(List<FSDeploymentRunnable> postCommit)
public List<FSDeploymentRunnable> getPostCommit()
public void setPrepare(List<FSDeploymentRunnable> prepare)
public List<FSDeploymentRunnable> getPrepare()
public int getCurrentVersion(String target, String storeName)
DeploymentTargetgetCurrentVersion in interface DeploymentTargetstoreName - 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.public void setMetaDataDirectory(String dir)
public String getMetaDataDirectory()
Copyright © 2005–2014 Alfresco Software. All rights reserved.