public class CmsPropertyModification extends java.lang.Object implements com.google.gwt.user.client.rpc.IsSerializable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
FILE_NAME_PROPERTY
The file name property name, use to edit the filename within a property dialog.
|
| Modifier | Constructor and Description |
|---|---|
protected |
CmsPropertyModification()
Empty constructor for serialization.
|
|
CmsPropertyModification(CmsPropertyModification propMod)
Copy constructor.
|
|
CmsPropertyModification(CmsUUID resourceId,
java.lang.String propertyName,
java.lang.String value,
boolean isStructureValue)
Creates a new property modification bean.
|
|
CmsPropertyModification(java.lang.String path,
java.lang.String value)
Creates a new property modification bean.
|
| Modifier and Type | Method and Description |
|---|---|
CmsUUID |
getId()
Returns the id of the resource for which to change properties.
|
java.lang.String |
getName()
Returns the property name.
|
java.lang.String |
getValue()
Returns the new value.
|
boolean |
isFileNameProperty()
Checks if this is the file name property.
|
boolean |
isStructureValue()
Flag which indicates a structure value change.
|
void |
updatePropertyInMap(java.util.Map<java.lang.String,CmsClientProperty> props)
Helper method for applying the change to a property map.
|
public static final java.lang.String FILE_NAME_PROPERTY
public CmsPropertyModification(CmsPropertyModification propMod)
propMod - the modification bean from which to copy the datapublic CmsPropertyModification(CmsUUID resourceId, java.lang.String propertyName, java.lang.String value, boolean isStructureValue)
resourceId - the resource id for which the property changedpropertyName - the name of the propertyvalue - the new property valueisStructureValue - flag which indicates whether the structure value changedpublic CmsPropertyModification(java.lang.String path, java.lang.String value)
path - a path of the form id/propertyname/mode, where mode is either S for structure or R for resourcevalue - the new property valueprotected CmsPropertyModification()
public CmsUUID getId()
public java.lang.String getName()
public java.lang.String getValue()
public boolean isFileNameProperty()
true in case of the file name propertypublic boolean isStructureValue()
public void updatePropertyInMap(java.util.Map<java.lang.String,CmsClientProperty> props)
props - a map of properties