|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.deployment.impl.fsr.FileSystemDeploymentTarget
public class FileSystemDeploymentTarget
This represents a target for deployment to a filesystem A file system deployment can only process a single deployment
Constructor Summary | |
---|---|
FileSystemDeploymentTarget()
|
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 targetName,
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 props)
Create a directory. |
void |
delete(java.lang.String ticket,
java.lang.String path)
Delete a file or directory. |
DeploymentReceiverAuthenticator |
getAuthenticator()
|
int |
getCurrentVersion(java.lang.String target,
java.lang.String storeName)
Get the current version for this target and source Store |
FileSystemReceiverService |
getFileSystemReceiverService()
|
java.util.List |
getListing(java.lang.String ticket,
java.lang.String path)
Get a listing of a directory. |
java.lang.String |
getMetaDataDirectory()
Get the directory in which metadata |
java.lang.String |
getName()
Get the target name. |
java.util.List |
getPostCommit()
|
java.util.List |
getPrepare()
|
java.lang.String |
getRootDirectory()
Get the root directory. |
void |
init()
initialise this target |
boolean |
isAutoFix()
|
boolean |
isBusy()
|
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 |
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(java.lang.String dir)
|
void |
setName(java.lang.String name)
Set the target name. |
void |
setPostCommit(java.util.List postCommit)
|
void |
setPrepare(java.util.List prepare)
|
void |
setRootDirectory(java.lang.String root)
|
void |
updateDirectory(java.lang.String ticket,
java.lang.String path,
java.lang.String guid,
java.util.Set aspects,
java.util.Map props)
Update a directory . |
void |
validate()
Validate this target |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FileSystemDeploymentTarget()
Method Detail |
---|
public void setAuthenticator(DeploymentReceiverAuthenticator authenticator)
public DeploymentReceiverAuthenticator getAuthenticator()
public void init()
public java.lang.String getName()
public void setName(java.lang.String name)
public java.lang.String getRootDirectory()
public void setRootDirectory(java.lang.String root)
public void setAutoFix(boolean autoFix)
autoFix
- public boolean isAutoFix()
public void setFileSystemReceiverService(FileSystemReceiverService fileSystemReceiverService)
public FileSystemReceiverService getFileSystemReceiverService()
public java.lang.String begin(java.lang.String targetName, java.lang.String storeName, int version, java.lang.String user, char[] password)
DeploymentTarget
begin
in interface DeploymentTarget
targetName
- 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(java.lang.String ticket)
DeploymentTarget
prepare
in interface DeploymentTarget
ticket
- The deployment ticket.public void abort(java.lang.String ticket)
DeploymentTarget
abort
in interface DeploymentTarget
ticket
- The deployment ticket, returned by an earlier call to 'begin'.public void commit(java.lang.String ticket)
DeploymentTarget
commit
in interface DeploymentTarget
ticket
- The deployment ticket, returned by an earlier call to 'begin'.public void delete(java.lang.String ticket, java.lang.String path)
DeploymentTarget
delete
in interface DeploymentTarget
ticket
- the deployment ticket, returned by an earlier call to 'begin'public java.util.List getListing(java.lang.String ticket, java.lang.String path)
DeploymentTarget
getListing
in interface DeploymentTarget
ticket
- the deployment ticket, returned by an earlier call to 'begin'
public void createDirectory(java.lang.String ticket, java.lang.String path, java.lang.String guid, java.util.Set aspects, java.util.Map props)
DeploymentTarget
createDirectory
in interface DeploymentTarget
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 directorypublic 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)
DeploymentTarget
send
in interface DeploymentTarget
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.
public void updateDirectory(java.lang.String ticket, java.lang.String path, java.lang.String guid, java.util.Set aspects, java.util.Map props)
DeploymentTarget
updateDirectory
in interface DeploymentTarget
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 directorypublic void validate()
public void setBusy(boolean isBusy)
public boolean isBusy()
public void setPostCommit(java.util.List postCommit)
public java.util.List getPostCommit()
public void setPrepare(java.util.List prepare)
public java.util.List getPrepare()
public int getCurrentVersion(java.lang.String target, java.lang.String storeName)
DeploymentTarget
getCurrentVersion
in interface DeploymentTarget
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.public void setMetaDataDirectory(java.lang.String dir)
public java.lang.String getMetaDataDirectory()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |