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, ...
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<String>
getAvailableContentTypes(Page page, String zoneName)
Returns the list of available content types for a givenPage
and zone name.Set<String>
getAvailableContentTypes(Page page, String zoneName, boolean includePrivate)
Returns the list of available content types for a givenPage
and zone name.Set<String>
getAvailableContentTypes(Site site)
Returns the list of available content types for a givenSite
Set<String>
getAvailableContentTypes(Site site, boolean includePrivate)
Returns the list of available content types for a givenSite
-
-
-
Method Detail
-
getAvailableContentTypes
Set<String> getAvailableContentTypes(Site site)
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
Set<String> getAvailableContentTypes(Site site, boolean includePrivate)
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
Set<String> getAvailableContentTypes(Page page, String zoneName)
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
Set<String> getAvailableContentTypes(Page page, String zoneName, boolean includePrivate)
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
-
-