Class CmsReuseInfo

java.lang.Object
org.opencms.ade.containerpage.shared.CmsReuseInfo
All Implemented Interfaces:
com.google.gwt.user.client.rpc.IsSerializable

public class CmsReuseInfo extends Object implements com.google.gwt.user.client.rpc.IsSerializable
Information about how an element is reused, to be displayed in a reuse warning dialog before editing.
  • Constructor Details

    • CmsReuseInfo

      public CmsReuseInfo()
      Creates a new instance.
    • CmsReuseInfo

      public CmsReuseInfo(CmsListInfoBean elementInfo, List<CmsResourceListInfo> pageInfos, String message, String title, int count)
      Creates a new instance.
      Parameters:
      elementInfo - the resource info for the container element itself
      pageInfos - the resource infos for the pages where the element is used
      message - the message to display
      title - the title for the dialog
      count - the number of places where the element is used
  • Method Details

    • getCount

      public int getCount()
      Gets the number of places where the element is used.
      Returns:
      the number of places where the element is used
    • getElementInfo

      Gets the element info for the container element itself.
      Returns:
      the element info for the container element
    • getMessage

      public String getMessage()
      Gets the message to display.
      Returns:
      the message to display
    • getTitle

      public String getTitle()
      Gets the dialog title.
      Returns:
      the dialog title
    • getUsageInfos

      Gets the resource info beans for the places where the element is used.
      Returns:
      the resource info beans for the places where the element is used