Class CmsAddContentRestriction.TypeEntry

java.lang.Object
org.opencms.ade.galleries.CmsAddContentRestriction.TypeEntry
Enclosing class:
CmsAddContentRestriction

public static class CmsAddContentRestriction.TypeEntry extends Object
Contains the replacements (and titles of the replacements) for a single type.
  • Constructor Details

    • TypeEntry

      public TypeEntry(String type, List<CmsResource> resources, Map<CmsUUID,String> titleReplacements, String origin)
      Creates a new entry.
      Parameters:
      type - the name of the resource type
      resources - the resources to use as a replacement
      titleReplacements - a map from structure ids to replacement titles for those
      origin - the place from which this entry was read
  • Method Details

    • getOrigin

      public String getOrigin()
      Gets the location from which this entry was read.
      Returns:
      the location from which the entry was read
    • getResults

      Gets the results to be displayed in the 'add content' dialog.
      Parameters:
      cms - the CMS context
      Returns:
      the results to display
    • getType

      public String getType()
      Gets the type.
      Returns:
      the type