it.eng.spago.cms.operations
Class VersionOperation

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

public class VersionOperation
extends java.lang.Object

Models a repository version operation: this means that, if the node is versionable, a new version of the node is created. The operation has two attributes:

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


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

Constructor Detail

VersionOperation

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

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

VersionOperation

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

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

VersionOperation

public VersionOperation(java.lang.String path,
                        boolean noRecurse)
                 throws BuildOperationException
Constructor of the class useful to build a version operation setting the path and the noRecurse flag.

Parameters:
path - The path of the cms node to be versioned
noRecurse - The noRecurse flag
Throws:
BuildOperationException - Thrown if an error occurs during the creation
Method Detail

setPath

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

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

setNoRecurse

public void setNoRecurse(boolean noRecurse)
                  throws BuildOperationException
Set the noRecurse flag

Parameters:
noRecurse - The noRecurse flag to set
Throws:
BuildOperationException - Thrown if an error occurs during the setting

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