|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectit.eng.spago.cms.operations.SetOperation
public class SetOperation
Models a set operation on the repostitory. The operation has six attributes:
<OPERATION name=""> <SETOPERATION path="" type="(container/content)" cancelOldProperties="(true/flase)"> <CONTENT stream="" /> (optional) <PROPERTIES> (optional) <PROPERTY name="" type="STRING/DATE/LONG/DOUBLE/BOOLEAN/BINARY" > <PROPERTYVALUE value=""/> <PROPERTYVALUE value=""/> .... </PROPERTY> .... </PROPERTIES> </SETOPERATION> </OPERATION>
Field Summary | |
---|---|
static java.lang.String |
TYPE_CONTAINER
the property container type |
static java.lang.String |
TYPE_CONTENT
The property content type (leaf node) |
Constructor Summary | |
---|---|
SetOperation()
Constructor of the class useful to build an empty set operation. |
|
SetOperation(java.lang.String path,
java.lang.String type,
boolean holdProperties)
Constructor of the class useful to build a set operation setting the path, type and cancelOldProperties attributes. |
|
SetOperation(java.lang.String path,
java.lang.String type,
boolean holdProperties,
java.io.InputStream content)
Constructor of the class useful to build a set operation setting the path, type, cancelOldProperties attributes and the content. |
|
SetOperation(java.lang.String path,
java.lang.String type,
boolean holdProperties,
java.util.List cmsProperties)
Constructor of the class useful to build a set operation setting the path, type, cancelOldProperties attributes and a list of properties. |
|
SetOperation(java.lang.String path,
java.lang.String type,
boolean holdProperties,
java.util.List cmsProperties,
java.io.InputStream content)
Constructor of the class useful to build a set operation setting the path, type, cancelOldProperties attributes, a list of properties and the content. |
Method Summary | |
---|---|
SourceBean |
getOperationDescriptor()
Gets the Internal SourceBean which defines the internal structure of the operation |
void |
setContent(java.io.InputStream is)
Set the content of the cms node |
void |
setEraseOldProperties(boolean erase)
Set the flag to activate or deactivate the deletion of the old cms node properties |
void |
setPath(java.lang.String path)
Set the path of the cms node |
void |
setProperties(java.util.List properties)
Set the list of properties of the node |
void |
setType(java.lang.String type)
Set the type of the cms node |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String TYPE_CONTENT
public static final java.lang.String TYPE_CONTAINER
Constructor Detail |
---|
public SetOperation() throws BuildOperationException
BuildOperationException
- Thrown if an error occurs during the creationpublic SetOperation(java.lang.String path, java.lang.String type, boolean holdProperties) throws BuildOperationException
path
- The Path of the cms node to settype
- The type of the cms node
(SetOperation.TYPE_CONTENT or SetOperation.TYPE_CONTAINER)holdProperties
- Flag to activate or deactivate the deletion of the
old node properties (if the node already exist)
BuildOperationException
- Thrown if an error occurs during the creationpublic SetOperation(java.lang.String path, java.lang.String type, boolean holdProperties, java.io.InputStream content) throws BuildOperationException
path
- The Path of the cms node to settype
- The type of the cms node
(SetOperation.TYPE_CONTENT or SetOperation.TYPE_CONTAINER)holdProperties
- Flag to activate or deactivate the deletion of the
old node properties (if the node already exist)content
- The content of the node. If the node is of type
SetOperation.TYPE_CONTAINER the content will be ignored
BuildOperationException
- Thrown if an error occurs during the creationpublic SetOperation(java.lang.String path, java.lang.String type, boolean holdProperties, java.util.List cmsProperties) throws BuildOperationException
path
- The Path of the cms node to settype
- The type of the cms node
(SetOperation.TYPE_CONTENT or SetOperation.TYPE_CONTAINER)holdProperties
- Flag to activate or deactivate the deletion of the
old node properties (if the node already exist)content
- The content of the node. If the node is of type
SetOperation.TYPE_CONTAINER the content will be ignoredcmsProperties
- The list of properties of the node. Each property of
the list must be of type it.eng.spago.cms.CmsProperty
BuildOperationException
- Thrown if an error occurs during the creationpublic SetOperation(java.lang.String path, java.lang.String type, boolean holdProperties, java.util.List cmsProperties, java.io.InputStream content) throws BuildOperationException
path
- The Path of the cms node to settype
- The type of the cms node
(SetOperation.TYPE_CONTENT or SetOperation.TYPE_CONTAINER)holdProperties
- Flag to activate or deactivate the deletion of the
old node properties (if the node already exist)cmsProperties
- The list of properties of the node. Each property of
the list must be of type it.eng.spago.cms.CmsPropertycontent
- The content of the node. If the node is of type
SetOperation.TYPE_CONTAINER the content will be ignored
BuildOperationException
- Thrown if an error occurs during the creationMethod Detail |
---|
public void setPath(java.lang.String path) throws BuildOperationException
path
- Path of the cms node
BuildOperationException
- Thrown if an error occurs during the settingpublic void setContent(java.io.InputStream is) throws BuildOperationException
is
- Content InputStream of the cms node
BuildOperationException
- Thrown if an error occurs during the settingpublic void setType(java.lang.String type) throws BuildOperationException
tyoe
- Type of the cms node (SetOperation.TYPE_CONTENT / SetOperation.TYPE_CONTAINER)
BuildOperationException
- Thrown if an error occurs during the settingpublic void setEraseOldProperties(boolean erase) throws BuildOperationException
erase
- boolean flag to activate or deactivate the deletion
of the old cms node properties
BuildOperationException
- Thrown if an error occurs during the settingpublic void setProperties(java.util.List properties) throws BuildOperationException
properties
- List of tne node properties
Each property must be of type it.eng.spago.cms.CmsProperty
BuildOperationException
- Thrown if an error occurs during the settingpublic SourceBean getOperationDescriptor()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |