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
FieldsModifier and TypeFieldDescriptionprotected booleanstatic final Stringstatic final Stringprotected Map<String, GroupComputerDescriptor> Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidactivate(ComponentContext context) Activates the component.booleanbooleanDefines 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.voiddeactivate(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.voidregisterContribution(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.voidupdateGroupsForUser(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, unregisterExtensionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:ComponentActivates the component.This method is called by the runtime when a component is activated.
- Specified by:
activatein interfaceComponent- Overrides:
activatein classDefaultComponent- Parameters:
context- the runtime context
-
registerContribution
public void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) - Overrides:
registerContributionin classDefaultComponent
-
computeGroupsForUser
Description copied from interface:ComputedGroupsServiceReturns list of ids for users computed groups.- Specified by:
computeGroupsForUserin interfaceComputedGroupsService
-
updateGroupsForUser
Description copied from interface:ComputedGroupsServiceUpdate the virtual groups of the user with the computed groups.- Specified by:
updateGroupsForUserin interfaceComputedGroupsService
-
allowGroupOverride
public boolean allowGroupOverride()Description copied from interface:ComputedGroupsServiceDefines if a computed group can override a physical group.- Specified by:
allowGroupOverridein interfaceComputedGroupsService
-
getComputedGroup
Description copied from interface:ComputedGroupsServiceResolves a computed group by it's name.- Specified by:
getComputedGroupin interfaceComputedGroupsService
-
computeGroupIds
Description copied from interface:ComputedGroupsServiceReturns list of all computed groups (if this is available).- Specified by:
computeGroupIdsin interfaceComputedGroupsService
-
getComputedGroupMembers
Description copied from interface:ComputedGroupsServiceRetrieves member users for a given computed group.- Specified by:
getComputedGroupMembersin interfaceComputedGroupsService
-
getComputedGroupParent
Description copied from interface:ComputedGroupsServiceRetrieves parent group for a given computed group.- Specified by:
getComputedGroupParentin interfaceComputedGroupsService
-
getComputedGroupSubGroups
Description copied from interface:ComputedGroupsServiceRetrieves sub groups for a given computed group.- Specified by:
getComputedGroupSubGroupsin interfaceComputedGroupsService
-
getComputerDescriptors
-
activateComputedGroups
public boolean activateComputedGroups()- Specified by:
activateComputedGroupsin interfaceComputedGroupsService
-
searchComputedGroups
Description copied from interface:ComputedGroupsServiceSearches for a computed group.- Specified by:
searchComputedGroupsin interfaceComputedGroupsService
-
searchComputedGroups
Description copied from interface:ComputedGroupsServiceSearches for computed groups.- Specified by:
searchComputedGroupsin interfaceComputedGroupsService- Parameters:
queryBuilder- the query- Returns:
- the list of computed group ids
-
deactivate
Description copied from interface:ComponentDeactivates the component.This method is called by the runtime when a component is deactivated.
- Specified by:
deactivatein interfaceComponent- Overrides:
deactivatein classDefaultComponent- Parameters:
context- the runtime context
-