Class ComputedGroupsServiceImpl
java.lang.Object
org.nuxeo.runtime.model.DefaultComponent
org.nuxeo.ecm.platform.computedgroups.ComputedGroupsServiceImpl
- All Implemented Interfaces:
ComputedGroupsService
,Adaptable
,Component
,Extensible
,TimestampedService
ComputedGroupsService
implementation- Author:
- Thierry Delprat
-
Field Summary
Modifier and TypeFieldDescriptionprotected boolean
static final String
static final String
protected Map<String,
GroupComputerDescriptor> Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
activate
(ComponentContext context) Activates the component.boolean
boolean
Defines if a computed group can override a physical group.Returns list of all computed groups (if this is available).computeGroupsForUser
(NuxeoPrincipalImpl nuxeoPrincipal) Returns list of ids for users computed groups.void
deactivate
(ComponentContext context) Deactivates the component.getComputedGroup
(String groupName, GroupConfig groupConfig) Resolves a computed group by it's name.getComputedGroupMembers
(String groupName) Retrieves member users for a given computed group.getComputedGroupParent
(String groupName) Retrieves parent group for a given computed group.getComputedGroupSubGroups
(String groupName) Retrieves sub groups for a given computed group.void
registerContribution
(Object contribution, String extensionPoint, ComponentInstance contributor) searchComputedGroups
(Map<String, Serializable> filter, Set<String> fulltext) Searches for a computed group.searchComputedGroups
(QueryBuilder queryBuilder) Searches for computed groups.void
updateGroupsForUser
(NuxeoPrincipalImpl nuxeoPrincipal) Update the virtual groups of the user with the computed groups.Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
addRuntimeMessage, addRuntimeMessage, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterContribution, unregisterExtension
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.model.Component
getApplicationStartedOrder
-
Field Details
-
COMPUTER_EP
- See Also:
-
CHAIN_EP
- See Also:
-
computers
-
computerNames
-
allowOverride
protected boolean allowOverride
-
-
Constructor Details
-
ComputedGroupsServiceImpl
public ComputedGroupsServiceImpl()
-
-
Method Details
-
activate
Description copied from interface:Component
Activates the component.This method is called by the runtime when a component is activated.
- Specified by:
activate
in interfaceComponent
- Overrides:
activate
in classDefaultComponent
- Parameters:
context
- the runtime context
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
registerContribution
in classDefaultComponent
-
computeGroupsForUser
Description copied from interface:ComputedGroupsService
Returns list of ids for users computed groups.- Specified by:
computeGroupsForUser
in interfaceComputedGroupsService
-
updateGroupsForUser
Description copied from interface:ComputedGroupsService
Update the virtual groups of the user with the computed groups.- Specified by:
updateGroupsForUser
in interfaceComputedGroupsService
-
allowGroupOverride
public boolean allowGroupOverride()Description copied from interface:ComputedGroupsService
Defines if a computed group can override a physical group.- Specified by:
allowGroupOverride
in interfaceComputedGroupsService
-
getComputedGroup
Description copied from interface:ComputedGroupsService
Resolves a computed group by it's name.- Specified by:
getComputedGroup
in interfaceComputedGroupsService
-
computeGroupIds
Description copied from interface:ComputedGroupsService
Returns list of all computed groups (if this is available).- Specified by:
computeGroupIds
in interfaceComputedGroupsService
-
getComputedGroupMembers
Description copied from interface:ComputedGroupsService
Retrieves member users for a given computed group.- Specified by:
getComputedGroupMembers
in interfaceComputedGroupsService
-
getComputedGroupParent
Description copied from interface:ComputedGroupsService
Retrieves parent group for a given computed group.- Specified by:
getComputedGroupParent
in interfaceComputedGroupsService
-
getComputedGroupSubGroups
Description copied from interface:ComputedGroupsService
Retrieves sub groups for a given computed group.- Specified by:
getComputedGroupSubGroups
in interfaceComputedGroupsService
-
getComputerDescriptors
-
activateComputedGroups
public boolean activateComputedGroups()- Specified by:
activateComputedGroups
in interfaceComputedGroupsService
-
searchComputedGroups
Description copied from interface:ComputedGroupsService
Searches for a computed group.- Specified by:
searchComputedGroups
in interfaceComputedGroupsService
-
searchComputedGroups
Description copied from interface:ComputedGroupsService
Searches for computed groups.- Specified by:
searchComputedGroups
in interfaceComputedGroupsService
- Parameters:
queryBuilder
- the query- Returns:
- the list of computed group ids
-
deactivate
Description copied from interface:Component
Deactivates the component.This method is called by the runtime when a component is deactivated.
- Specified by:
deactivate
in interfaceComponent
- Overrides:
deactivate
in classDefaultComponent
- Parameters:
context
- the runtime context
-