Package org.ametys.web.repository.page
Interface ContentTypesAssignmentHandler
- All Known Implementing Classes:
DefaultContentTypesAssignmentHandler
public interface ContentTypesAssignmentHandler
A ContentTypesAssignementHandler is responsible for giving the available content types list for a given Zone.
This list can be computed according any application needs, such as Rights of the logged in user, path of the Page, ...
-
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAvailableContentTypes
(Page page, String zoneName) Returns the list of available content types for a givenPage
and zone name.getAvailableContentTypes
(Page page, String zoneName, boolean includePrivate) Returns the list of available content types for a givenPage
and zone name.getAvailableContentTypes
(Site site) Returns the list of available content types for a givenSite
getAvailableContentTypes
(Site site, boolean includePrivate) Returns the list of available content types for a givenSite
-
Field Details
-
ROLE
The Avalon Role
-
-
Method Details
-
getAvailableContentTypes
Returns the list of available content types for a givenSite
- Parameters:
site
- the site to consider- Returns:
- the list of available content types id
-
getAvailableContentTypes
Returns the list of available content types for a givenSite
- Parameters:
site
- the site to considerincludePrivate
- true to include private content types- Returns:
- the list of available content types id
-
getAvailableContentTypes
Returns the list of available content types for a givenPage
and zone name.- Parameters:
page
- the Page to considerzoneName
- the zone name to consider- Returns:
- the list of available content types id
-
getAvailableContentTypes
Returns the list of available content types for a givenPage
and zone name.- Parameters:
page
- the Page to considerzoneName
- the zone name to considerincludePrivate
- true to include private content types- Returns:
- the list of available content types id
-