Package org.opencms.gwt.shared.property
Class CmsPropertyModification
java.lang.Object
org.opencms.gwt.shared.property.CmsPropertyModification
- All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable
public class CmsPropertyModification
extends Object
implements com.google.gwt.user.client.rpc.IsSerializable
A class which represents a property modification.
- Since:
- 8.0.0
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
The file name property name, use to edit the filename within a property dialog. -
Constructor Summary
ModifierConstructorDescriptionprotected
Empty constructor for serialization.CmsPropertyModification
(String path, String value) Creates a new property modification bean.Copy constructor.CmsPropertyModification
(CmsUUID resourceId, String propertyName, String value, boolean isStructureValue) Creates a new property modification bean. -
Method Summary
Modifier and TypeMethodDescriptiongetId()
Returns the id of the resource for which to change properties.getName()
Returns the property name.getValue()
Returns the new value.boolean
Checks if this is the file name property.boolean
Flag which indicates a structure value change.void
Helper method for applying the change to a property map.
-
Field Details
-
FILE_NAME_PROPERTY
The file name property name, use to edit the filename within a property dialog.- See Also:
-
-
Constructor Details
-
CmsPropertyModification
public CmsPropertyModification(CmsUUID resourceId, String propertyName, String value, boolean isStructureValue) Creates a new property modification bean.- Parameters:
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 changed
-
CmsPropertyModification
Creates a new property modification bean.- Parameters:
path
- a path of the form id/propertyname/mode, where mode is either S for structure or R for resourcevalue
- the new property value
-
CmsPropertyModification
protected CmsPropertyModification()Empty constructor for serialization.
-
Method Details
-
getId
Returns the id of the resource for which to change properties.- Returns:
- the id of ther resource for which to change properties
-
getName
Returns the property name.- Returns:
- the property name
-
getValue
Returns the new value.- Returns:
- the new value
-
isFileNameProperty
Checks if this is the file name property.- Returns:
true
in case of the file name property
-
isStructureValue
Flag which indicates a structure value change.- Returns:
- true if the structure value was changed
-
updatePropertyInMap
Helper method for applying the change to a property map.- Parameters:
props
- a map of properties
-