Class CmsAddContentRestriction.TypeEntry

    • Constructor Summary

      Constructors 
      Constructor Description
      TypeEntry​(java.lang.String type, java.util.List<CmsResource> resources, java.util.Map<CmsUUID,​java.lang.String> titleReplacements, java.lang.String origin)
      Creates a new entry.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getOrigin()
      Gets the location from which this entry was read.
      java.util.List<CmsGallerySearchResult> getResults​(CmsObject cms)
      Gets the results to be displayed in the 'add content' dialog.
      java.lang.String getType()
      Gets the type.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TypeEntry

        public TypeEntry​(java.lang.String type,
                         java.util.List<CmsResource> resources,
                         java.util.Map<CmsUUID,​java.lang.String> titleReplacements,
                         java.lang.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 Detail

      • getOrigin

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

        public java.util.List<CmsGallerySearchResultgetResults​(CmsObject cms)
        Gets the results to be displayed in the 'add content' dialog.
        Parameters:
        cms - the CMS context
        Returns:
        the results to display
      • getType

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