Nuxeo ECM Projects 5.4.3-SNAPSHOT

org.nuxeo.ecm.platform.computedgroups
Class ComputedGroupsServiceImpl

java.lang.Object
  extended by org.nuxeo.runtime.model.DefaultComponent
      extended by org.nuxeo.ecm.platform.computedgroups.ComputedGroupsServiceImpl
All Implemented Interfaces:
ComputedGroupsService, Adaptable, Component, Extensible

public class ComputedGroupsServiceImpl
extends DefaultComponent
implements ComputedGroupsService

ComputedGroupsService implementation

Author:
Thierry Delprat

Field Summary
static String CHAIN_EP
           
static String COMPUTER_EP
           
 
Constructor Summary
ComputedGroupsServiceImpl()
           
 
Method Summary
 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.
 
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
applicationStarted, getAdapter, registerExtension, unregisterContribution, unregisterExtension
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COMPUTER_EP

public static final String COMPUTER_EP
See Also:
Constant Field Values

CHAIN_EP

public static final String CHAIN_EP
See Also:
Constant Field Values
Constructor Detail

ComputedGroupsServiceImpl

public ComputedGroupsServiceImpl()
Method Detail

activate

public void activate(ComponentContext context)
              throws Exception
Description copied from interface: Component
Activates the component.

This method is called by the runtime when a component is activated.

Specified by:
activate in interface Component
Overrides:
activate in class DefaultComponent
Parameters:
context - the runtime context
Throws:
Exception - if an error occurs during activation

registerContribution

public void registerContribution(Object contribution,
                                 String extensionPoint,
                                 ComponentInstance contributor)
                          throws Exception
Overrides:
registerContribution in class DefaultComponent
Throws:
Exception

computeGroupsForUser

public List<String> computeGroupsForUser(NuxeoPrincipalImpl nuxeoPrincipal)
Description copied from interface: ComputedGroupsService
Returns list of ids for users computed groups.

Specified by:
computeGroupsForUser in interface ComputedGroupsService

allowGroupOverride

public boolean allowGroupOverride()
Description copied from interface: ComputedGroupsService
Defines if a computed group can override a physical group.

Specified by:
allowGroupOverride in interface ComputedGroupsService

getComputedGroup

public NuxeoGroup getComputedGroup(String groupName)
Description copied from interface: ComputedGroupsService
Resolves a computed group by it's name.

Specified by:
getComputedGroup in interface ComputedGroupsService

computeGroupIds

public List<String> computeGroupIds()
Description copied from interface: ComputedGroupsService
Returns list of all computed groups (if this is available).

Specified by:
computeGroupIds in interface ComputedGroupsService

getComputedGroupMembers

public List<String> getComputedGroupMembers(String groupName)
Description copied from interface: ComputedGroupsService
Retrieves member users for a given computed group.

Specified by:
getComputedGroupMembers in interface ComputedGroupsService

getComputedGroupParent

public List<String> getComputedGroupParent(String groupName)
Description copied from interface: ComputedGroupsService
Retrieves parent group for a given computed group.

Specified by:
getComputedGroupParent in interface ComputedGroupsService

getComputedGroupSubGroups

public List<String> getComputedGroupSubGroups(String groupName)
Description copied from interface: ComputedGroupsService
Retrieves sub groups for a given computed group.

Specified by:
getComputedGroupSubGroups in interface ComputedGroupsService

getComputerDescriptors

public List<GroupComputerDescriptor> getComputerDescriptors()

activateComputedGroups

public boolean activateComputedGroups()
Specified by:
activateComputedGroups in interface ComputedGroupsService

searchComputedGroups

public List<String> searchComputedGroups(Map<String,Serializable> filter,
                                         Set<String> fulltext)
Description copied from interface: ComputedGroupsService
Searches for a computed group.

Specified by:
searchComputedGroups in interface ComputedGroupsService

deactivate

public void deactivate(ComponentContext context)
                throws Exception
Description copied from interface: Component
Deactivates the component.

This method is called by the runtime when a component is deactivated.

Specified by:
deactivate in interface Component
Overrides:
deactivate in class DefaultComponent
Parameters:
context - the runtime context
Throws:
Exception - if an error occurs during activation

Nuxeo ECM Projects 5.4.3-SNAPSHOT

Copyright © 2011 Nuxeo SAS. All Rights Reserved.