org.alfresco.deployment
Interface DeploymentReceiverService

All Known Subinterfaces:
DeploymentReceiverTransport
All Known Implementing Classes:
DeploymentReceiverEngineImpl

public interface DeploymentReceiverService

Public Interface for File System Deployment Receiver (FSR)


Method Summary
 void abort(java.lang.String ticket)
          Signals that the deployment should be aborted and rolled back.
 DeploymentToken begin(java.lang.String target, java.lang.String storeName, int version, java.lang.String user, char[] password)
          Start a deployment.
 void commit(java.lang.String ticket)
          Signals that the deployment 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 new directory.
 void delete(java.lang.String ticket, java.lang.String path)
          Delete a file or directory.
 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 prepare
 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 properties)
          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)
          Set the Guid (Version) on a directory.
 

Method Detail

begin

DeploymentToken begin(java.lang.String target,
                      java.lang.String storeName,
                      int version,
                      java.lang.String user,
                      char[] password)
Start a deployment.

Parameters:
storeName - - the name of the store being deployed.
target - The target to deploy to. A target is simply a key to a receiver side deployment configuration.
version - - the version being deployed.
user - The user name for authentication.
password - The password for the user.
Returns:
information on the new deployment.

prepare

void prepare(java.lang.String ticket)
Signals that the deployment should prepare

Parameters:
ticket - The transaction ticket.

commit

void commit(java.lang.String ticket)
Signals that the deployment should commit.

Parameters:
ticket - The transaction ticket.

abort

void abort(java.lang.String ticket)
Signals that the deployment should be aborted and rolled back.

Parameters:
ticket -

send

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 properties)
Send a file to a path.

Parameters:
ticket -
create - - true new file
path -
guid -
encoding -
mimeType -
aspects - - full qualified names of the aspects that this file is associated with.
props - - map of full qualified names and property values.
Returns:
an open output steam for writing content

createDirectory

void createDirectory(java.lang.String ticket,
                     java.lang.String path,
                     java.lang.String guid,
                     java.util.Set aspects,
                     java.util.Map properties)
Create a new directory.

Parameters:
ticket -
path -
guid - The GUID (Version) of the directory to be created.

updateDirectory

void updateDirectory(java.lang.String ticket,
                     java.lang.String path,
                     java.lang.String guid,
                     java.util.Set aspects,
                     java.util.Map properties)
Set the Guid (Version) on a directory.

Parameters:
ticket -
path -
guid -

delete

void delete(java.lang.String ticket,
            java.lang.String path)
Delete a file or directory.

Parameters:
ticket -
path -

getListing

java.util.List getListing(java.lang.String ticket,
                          java.lang.String path)
Get a listing of a directory.

Parameters:
ticket -
path -
Returns:
The listing in name sorted order.


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.