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 Details

  • Constructor Details

    • CmsPropertyModification

      Copy constructor.

      Parameters:
      propMod - the modification bean from which to copy the data
    • 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 changed
      propertyName - the name of the property
      value - the new property value
      isStructureValue - flag which indicates whether the structure value changed
    • CmsPropertyModification

      public CmsPropertyModification(String path, 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 resource
      value - the new property value
    • CmsPropertyModification

      Empty constructor for serialization.

  • Method Details

    • 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 String getName()
      Returns the property name.

      Returns:
      the property name
    • getValue

      public 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

      Helper method for applying the change to a property map.

      Parameters:
      props - a map of properties