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 java.lang.Object implements com.google.gwt.user.client.rpc.IsSerializable
A class which represents a property modification.- Since:
- 8.0.0
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
FILE_NAME_PROPERTY
The file name property name, use to edit the filename within a property dialog.
-
Constructor Summary
Constructors Modifier Constructor Description protected
CmsPropertyModification()
Empty constructor for serialization.CmsPropertyModification(java.lang.String path, java.lang.String value)
Creates a new property modification bean.CmsPropertyModification(CmsPropertyModification propMod)
Copy constructor.CmsPropertyModification(CmsUUID resourceId, java.lang.String propertyName, java.lang.String value, boolean isStructureValue)
Creates a new property modification bean.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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.
-
-
-
Field Detail
-
FILE_NAME_PROPERTY
public static final java.lang.String FILE_NAME_PROPERTY
The file name property name, use to edit the filename within a property dialog.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
CmsPropertyModification
public CmsPropertyModification(CmsPropertyModification propMod)
Copy constructor.- Parameters:
propMod
- the modification bean from which to copy the data
-
CmsPropertyModification
public CmsPropertyModification(CmsUUID resourceId, java.lang.String propertyName, java.lang.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
public CmsPropertyModification(java.lang.String path, java.lang.String value)
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 Detail
-
getId
public CmsUUID getId()
Returns the id of the resource for which to change properties.- Returns:
- the id of ther resource for which to change properties
-
getName
public java.lang.String getName()
Returns the property name.- Returns:
- the property name
-
getValue
public java.lang.String getValue()
Returns the new value.- Returns:
- the new value
-
isFileNameProperty
public boolean isFileNameProperty()
Checks if this is the file name property.- Returns:
true
in case of the file name property
-
isStructureValue
public boolean isStructureValue()
Flag which indicates a structure value change.- Returns:
- true if the structure value was changed
-
updatePropertyInMap
public void updatePropertyInMap(java.util.Map<java.lang.String,CmsClientProperty> props)
Helper method for applying the change to a property map.- Parameters:
props
- a map of properties
-
-