Class GroupDAOImpl

java.lang.Object
org.exoplatform.services.organization.idm.AbstractDAOImpl
org.exoplatform.services.organization.idm.GroupDAOImpl
All Implemented Interfaces:
org.exoplatform.services.organization.GroupHandler
Direct Known Subclasses:
CacheableGroupHandlerImpl

public class GroupDAOImpl extends AbstractDAOImpl implements org.exoplatform.services.organization.GroupHandler
  • Field Details

  • Constructor Details

  • Method Details

    • addGroupEventListener

      public void addGroupEventListener(org.exoplatform.services.organization.GroupEventListener listener)
      Specified by:
      addGroupEventListener in interface org.exoplatform.services.organization.GroupHandler
    • removeGroupEventListener

      public void removeGroupEventListener(org.exoplatform.services.organization.GroupEventListener listener)
      Specified by:
      removeGroupEventListener in interface org.exoplatform.services.organization.GroupHandler
    • createGroupInstance

      public final org.exoplatform.services.organization.Group createGroupInstance()
      Specified by:
      createGroupInstance in interface org.exoplatform.services.organization.GroupHandler
    • createGroup

      public void createGroup(org.exoplatform.services.organization.Group group, boolean broadcast) throws Exception
      Specified by:
      createGroup in interface org.exoplatform.services.organization.GroupHandler
      Throws:
      Exception
    • addChild

      public void addChild(org.exoplatform.services.organization.Group parent, org.exoplatform.services.organization.Group child, boolean broadcast) throws Exception
      Specified by:
      addChild in interface org.exoplatform.services.organization.GroupHandler
      Throws:
      Exception
    • moveGroup

      public void moveGroup(org.exoplatform.services.organization.Group parentOriginGroup, org.exoplatform.services.organization.Group parentTargetGroup, org.exoplatform.services.organization.Group groupToMove) throws Exception
      Specified by:
      moveGroup in interface org.exoplatform.services.organization.GroupHandler
      Throws:
      Exception
    • saveGroup

      public void saveGroup(org.exoplatform.services.organization.Group group, boolean broadcast) throws Exception
      Specified by:
      saveGroup in interface org.exoplatform.services.organization.GroupHandler
      Throws:
      Exception
    • removeGroup

      public org.exoplatform.services.organization.Group removeGroup(org.exoplatform.services.organization.Group group, boolean broadcast) throws Exception
      Specified by:
      removeGroup in interface org.exoplatform.services.organization.GroupHandler
      Throws:
      Exception
    • findGroupByMembership

      public Collection<org.exoplatform.services.organization.Group> findGroupByMembership(String userName, String membershipType) throws Exception
      Specified by:
      findGroupByMembership in interface org.exoplatform.services.organization.GroupHandler
      Throws:
      Exception
    • resolveGroupByMembership

      public Collection<org.exoplatform.services.organization.Group> resolveGroupByMembership(String userName, String membershipType) throws Exception
      Specified by:
      resolveGroupByMembership in interface org.exoplatform.services.organization.GroupHandler
      Throws:
      Exception
    • findGroupById

      public org.exoplatform.services.organization.Group findGroupById(String groupId) throws Exception
      Specified by:
      findGroupById in interface org.exoplatform.services.organization.GroupHandler
      Throws:
      Exception
    • findGroupChildren

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.Group> findGroupChildren(org.exoplatform.services.organization.Group parent, String keyword) throws Exception
      Specified by:
      findGroupChildren in interface org.exoplatform.services.organization.GroupHandler
      Throws:
      Exception
    • findGroups

      public Collection<org.exoplatform.services.organization.Group> findGroups(org.exoplatform.services.organization.Group parent) throws Exception
      Specified by:
      findGroups in interface org.exoplatform.services.organization.GroupHandler
      Throws:
      Exception
    • findGroupsOfUser

      public Collection<org.exoplatform.services.organization.Group> findGroupsOfUser(String user) throws Exception
      Specified by:
      findGroupsOfUser in interface org.exoplatform.services.organization.GroupHandler
      Throws:
      Exception
    • findGroupsOfUserByKeyword

      public Collection<org.exoplatform.services.organization.Group> findGroupsOfUserByKeyword(String user, String keyword, String groupType) throws IOException
      Specified by:
      findGroupsOfUserByKeyword in interface org.exoplatform.services.organization.GroupHandler
      Throws:
      IOException
    • getAllGroups

      public Collection<org.exoplatform.services.organization.Group> getAllGroups() throws Exception
      Specified by:
      getAllGroups in interface org.exoplatform.services.organization.GroupHandler
      Throws:
      Exception
    • findGroupsByKeyword

      public org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.Group> findGroupsByKeyword(String keyword) throws Exception
      Specified by:
      findGroupsByKeyword in interface org.exoplatform.services.organization.GroupHandler
      Throws:
      Exception
    • findAllGroupsByKeyword

      public Collection<org.exoplatform.services.organization.Group> findAllGroupsByKeyword(String keyword, List<String> excludedGroupsParent) throws Exception
      Specified by:
      findAllGroupsByKeyword in interface org.exoplatform.services.organization.GroupHandler
      Throws:
      Exception
    • findGroupsOfUserByKeyword

      public Collection<org.exoplatform.services.organization.Group> findGroupsOfUserByKeyword(String user, String keyword, List<String> excludedGroupsParent) throws Exception
      Specified by:
      findGroupsOfUserByKeyword in interface org.exoplatform.services.organization.GroupHandler
      Throws:
      Exception
    • getChildrenGroups

      public List<org.exoplatform.services.organization.Group> getChildrenGroups(org.exoplatform.services.organization.Group parent, org.picketlink.idm.api.IdentitySearchCriteria identitySearchCriteria) throws Exception
      Throws:
      Exception
    • getPLIDMGroup

      public org.picketlink.idm.api.Group getPLIDMGroup(org.exoplatform.services.organization.Group group) throws Exception
      Throws:
      Exception
    • convertGroup

      public org.exoplatform.services.organization.Group convertGroup(org.picketlink.idm.api.Group jbidGroup) throws Exception
      Throws:
      Exception
    • getGroupId

      public String getGroupId(org.picketlink.idm.api.Group jbidGroup, List<org.picketlink.idm.api.Group> processed) throws Exception
      Calculates group id by checking all parents up to the root group or group type mapping from the configuration.
      Parameters:
      jbidGroup -
      processed -
      Returns:
      Throws:
      Exception
    • getRootGroup

      protected org.picketlink.idm.api.Group getRootGroup() throws Exception
      Returns mock of PLIDM group representing "/" group. This method uses cache and delegates to obtainRootGroup().
      Returns:
      Throws:
      Exception
    • obtainRootGroup

      public org.picketlink.idm.api.Group obtainRootGroup() throws Exception
      Obtains PLIDM group representing "/" group. If such group doens't exist it creates one.
      Returns:
      Throws:
      Exception
    • getPLIDMGroupName

      public String getPLIDMGroupName(String gtnGroupName)
    • getGtnGroupName

      public String getGtnGroupName(String plidmGroupName)