it.eng.spago.cms.operations
Class RestoreOperation

java.lang.Object
  extended by it.eng.spago.cms.operations.RestoreOperation

public class RestoreOperation
extends java.lang.Object

Models a repository restore operation. The operation has two attributes:

The configuration of the operation is stored into a Spago SourceBean structured like below:
 <OPERATION name="RESTORE_OBJECT">
            <RESTOREOPERATION path="?" version="?" />  
 </OPERATION>
 


Constructor Summary
RestoreOperation()
          Constructor of the class useful to build an empty restore operation.
RestoreOperation(java.lang.String path)
          Constructor of the class useful to build a restore operation setting the path attribute.
RestoreOperation(java.lang.String path, java.lang.String version)
          Constructor of the class useful to build a restore operation setting the path and version attributes.
 
Method Summary
 SourceBean getOperationDescriptor()
          Gets the Internal SourceBean which defines the internal structure of the operation
 void setPath(java.lang.String path)
          Set the path of the cms node
 void setVersion(java.lang.String ver)
          Set the version of the cms node
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RestoreOperation

public RestoreOperation()
                 throws BuildOperationException
Constructor of the class useful to build an empty restore operation.

Throws:
BuildOperationException - Thrown if an error occurs during the creation

RestoreOperation

public RestoreOperation(java.lang.String path)
                 throws BuildOperationException
Constructor of the class useful to build a restore operation setting the path attribute.

Parameters:
path - The Path of the cms node
Throws:
BuildOperationException - Thrown if an error occurs during the creation

RestoreOperation

public RestoreOperation(java.lang.String path,
                        java.lang.String version)
                 throws BuildOperationException
Constructor of the class useful to build a restore operation setting the path and version attributes.

Parameters:
path - The Path of the cms node
version - The name of the node version to restore
Throws:
BuildOperationException - Thrown if an error occurs during the setting
Method Detail

getOperationDescriptor

public SourceBean getOperationDescriptor()
Gets the Internal SourceBean which defines the internal structure of the operation

Returns:
The Internal SourceBean of the operation which defines the internal structure of the operation

setPath

public void setPath(java.lang.String path)
             throws BuildOperationException
Set the path of the cms node

Parameters:
path - Path of the cms node
Throws:
BuildOperationException - Thrown if an error occurs during the setting

setVersion

public void setVersion(java.lang.String ver)
                throws BuildOperationException
Set the version of the cms node

Parameters:
version - Version of the cms node
Throws:
BuildOperationException - Thrown if an error occurs during the setting