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 Summary
FieldsFields inherited from class org.exoplatform.services.organization.idm.AbstractDAOImpl
log, orgService, service_ -
Constructor Summary
ConstructorsConstructorDescriptionGroupDAOImpl(PicketLinkIDMOrganizationServiceImpl orgService, PicketLinkIDMService service) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddChild(org.exoplatform.services.organization.Group parent, org.exoplatform.services.organization.Group child, boolean broadcast) voidaddGroupEventListener(org.exoplatform.services.organization.GroupEventListener listener) org.exoplatform.services.organization.GroupconvertGroup(org.picketlink.idm.api.Group jbidGroup) voidcreateGroup(org.exoplatform.services.organization.Group group, boolean broadcast) final org.exoplatform.services.organization.GroupCollection<org.exoplatform.services.organization.Group> findAllGroupsByKeyword(String keyword, List<String> excludedGroupsParent) org.exoplatform.services.organization.GroupfindGroupById(String groupId) Collection<org.exoplatform.services.organization.Group> findGroupByMembership(String userName, String membershipType) org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.Group> findGroupChildren(org.exoplatform.services.organization.Group parent, String keyword) Collection<org.exoplatform.services.organization.Group> findGroups(org.exoplatform.services.organization.Group parent) org.exoplatform.commons.utils.ListAccess<org.exoplatform.services.organization.Group> findGroupsByKeyword(String keyword) Collection<org.exoplatform.services.organization.Group> findGroupsOfUser(String user) Collection<org.exoplatform.services.organization.Group> findGroupsOfUserByKeyword(String user, String keyword, String groupType) Collection<org.exoplatform.services.organization.Group> findGroupsOfUserByKeyword(String user, String keyword, List<String> excludedGroupsParent) Collection<org.exoplatform.services.organization.Group> List<org.exoplatform.services.organization.Group> getChildrenGroups(org.exoplatform.services.organization.Group parent, org.picketlink.idm.api.IdentitySearchCriteria identitySearchCriteria) getGroupId(org.picketlink.idm.api.Group jbidGroup, List<org.picketlink.idm.api.Group> processed) Calculates group id by checking all parents up to the root group or group type mapping from the configuration.getGtnGroupName(String plidmGroupName) org.picketlink.idm.api.GroupgetPLIDMGroup(org.exoplatform.services.organization.Group group) getPLIDMGroupName(String gtnGroupName) protected org.picketlink.idm.api.GroupReturns mock of PLIDM group representing "/" group.voidmoveGroup(org.exoplatform.services.organization.Group parentOriginGroup, org.exoplatform.services.organization.Group parentTargetGroup, org.exoplatform.services.organization.Group groupToMove) org.picketlink.idm.api.GroupObtains PLIDM group representing "/" group.org.exoplatform.services.organization.GroupremoveGroup(org.exoplatform.services.organization.Group group, boolean broadcast) voidremoveGroupEventListener(org.exoplatform.services.organization.GroupEventListener listener) Collection<org.exoplatform.services.organization.Group> resolveGroupByMembership(String userName, String membershipType) voidsaveGroup(org.exoplatform.services.organization.Group group, boolean broadcast) Methods inherited from class org.exoplatform.services.organization.idm.AbstractDAOImpl
getIdentitySession, handleException
-
Field Details
-
GROUP_LABEL
- See Also:
-
GROUP_DESCRIPTION
- See Also:
-
-
Constructor Details
-
GroupDAOImpl
-
-
Method Details
-
addGroupEventListener
public void addGroupEventListener(org.exoplatform.services.organization.GroupEventListener listener) - Specified by:
addGroupEventListenerin interfaceorg.exoplatform.services.organization.GroupHandler
-
removeGroupEventListener
public void removeGroupEventListener(org.exoplatform.services.organization.GroupEventListener listener) - Specified by:
removeGroupEventListenerin interfaceorg.exoplatform.services.organization.GroupHandler
-
createGroupInstance
public final org.exoplatform.services.organization.Group createGroupInstance()- Specified by:
createGroupInstancein interfaceorg.exoplatform.services.organization.GroupHandler
-
createGroup
public void createGroup(org.exoplatform.services.organization.Group group, boolean broadcast) throws Exception - Specified by:
createGroupin interfaceorg.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:
addChildin interfaceorg.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:
moveGroupin interfaceorg.exoplatform.services.organization.GroupHandler- Throws:
Exception
-
saveGroup
public void saveGroup(org.exoplatform.services.organization.Group group, boolean broadcast) throws Exception - Specified by:
saveGroupin interfaceorg.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:
removeGroupin interfaceorg.exoplatform.services.organization.GroupHandler- Throws:
Exception
-
findGroupByMembership
public Collection<org.exoplatform.services.organization.Group> findGroupByMembership(String userName, String membershipType) throws Exception - Specified by:
findGroupByMembershipin interfaceorg.exoplatform.services.organization.GroupHandler- Throws:
Exception
-
resolveGroupByMembership
public Collection<org.exoplatform.services.organization.Group> resolveGroupByMembership(String userName, String membershipType) throws Exception - Specified by:
resolveGroupByMembershipin interfaceorg.exoplatform.services.organization.GroupHandler- Throws:
Exception
-
findGroupById
- Specified by:
findGroupByIdin interfaceorg.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:
findGroupChildrenin interfaceorg.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:
findGroupsin interfaceorg.exoplatform.services.organization.GroupHandler- Throws:
Exception
-
findGroupsOfUser
public Collection<org.exoplatform.services.organization.Group> findGroupsOfUser(String user) throws Exception - Specified by:
findGroupsOfUserin interfaceorg.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:
findGroupsOfUserByKeywordin interfaceorg.exoplatform.services.organization.GroupHandler- Throws:
IOException
-
getAllGroups
- Specified by:
getAllGroupsin interfaceorg.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:
findGroupsByKeywordin interfaceorg.exoplatform.services.organization.GroupHandler- Throws:
Exception
-
findAllGroupsByKeyword
public Collection<org.exoplatform.services.organization.Group> findAllGroupsByKeyword(String keyword, List<String> excludedGroupsParent) throws Exception - Specified by:
findAllGroupsByKeywordin interfaceorg.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:
findGroupsOfUserByKeywordin interfaceorg.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
Returns mock of PLIDM group representing "/" group. This method uses cache and delegates to obtainRootGroup().- Returns:
- Throws:
Exception
-
obtainRootGroup
Obtains PLIDM group representing "/" group. If such group doens't exist it creates one.- Returns:
- Throws:
Exception
-
getPLIDMGroupName
-
getGtnGroupName
-