Class CmsPropertiesBean

  • All Implemented Interfaces:
    com.google.gwt.user.client.rpc.IsSerializable

    public class CmsPropertiesBean
    extends java.lang.Object
    implements com.google.gwt.user.client.rpc.IsSerializable
    A bean containing the information needed to edit the properties of a resource.

    Since:
    8.0.0
    • Method Detail

      • getAllProperties

        public java.util.List<java.lang.String> getAllProperties()
        Returns a list of all property names.

        Returns:
        a list of all property names
      • getOwnProperties

        public java.util.Map<java.lang.String,​CmsClientPropertygetOwnProperties()
        Gets a map of the resource's own properties.

        Returns:
        the resource's own properties
      • getSitePath

        public java.lang.String getSitePath()
        Gets the site path of the resource.

        Returns:
        the site path of the resource
      • getStructureId

        public CmsUUID getStructureId()
        Gets the structure id of the resource.

        Returns:
        the structure id of the resource
      • getTemplates

        public java.util.Map<java.lang.String,​CmsClientTemplateBeangetTemplates()
        Gets a map of the available templates.

        Returns:
        the available templates
      • isContainerPage

        public boolean isContainerPage()
        Returns the if the resource is a container page.

        Returns:
        the if the resource is a container page
      • isFolder

        public boolean isFolder()
        Returns the if the resource is a folder.

        Returns:
        the if the resource is a folder
      • isReadOnly

        public boolean isReadOnly()
        If true, the properties can't be modified.

        Returns:
        true if the properties can't be modified
      • setAllProperties

        public void setAllProperties​(java.util.List<java.lang.String> allProperties)
        Sets the list of property names.

        Parameters:
        allProperties - the list of property names
      • setContainerPage

        public void setContainerPage​(boolean isContainerPage)
        Sets if the resource is a container page.

        Parameters:
        isContainerPage - true if the resource is a container page
      • setFolder

        public void setFolder​(boolean isFolder)
        Sets if the resource is a folder.

        Parameters:
        isFolder - true if the resource is a folder
      • setInheritedProperties

        public void setInheritedProperties​(java.util.Map<java.lang.String,​CmsClientProperty> inheritedProperties)
        Sets the inherited properties.

        Parameters:
        inheritedProperties - the inherited properties
      • setOwnProperties

        public void setOwnProperties​(java.util.Map<java.lang.String,​CmsClientProperty> ownProperties)
        Sets the resource's own properties.

        Parameters:
        ownProperties - the resource's own properties
      • setPropertyDefinitions

        public void setPropertyDefinitions​(java.util.Map<java.lang.String,​CmsXmlContentProperty> propertyDefinitions)
        Sets the property configuration.

        Parameters:
        propertyDefinitions - the property configuration
      • setReadOnly

        public void setReadOnly​(boolean isReadOnly)
        Sets "readonly mode".

        Parameters:
        isReadOnly - true if "readonly mode" should be enabled
      • setSitePath

        public void setSitePath​(java.lang.String sitePath)
        Sets the site path.

        Parameters:
        sitePath -
      • setStructureId

        public void setStructureId​(CmsUUID structureId)
        Sets the structure id.

        Parameters:
        structureId - the structure id
      • setTemplates

        public void setTemplates​(java.util.Map<java.lang.String,​CmsClientTemplateBean> templates)
        Sets the available templates.

        Parameters:
        templates - the available templates