Interface GroupedServicesSelector
Represents an interface for the GroupedServicesSelector component providing
methods used by the UI.
-
Method Summary
Modifier and TypeMethodDescriptionReturns all available groups.Returns the groups/services which are stored in a property of the content node of the currentPageresource.Returns the path of the resource of typecq:Pagefrom where the services are inherited ornullif values are not inherited.booleanChecks if the services are inherited.booleanChecks if the user bound to the current request is allowed to write the property this widget is storing its state to.
-
Method Details
-
getAllGroups
Returns all available groups. The list of groups contains maps with the following keys.{ title: 'My Group', description: 'Sample group', path: '/path/to/group', services: [{ title: 'My service', description: 'Sample service', path: '/path/to/service' }] }- Returns:
- List of all available groups.
-
getGroupsForResource
Returns the groups/services which are stored in a property of the content node of the currentPageresource. The list of groups contains maps with the following keys.{ title: 'My Group', description: 'Sample group', path: '/path/to/group', inherited: false, services: [{ title: 'My service', description: 'Sample service', path: '/path/to/service', selected: false }] }- Returns:
- List of groups for current page.
-
isInherited
boolean isInherited()Checks if the services are inherited.- Returns:
trueif services are inherited,falseotherwise.
-
getInheritedPath
String getInheritedPath()Returns the path of the resource of typecq:Pagefrom where the services are inherited ornullif values are not inherited.- Returns:
- Path of the inheritance source or
null
-
isWriteAllowed
boolean isWriteAllowed()Checks if the user bound to the current request is allowed to write the property this widget is storing its state to. If the user is allowed to write,truewill be returned otherwisefalse.- Returns:
trueif user is allowed to write,falseotherwise.
-