Class 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.
    • 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • 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 changed
        propertyName - the name of the property
        value - the new property value
        isStructureValue - 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 resource
        value - the new property value
    • 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