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
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class 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) voidaddDecoratorPlugin(GroupDecoratorPlugin decoratorPlugin) 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) Set<org.exoplatform.services.organization.NestedMembership> getNestedMemberships(String groupId) 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.voidlinkGroups(org.exoplatform.services.organization.NestedMembership nestedMembership) 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) protected Set<org.exoplatform.services.organization.NestedMembership> toSet(Collection<org.exoplatform.services.organization.NestedMembership> collection) voidunlinkGroups(org.exoplatform.services.organization.NestedMembership nestedMembership) voidupdateGroup(org.exoplatform.services.organization.Group group, boolean broadcast) Methods inherited from class AbstractDAOImpl
getIdentitySession, handleExceptionMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.services.organization.GroupHandler
clearGroupCache
-
Field Details
-
GROUP_LABEL
- See Also:
-
GROUP_DESCRIPTION
- See Also:
-
NESTED_GROUPS
- See Also:
-
ENCLOSING_GROUPS
- 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
-
addChild
-
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
-
updateGroup
-
removeGroup
-
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
-
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
-
findAllGroupsByKeyword
-
findGroupsOfUserByKeyword
-
getChildrenGroups
-
getPLIDMGroup
-
convertGroup
-
getNestedMemberships
-
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
-
obtainRootGroup
-
getPLIDMGroupName
-
getGtnGroupName
-
linkGroups
-
unlinkGroups
-
addDecoratorPlugin
-
toSet
protected Set<org.exoplatform.services.organization.NestedMembership> toSet(Collection<org.exoplatform.services.organization.NestedMembership> collection)
-