Class CmsSitemapChange

java.lang.Object
org.opencms.ade.sitemap.shared.CmsSitemapChange
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable, Comparable<CmsSitemapChange>

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

Since:
8.0.0
  • Constructor Details

  • Method Details

    • 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(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 Comparable<CmsSitemapChange>
      See Also:
    • equals

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

      Overrides:
      equals in class Object
      See Also:
    • getChangeType

      Returns the change type.

      Returns:
      the change type
    • getClipBoardData

      Returns the clip-board data.

      Returns:
      the clip-board data
    • getCreateParameter

      Returns an additional parameter for creating new resources.

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

      Gets the folder type to use if a subsitemap should be created, else null.

      Returns:
      a resource type name
    • getDefaultFileId

      Gets the default file id.

      Returns:
      the default file id
    • getDefaultFileProperties

      Returns the change'S properties for the default file.

      Returns:
      the properties for the default file
    • getDetailPageInfos

      Returns the detail page info's.

      Returns:
      the detail page info's
    • getEntryId

      public CmsUUID getEntryId()
      Returns the entry id.

      Returns:
      the entry id
    • getName

      public String getName()
      Returns the entry name.

      Returns:
      the entry name
    • 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

      Returns the properties for the entry itself.

      Returns:
      the properties for the entry itself
    • getOwnProperties

      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
    • getPropertyChanges

      Gets the list of property changes.

      Returns:
      the list of property changes
    • getSitePath

      public String getSitePath()
      Returns the site-path.

      Returns:
      the site-path
    • getUpdatedEntry

      Returns the updated entry.

      Returns:
      the updated entry
    • 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 Object
      See Also:
    • 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
    • setClipBoardData

      public void setClipBoardData(CmsSitemapClipboardData clipBoardData)
      Sets the clip-board data.

      Parameters:
      clipBoardData - the clip-board data to set
    • setCreateParameter

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

      Parameters:
      parameter - the additional resource creation information
    • setCreateSitemapFolderType

      public void setCreateSitemapFolderType(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
    • setDefaultFileInternalProperties

      Sets the properties for the default file.

      Parameters:
      props - the properties for the default file
    • setDetailPageInfos

      public void setDetailPageInfos(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(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

      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
    • setPropertyChanges

      public void setPropertyChanges(List<CmsPropertyModification> propertyChanges)
      Sets the list of property changes.

      Parameters:
      propertyChanges - the property changes
    • setSitePath

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

      Parameters:
      sitePath - the site path to set
    • setTitle

      public void setTitle(String title)
      Sets the title.

      Parameters:
      title - the title
    • setUpdatedEntry

      public void setUpdatedEntry(CmsClientSitemapEntry updatedEntry)
      Sets the updated entry.

      Parameters:
      updatedEntry - the updated entry to set