Nuxeo Enterprise Platform 5.4

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 java.lang.String CHAIN_EP
           
static java.lang.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.
 java.util.List<java.lang.String> computeGroupIds()
          Returns list of all computed groups (if this is available).
 java.util.List<java.lang.String> computeGroupsForUser(NuxeoPrincipalImpl nuxeoPrincipal)
          Returns list of ids for users computed groups.
 void deactivate(ComponentContext context)
          Deactivates the component.
 NuxeoGroup getComputedGroup(java.lang.String groupName)
          Resolves a computed group by it's name.
 java.util.List<java.lang.String> getComputedGroupMembers(java.lang.String groupName)
          Retrieves member users for a given computed group.
 java.util.List<java.lang.String> getComputedGroupParent(java.lang.String groupName)
          Retrieves parent group for a given computed group.
 java.util.List<java.lang.String> getComputedGroupSubGroups(java.lang.String groupName)
          Retrieves sub groups for a given computed group.
 java.util.List<GroupComputerDescriptor> getComputerDescriptors()
           
 void registerContribution(java.lang.Object contribution, java.lang.String extensionPoint, ComponentInstance contributor)
           
 java.util.List<java.lang.String> searchComputedGroups(java.util.Map<java.lang.String,java.io.Serializable> filter, java.util.HashSet<java.lang.String> fulltext)
          Searches for a computed group.
 
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
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 java.lang.String COMPUTER_EP
See Also:
Constant Field Values

CHAIN_EP

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

ComputedGroupsServiceImpl

public ComputedGroupsServiceImpl()
Method Detail

activate

public void activate(ComponentContext context)
              throws java.lang.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:
java.lang.Exception - if an error occurs during activation

registerContribution

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

computeGroupsForUser

public java.util.List<java.lang.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(java.lang.String groupName)
Description copied from interface: ComputedGroupsService
Resolves a computed group by it's name.

Specified by:
getComputedGroup in interface ComputedGroupsService

computeGroupIds

public java.util.List<java.lang.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 java.util.List<java.lang.String> getComputedGroupMembers(java.lang.String groupName)
Description copied from interface: ComputedGroupsService
Retrieves member users for a given computed group.

Specified by:
getComputedGroupMembers in interface ComputedGroupsService

getComputedGroupParent

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

Specified by:
getComputedGroupParent in interface ComputedGroupsService

getComputedGroupSubGroups

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

Specified by:
getComputedGroupSubGroups in interface ComputedGroupsService

getComputerDescriptors

public java.util.List<GroupComputerDescriptor> getComputerDescriptors()

activateComputedGroups

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

searchComputedGroups

public java.util.List<java.lang.String> searchComputedGroups(java.util.Map<java.lang.String,java.io.Serializable> filter,
                                                             java.util.HashSet<java.lang.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 java.lang.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:
java.lang.Exception - if an error occurs during activation

Nuxeo Enterprise Platform 5.4

Copyright © 2010 Nuxeo SAS. All Rights Reserved.