ch.systemsx.cisd.openbis.dss.generic.shared.utils
Class AbstractDatasetDropboxHandler

java.lang.Object
  extended by ch.systemsx.cisd.openbis.dss.generic.shared.utils.AbstractDatasetDropboxHandler
All Implemented Interfaces:
ch.systemsx.cisd.openbis.dss.generic.shared.IPostRegistrationDatasetHandler, java.io.Serializable

public abstract class AbstractDatasetDropboxHandler
extends java.lang.Object
implements java.io.Serializable, ch.systemsx.cisd.openbis.dss.generic.shared.IPostRegistrationDatasetHandler

Class which is able to create a copy of incoming data for additional processing. The copy has a changed name to trace back the dataset to which the original data belong.

The processor uses following properties: DATASET_CODE_SEPARATOR_PROPERTY.

See Also:
Serialized Form

Field Summary
static java.lang.String DATASET_CODE_SEPARATOR_PROPERTY
          Property name which is used to specify the text which will be used to separate the sample code and dataset code in the name of the file which will be created in the dropbox.
 
Constructor Summary
AbstractDatasetDropboxHandler(java.util.Properties properties)
           
AbstractDatasetDropboxHandler(java.util.Properties properties, ch.systemsx.cisd.common.filesystem.IFileOperations fileOperations)
           
 
Method Summary
 void copyToDirectoryAs(java.io.File source, java.io.File destDir, java.lang.String newName)
           
 Status handle(java.io.File originalData, DataSetInformation dataSetInformation, java.util.Map<java.lang.String,java.lang.String> parameterBindings)
           
 void undoLastOperation()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DATASET_CODE_SEPARATOR_PROPERTY

public static final java.lang.String DATASET_CODE_SEPARATOR_PROPERTY
Property name which is used to specify the text which will be used to separate the sample code and dataset code in the name of the file which will be created in the dropbox.

See Also:
Constant Field Values
Constructor Detail

AbstractDatasetDropboxHandler

public AbstractDatasetDropboxHandler(java.util.Properties properties)

AbstractDatasetDropboxHandler

public AbstractDatasetDropboxHandler(java.util.Properties properties,
                                     ch.systemsx.cisd.common.filesystem.IFileOperations fileOperations)
Method Detail

handle

public final Status handle(java.io.File originalData,
                           DataSetInformation dataSetInformation,
                           java.util.Map<java.lang.String,java.lang.String> parameterBindings)
Specified by:
handle in interface ch.systemsx.cisd.openbis.dss.generic.shared.IPostRegistrationDatasetHandler

copyToDirectoryAs

public void copyToDirectoryAs(java.io.File source,
                              java.io.File destDir,
                              java.lang.String newName)

undoLastOperation

public void undoLastOperation()
Specified by:
undoLastOperation in interface ch.systemsx.cisd.openbis.dss.generic.shared.IPostRegistrationDatasetHandler