public class ComputedGroupsServiceImpl extends DefaultComponent implements ComputedGroupsService
ComputedGroupsService
implementationModifier and Type | Field and Description |
---|---|
protected boolean |
allowOverride |
static String |
CHAIN_EP |
static String |
COMPUTER_EP |
protected static List<String> |
computerNames |
protected static Map<String,GroupComputerDescriptor> |
computers |
protected static org.apache.commons.logging.Log |
log |
lastModified
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.
|
getAdapter, getLastModified, registerExtension, setLastModified, setModifiedNow, start, stop, unregisterContribution, unregisterExtension
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
applicationStarted, getApplicationStartedOrder
public static final String COMPUTER_EP
public static final String CHAIN_EP
protected static Map<String,GroupComputerDescriptor> computers
protected static List<String> computerNames
protected boolean allowOverride
protected static org.apache.commons.logging.Log log
public ComputedGroupsServiceImpl()
public void activate(ComponentContext context)
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
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)
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextCopyright © 2017 Nuxeo. All rights reserved.