Class CmsSitemapChange

  • All Implemented Interfaces:
    com.google.gwt.user.client.rpc.IsSerializable, java.lang.Comparable<CmsSitemapChange>

    public class CmsSitemapChange
    extends java.lang.Object
    implements com.google.gwt.user.client.rpc.IsSerializable, java.lang.Comparable<CmsSitemapChange>
    Bean containing sitemap entry change information.

    Since:
    8.0.0
    • Method Detail

      • addChangeData

        public void addChangeData​(CmsSitemapChange data)
        Adds the given change data to this change object.

        Parameters:
        data - the change data to add
      • addChangeTitle

        public void addChangeTitle​(java.lang.String title)
        Adds a property change for a changed title.

        Parameters:
        title - the changed title
      • compareTo

        public int compareTo​(CmsSitemapChange arg0)
        Will compare the parent site path and the position of the entry to change.

        Specified by:
        compareTo in interface java.lang.Comparable<CmsSitemapChange>
        See Also:
        Comparable.compareTo(java.lang.Object)
      • equals

        public boolean equals​(java.lang.Object obj)
        Two sitemap change objects are considered equal, if the entry id's are equal.

        Overrides:
        equals in class java.lang.Object
        See Also:
        Object.equals(java.lang.Object)
      • getCreateParameter

        public java.lang.String getCreateParameter()
        Returns an additional parameter for creating new resources.

        Returns:
        an additional parameter which may contain information needed to create new resources
      • getCreateSitemapFolderType

        public java.lang.String getCreateSitemapFolderType()
        Gets the folder type to use if a subsitemap should be created, else null.

        Returns:
        a resource type name
      • getDefaultFileProperties

        public java.util.Map<java.lang.String,​CmsClientPropertygetDefaultFileProperties()
        Returns the change'S properties for the default file.

        Returns:
        the properties for the default file
      • getEntryId

        public CmsUUID getEntryId()
        Returns the entry id.

        Returns:
        the entry id
      • getName

        public java.lang.String getName()
        Returns the entry name.

        Returns:
        the entry name
      • getNewCopyResourceId

        public CmsUUID getNewCopyResourceId()
        Returns the new entry copy resource structure id.

        Returns:
        the new entry copy resource structure id
      • getNewResourceTypeId

        public int getNewResourceTypeId()
        Returns the new entry resource type id.

        Returns:
        the new entry resource type id
      • getOwnInternalProperties

        public java.util.Map<java.lang.String,​CmsClientPropertygetOwnInternalProperties()
        Returns the properties for the entry itself.

        Returns:
        the properties for the entry itself
      • getOwnProperties

        public java.util.Map<java.lang.String,​CmsClientPropertygetOwnProperties()
        Returns the change's properties for the entry itself.

        Returns:
        the change's properties for the entry itself
      • getParentId

        public CmsUUID getParentId()
        Returns the entry parent id.

        Returns:
        the entry parent id
      • getPosition

        public int getPosition()
        Returns the entry position.

        Returns:
        the entry position
      • getSitePath

        public java.lang.String getSitePath()
        Returns the site-path.

        Returns:
        the site-path
      • hasChangedName

        public boolean hasChangedName()
        Returns if the entry name has changed.

        Returns:
        true if the entry name has changed
      • hasChangedPosition

        public boolean hasChangedPosition()
        Returns if the position has changed.

        Returns:
        true if the position has changed
      • hasChangedProperties

        public boolean hasChangedProperties()
        Returns if there are changed properties.

        Returns:
        true if there are changed properties
      • hasDetailPageInfos

        public boolean hasDetailPageInfos()
        Returns if detail page info's have changed.

        Returns:
        true if detail page info's have changed
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
        See Also:
        Object.hashCode()
      • hasNewParent

        public boolean hasNewParent()
        Returns if this change sets a new parent.

        Returns:
        true if the entry gets a new parent
      • isDelete

        public boolean isDelete()
        Returns if this is a deleting change.

        Returns:
        the is delete flag
      • isLeafType

        public boolean isLeafType()
        Returns if the entry to change is a leaf type entry.

        Returns:
        true if the entry to change is a leaf type entry
      • isNew

        public boolean isNew()
        Returns if this is a creating new change.

        Returns:
        the is new flag
      • isRemove

        public boolean isRemove()
        Returns if this is a remove from navigation change.

        Returns:
        the is new flag
      • setCreateParameter

        public void setCreateParameter​(java.lang.String parameter)
        Sets additional info needed for creating new resources.

        Parameters:
        parameter - the additional resource creation information
      • setCreateSitemapFolderType

        public void setCreateSitemapFolderType​(java.lang.String folderType)
        Sets the folder type name to use for creating a subsitemap.

        Parameters:
        folderType - a resource type name
      • setDefaultFileId

        public void setDefaultFileId​(CmsUUID id)
        Sets the default file id.

        Parameters:
        id - the default file id
      • setDetailPageInfos

        public void setDetailPageInfos​(java.util.List<CmsDetailPageInfo> detailPageInfos)
        Sets the detail page info's.

        Parameters:
        detailPageInfos - the detail page info's to set
      • setEntryId

        public void setEntryId​(CmsUUID entryId)
        Sets the entry id.

        Parameters:
        entryId - the entry id to set
      • setLeafType

        public void setLeafType​(boolean isLeafEntry)
        Sets if the entry to change is a leaf type entry.

        Parameters:
        isLeafEntry - true if the entry to change is a leaf type entry
      • setName

        public void setName​(java.lang.String name)
        Sets the entry name.

        Parameters:
        name - the entry name to set
      • setNewCopyResourceId

        public void setNewCopyResourceId​(CmsUUID newCopyResourceId)
        Sets the new entry copy resource structure id.

        Parameters:
        newCopyResourceId - the new entry copy resource structure id to set
      • setNewResourceTypeId

        public void setNewResourceTypeId​(int newResourceTypeId)
        Sets the new entry resource type id.

        Parameters:
        newResourceTypeId - the new entry resource type id to set
      • setOwnInternalProperties

        public void setOwnInternalProperties​(java.util.Map<java.lang.String,​CmsClientProperty> props)
        Sets the changed properties of the entry itself.

        Parameters:
        props - the entry's changed properties
      • setParentId

        public void setParentId​(CmsUUID parentId)
        Sets the entry parent id.

        Parameters:
        parentId - the entry parent id to set
      • setPosition

        public void setPosition​(int position)
        Sets the entry position.

        Parameters:
        position - the entry position to set
      • setSitePath

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

        Parameters:
        sitePath - the site path to set
      • setTitle

        public void setTitle​(java.lang.String title)
        Sets the title.

        Parameters:
        title - the title