atg.deployment
Interface DeploymentData

All Known Implementing Classes:
FileDeploymentData, RepositoryDeploymentData

public interface DeploymentData

An interface for DeploymentData classes. This interface is package protected. We do not want to allow others to call persist.


Field Summary
static java.lang.String CLASS_VERSION
          Class version string
 
Method Summary
 java.lang.Object clone()
          Clones a deployment data object
 void convertToRollbackData()
          Converts a particular DeploymentData from a list of items modified in a deployment to a rollback for that deployment.
 int getMarkerCount()
          Returns the number of markers for deployment
 java.util.Collection getNextSetOfMarkers(int pCurrentIndex, int pBatchSize)
          Returns some set of markers, starting at pCurrentIndex, of a number up to pBatchsize.
 RepositoryItem getRepositoryItem()
          Returns the underlying repository item
 void persist(MutableRepository pRepository, MutableRepositoryItem pDeploymentItem)
          This method is called by the Deployment class in its persist phase.
 

Field Detail

CLASS_VERSION

static final java.lang.String CLASS_VERSION
Class version string

See Also:
Constant Field Values
Method Detail

persist

void persist(MutableRepository pRepository,
             MutableRepositoryItem pDeploymentItem)
             throws atg.deployment.DistributedDeploymentException
This method is called by the Deployment class in its persist phase.

Throws:
atg.deployment.DistributedDeploymentException

getRepositoryItem

RepositoryItem getRepositoryItem()
Returns the underlying repository item


getNextSetOfMarkers

java.util.Collection getNextSetOfMarkers(int pCurrentIndex,
                                         int pBatchSize)
Returns some set of markers, starting at pCurrentIndex, of a number up to pBatchsize.


getMarkerCount

int getMarkerCount()
Returns the number of markers for deployment


clone

java.lang.Object clone()
Clones a deployment data object


convertToRollbackData

void convertToRollbackData()
Converts a particular DeploymentData from a list of items modified in a deployment to a rollback for that deployment. Note that this changes the internal state. The specific changes are:

add -> delete
update -> update
delete -> add

Note that this function is reversible - calling it twice is the same as not calling it.

Versions are not handled here - we depend on the snapshot setting to get the appropriate versions for a rollback deployment.