Package org.opencms.ade.galleries
Class CmsAddContentRestriction.TypeEntry
- java.lang.Object
-
- org.opencms.ade.galleries.CmsAddContentRestriction.TypeEntry
-
- Enclosing class:
- CmsAddContentRestriction
public static class CmsAddContentRestriction.TypeEntry extends java.lang.Object
Contains the replacements (and titles of the replacements) for a single type.
-
-
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.
-
-
-
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 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 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<CmsGallerySearchResult> getResults(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
-
-