Package org.ametys.web.repository.page
Interface ServicesAssignmentHandler
- All Known Implementing Classes:
DefaultServicesAssignmentHandler
public interface ServicesAssignmentHandler
A ServicesAssignmentHandler is responsible for giving the available services 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 TypeMethodDescriptiongetAvailableServices
(SitemapElement page, String zoneName) Returns the list of available services for a givenZone
.limitAvailableServiceViews
(Set<String> allViews, SitemapElement page, String zoneName, String serviceId) Returns the list of authorized view for a givenPage
, zone name and service
-
Field Details
-
ROLE
The Avalon Role
-
-
Method Details
-
getAvailableServices
Returns the list of available services for a givenZone
.- Parameters:
page
- the Page to considerzoneName
- the zone name to consider- Returns:
- the list of available services ' id for a given Page and Zone
-
limitAvailableServiceViews
Set<String> limitAvailableServiceViews(Set<String> allViews, SitemapElement page, String zoneName, String serviceId) Returns the list of authorized view for a givenPage
, zone name and service- Parameters:
allViews
- All existing view to limitpage
- The page to considerzoneName
- The zone name to considerserviceId
- The service to consider- Returns:
- The non null list of available views
-