public class ComputedGroupsServiceImpl extends DefaultComponent implements ComputedGroupsService
ComputedGroupsService
implementationModifier and Type | Field and Description |
---|---|
static String |
CHAIN_EP |
static String |
COMPUTER_EP |
Constructor and Description |
---|
ComputedGroupsServiceImpl() |
Modifier and Type | Method and Description |
---|---|
void |
activate(ComponentContext context)
Activates the component.
|
boolean |
activateComputedGroups() |
boolean |
allowGroupOverride()
Defines if a computed group can override a physical group.
|
List<String> |
computeGroupIds()
Returns list of all computed groups (if this is available).
|
List<String> |
computeGroupsForUser(NuxeoPrincipalImpl nuxeoPrincipal)
Returns list of ids for users computed groups.
|
void |
deactivate(ComponentContext context)
Deactivates the component.
|
NuxeoGroup |
getComputedGroup(String groupName)
Resolves a computed group by it's name.
|
List<String> |
getComputedGroupMembers(String groupName)
Retrieves member users for a given computed group.
|
List<String> |
getComputedGroupParent(String groupName)
Retrieves parent group for a given computed group.
|
List<String> |
getComputedGroupSubGroups(String groupName)
Retrieves sub groups for a given computed group.
|
List<GroupComputerDescriptor> |
getComputerDescriptors() |
void |
registerContribution(Object contribution,
String extensionPoint,
ComponentInstance contributor) |
List<String> |
searchComputedGroups(Map<String,Serializable> filter,
Set<String> fulltext)
Searches for a computed group.
|
void |
updateGroupsForUser(NuxeoPrincipalImpl nuxeoPrincipal)
Update the virtual groups of the user with the computed groups.
|
applicationStarted, getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterContribution, unregisterExtension
public static final String COMPUTER_EP
public static final String CHAIN_EP
public void activate(ComponentContext context) throws Exception
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextException
- if an error occurs during activationpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor) throws Exception
registerContribution
in class DefaultComponent
Exception
public List<String> computeGroupsForUser(NuxeoPrincipalImpl nuxeoPrincipal)
ComputedGroupsService
computeGroupsForUser
in interface ComputedGroupsService
public void updateGroupsForUser(NuxeoPrincipalImpl nuxeoPrincipal)
ComputedGroupsService
updateGroupsForUser
in interface ComputedGroupsService
public boolean allowGroupOverride()
ComputedGroupsService
allowGroupOverride
in interface ComputedGroupsService
public NuxeoGroup getComputedGroup(String groupName)
ComputedGroupsService
getComputedGroup
in interface ComputedGroupsService
public List<String> computeGroupIds()
ComputedGroupsService
computeGroupIds
in interface ComputedGroupsService
public List<String> getComputedGroupMembers(String groupName)
ComputedGroupsService
getComputedGroupMembers
in interface ComputedGroupsService
public List<String> getComputedGroupParent(String groupName)
ComputedGroupsService
getComputedGroupParent
in interface ComputedGroupsService
public List<String> getComputedGroupSubGroups(String groupName)
ComputedGroupsService
getComputedGroupSubGroups
in interface ComputedGroupsService
public List<GroupComputerDescriptor> getComputerDescriptors()
public boolean activateComputedGroups()
activateComputedGroups
in interface ComputedGroupsService
public List<String> searchComputedGroups(Map<String,Serializable> filter, Set<String> fulltext)
ComputedGroupsService
searchComputedGroups
in interface ComputedGroupsService
public void deactivate(ComponentContext context) throws Exception
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextException
- if an error occurs during activationCopyright © 2013 Nuxeo SA. All Rights Reserved.