Package org.ametys.web.repository.site
Interface SiteType
- All Superinterfaces:
Model
,ModelItemAccessor
,ModelItemContainer
- All Known Implementing Classes:
DefaultSiteType
,ProjectWorkspaceSiteType
This class represents a type of site.
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionRetrieves the description of the site type.Retrieves the CSS class to use for glyph icongetLabel()
Retrieves the label of the site type.Retrieves the URL of the icon without the context path.Retrieves the URL of the icon without the context path.default ElementDefinition
getModelItem
(String itemPath) Retrieves the model item at given pathRetrieves all the model items of this accessorgetName()
Retrieves the name of the site type.Retrieves the name of the plugin declaring this site type.Retrieves the URL of the icon without the context path.getView()
Retrieves the site type view, built from site parameter categories and groupsdefault boolean
Indicates if this site type is private.
Private site type are usually not shown when the types are enumerated (e.g.default boolean
Initially restricted site will not be accessible by default, which means that no READER profile will be affected on pages, contents etc...Methods inherited from interface org.ametys.runtime.model.Model
getFamilyId, getId
Methods inherited from interface org.ametys.runtime.model.ModelItemAccessor
getChild, hasModelItem
-
Field Details
-
DEFAULT_SITE_TYPE_ID
Constant for the default site type- See Also:
-
-
Method Details
-
getName
Retrieves the name of the site type.- Returns:
- the name.
-
getPluginName
Retrieves the name of the plugin declaring this site type.- Returns:
- the name of the plugin.
-
getLabel
Retrieves the label of the site type.- Returns:
- the label.
-
getDescription
Retrieves the description of the site type.- Returns:
- the description.
-
getIconGlyph
Retrieves the CSS class to use for glyph icon- Returns:
- the glyph name.
-
getSmallIcon
Retrieves the URL of the icon without the context path.- Returns:
- the icon URL for the small image 16x16.
-
getMediumIcon
Retrieves the URL of the icon without the context path.- Returns:
- the icon URL for the medium sized image 32x32.
-
getLargeIcon
Retrieves the URL of the icon without the context path.- Returns:
- the icon URL for the large image 48x48.
-
getModelItems
Description copied from interface:ModelItemAccessor
Retrieves all the model items of this accessor- Specified by:
getModelItems
in interfaceModelItemAccessor
- Returns:
- the model items
-
getModelItem
Description copied from interface:ModelItemAccessor
Retrieves the model item at given path- Specified by:
getModelItem
in interfaceModelItemAccessor
- Parameters:
itemPath
- the item path- Returns:
- the model item.
- Throws:
UndefinedItemPathException
- if there is no item defined at the given path
-
getView
Retrieves the site type view, built from site parameter categories and groups- Returns:
- the site type view
-
isPrivateType
Indicates if this site type is private.
Private site type are usually not shown when the types are enumerated (e.g. during site creation)- Returns:
- true if private
-
siteInitiallyRestricted
Initially restricted site will not be accessible by default, which means that no READER profile will be affected on pages, contents etc...- Returns:
- true if initially restricted
-