Package org.opencms.ade.galleries
Class CmsAddContentRestriction.TypeEntry
java.lang.Object
org.opencms.ade.galleries.CmsAddContentRestriction.TypeEntry
- Enclosing class:
- CmsAddContentRestriction
Contains the replacements (and titles of the replacements) for a single type.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the location from which this entry was read.getResults
(CmsObject cms) Gets the results to be displayed in the 'add content' dialog.getType()
Gets the 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 typeresources
- the resources to use as a replacementtitleReplacements
- a map from structure ids to replacement titles for thoseorigin
- the place from which this entry was read
-
-
Method Details
-
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
Gets the type.- Returns:
- the type
-