public class ComputedGroupsServiceImpl extends DefaultComponent implements ComputedGroupsService
ComputedGroupsService implementation| Modifier 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, name| 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)
Deprecated.  
 | 
NuxeoGroup | 
getComputedGroup(String groupName,
                GroupConfig groupConfig)
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. 
 | 
List<String> | 
searchComputedGroups(QueryBuilder queryBuilder)
Searches for computed groups. 
 | 
void | 
updateGroupsForUser(NuxeoPrincipalImpl nuxeoPrincipal)
Update the virtual groups of the user with the computed groups. 
 | 
getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterContribution, unregisterExtensionclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitapplicationStarted, getApplicationStartedOrderpublic 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)
ComponentThis method is called by the runtime when a component is activated.
activate in interface Componentactivate in class DefaultComponentcontext - the runtime contextpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution in class DefaultComponentpublic List<String> computeGroupsForUser(NuxeoPrincipalImpl nuxeoPrincipal)
ComputedGroupsServicecomputeGroupsForUser in interface ComputedGroupsServicepublic void updateGroupsForUser(NuxeoPrincipalImpl nuxeoPrincipal)
ComputedGroupsServiceupdateGroupsForUser in interface ComputedGroupsServicepublic boolean allowGroupOverride()
ComputedGroupsServiceallowGroupOverride in interface ComputedGroupsService@Deprecated public NuxeoGroup getComputedGroup(String groupName)
ComputedGroupsServicegetComputedGroup in interface ComputedGroupsServicepublic NuxeoGroup getComputedGroup(String groupName, GroupConfig groupConfig)
ComputedGroupsServicegetComputedGroup in interface ComputedGroupsServicepublic List<String> computeGroupIds()
ComputedGroupsServicecomputeGroupIds in interface ComputedGroupsServicepublic List<String> getComputedGroupMembers(String groupName)
ComputedGroupsServicegetComputedGroupMembers in interface ComputedGroupsServicepublic List<String> getComputedGroupParent(String groupName)
ComputedGroupsServicegetComputedGroupParent in interface ComputedGroupsServicepublic List<String> getComputedGroupSubGroups(String groupName)
ComputedGroupsServicegetComputedGroupSubGroups in interface ComputedGroupsServicepublic List<GroupComputerDescriptor> getComputerDescriptors()
public boolean activateComputedGroups()
activateComputedGroups in interface ComputedGroupsServicepublic List<String> searchComputedGroups(Map<String,Serializable> filter, Set<String> fulltext)
ComputedGroupsServicesearchComputedGroups in interface ComputedGroupsServicepublic List<String> searchComputedGroups(QueryBuilder queryBuilder)
ComputedGroupsServicesearchComputedGroups in interface ComputedGroupsServicequeryBuilder - the querypublic void deactivate(ComponentContext context)
ComponentThis method is called by the runtime when a component is deactivated.
deactivate in interface Componentdeactivate in class DefaultComponentcontext - the runtime contextCopyright © 2019 Nuxeo. All rights reserved.