Package org.kuali.rice.kim.impl.group
Class GroupServiceImpl
java.lang.Object
org.kuali.rice.kim.impl.group.GroupServiceBase
org.kuali.rice.kim.impl.group.GroupServiceImpl
- All Implemented Interfaces:
GroupService
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddGroupToGroup(String childId, String parentId) booleanaddPrincipalToGroup(String principalId, String groupId) createGroup(Group group) createGroupMember(GroupMember groupMember) findGroupIds(QueryByCriteria queryByCriteria) findGroupMembers(QueryByCriteria queryByCriteria) findGroups(QueryByCriteria queryByCriteria) getAttributes(String groupId) getCurrentAndFutureMembers(String groupId) Returns the list of group members who are currently active and futureActive .getDirectGroupIdsByPrincipalId(String principalId) protected Collection<Group> getDirectGroupsForPrincipal(String principalId) protected Collection<Group> getDirectGroupsForPrincipal(String principalId, String namespaceCode, org.joda.time.DateTime asOfDate) getDirectMemberGroupIds(String groupId) getDirectMemberGroupIdsWithDate(String groupId) getDirectMemberPrincipalIds(String groupId) getDirectParentGroupIds(String groupId) getDirectParentGroupIdsWithDate(String groupId, org.joda.time.DateTime asOfDate) getDirectParentGroups(String groupId, org.joda.time.DateTime asOfDate) protected GroupBogetGroupBo(String groupId) getGroupByNamespaceCodeAndName(String namespaceCode, String groupName) getGroupIdsByPrincipalId(String principalId) getGroupIdsByPrincipalIdAndNamespaceCode(String principalId, String namespaceCode) getGroupIdsByPrincipalIdAndNamespaceCodeInternal(String principalId, String namespaceCode) protected GroupMemberBogetGroups(Collection<String> groupIds) getGroupsByPrincipalId(String principalId) getGroupsByPrincipalIdAndNamespaceCode(String principalId, String namespaceCode) getGroupsByPrincipalIdAndNamespaceCodeInternal(String principalId, String namespaceCode) getMemberGroupBos(String groupId) getMemberGroupIds(String groupId) protected voidgetMemberGroupsInternal(GroupBo group, Set<GroupBo> groups) getMemberIdsByType(Collection<GroupMember> members, org.kuali.rice.core.api.membership.MemberType memberType) getMemberPrincipalIds(String groupId) getMemberPrincipalIdsInternal(String groupId, Set<String> visitedGroupIds) getMembers(List<String> groupIds) getMembersOfGroup(String groupId) getMembersOfGroupWithDate(String groupId, org.joda.time.DateTime asOfDate) getMembersWithDate(List<String> groupIds, org.joda.time.DateTime asOfDate) getParentGroupIds(String groupId) getParentGroups(String groupId) protected voidgetParentGroupsInternal(String groupId, Set<Group> groups) booleanisDirectMemberOfGroup(String principalId, String groupId) booleanisGroupMemberOfGroup(String groupMemberId, String groupId) booleanisGroupMemberOfGroupWithDate(String groupMemberId, String groupId, org.joda.time.DateTime asOfDate) booleanisMemberOfGroup(String principalId, String groupId) protected booleanisMemberOfGroupInternal(String memberId, String groupId, Set<String> visitedGroupIds, org.kuali.rice.core.api.membership.MemberType memberType, org.joda.time.DateTime asOfDate) booleanisMemberOfGroupWithDate(String principalId, String groupId, org.joda.time.DateTime asOfDate) voidremoveAllMembers(String groupId) booleanremoveGroupFromGroup(String childId, String parentId) booleanremovePrincipalFromGroup(String principalId, String groupId) protected GroupBovoidsetDataObjectService(org.kuali.rice.krad.data.DataObjectService dataObjectService) updateGroup(String groupId, Group group) updateGroup(Group group) updateGroupMember(GroupMember groupMember)
-
Constructor Details
-
GroupServiceImpl
public GroupServiceImpl()
-
-
Method Details
-
getGroup
public Group getGroup(String groupId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
getGroupin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getGroupsByPrincipalId
public List<Group> getGroupsByPrincipalId(String principalId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
getGroupsByPrincipalIdin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getGroupsByPrincipalIdAndNamespaceCode
public List<Group> getGroupsByPrincipalIdAndNamespaceCode(String principalId, String namespaceCode) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
getGroupsByPrincipalIdAndNamespaceCodein interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getGroupsByPrincipalIdAndNamespaceCodeInternal
protected List<Group> getGroupsByPrincipalIdAndNamespaceCodeInternal(String principalId, String namespaceCode) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
findGroupIds
public List<String> findGroupIds(QueryByCriteria queryByCriteria) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
findGroupIdsin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
isDirectMemberOfGroup
public boolean isDirectMemberOfGroup(String principalId, String groupId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
isDirectMemberOfGroupin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getGroupIdsByPrincipalId
public List<String> getGroupIdsByPrincipalId(String principalId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
getGroupIdsByPrincipalIdin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getGroupIdsByPrincipalIdAndNamespaceCode
public List<String> getGroupIdsByPrincipalIdAndNamespaceCode(String principalId, String namespaceCode) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
getGroupIdsByPrincipalIdAndNamespaceCodein interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getGroupIdsByPrincipalIdAndNamespaceCodeInternal
protected List<String> getGroupIdsByPrincipalIdAndNamespaceCodeInternal(String principalId, String namespaceCode) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getDirectGroupIdsByPrincipalId
public List<String> getDirectGroupIdsByPrincipalId(String principalId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
getDirectGroupIdsByPrincipalIdin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getMemberPrincipalIds
public List<String> getMemberPrincipalIds(String groupId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
getMemberPrincipalIdsin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getDirectMemberPrincipalIds
public List<String> getDirectMemberPrincipalIds(String groupId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
getDirectMemberPrincipalIdsin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getMemberGroupIds
public List<String> getMemberGroupIds(String groupId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
getMemberGroupIdsin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getMemberGroupBos
-
getMemberGroupsInternal
-
isGroupMemberOfGroup
public boolean isGroupMemberOfGroup(String groupMemberId, String groupId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
isGroupMemberOfGroupin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
isGroupMemberOfGroupWithDate
public boolean isGroupMemberOfGroupWithDate(String groupMemberId, String groupId, org.joda.time.DateTime asOfDate) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
isGroupMemberOfGroupWithDatein interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
isMemberOfGroup
public boolean isMemberOfGroup(String principalId, String groupId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
isMemberOfGroupin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
isMemberOfGroupWithDate
public boolean isMemberOfGroupWithDate(String principalId, String groupId, org.joda.time.DateTime asOfDate) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
isMemberOfGroupWithDatein interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getDirectMemberGroupIds
public List<String> getDirectMemberGroupIds(String groupId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
getDirectMemberGroupIdsin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getDirectMemberGroupIdsWithDate
public List<String> getDirectMemberGroupIdsWithDate(String groupId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
getDirectMemberGroupIdsWithDatein interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getParentGroupIds
public List<String> getParentGroupIds(String groupId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
getParentGroupIdsin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getDirectParentGroupIds
public List<String> getDirectParentGroupIds(String groupId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
getDirectParentGroupIdsin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getDirectParentGroupIdsWithDate
public List<String> getDirectParentGroupIdsWithDate(String groupId, org.joda.time.DateTime asOfDate) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
getDirectParentGroupIdsWithDatein interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getAttributes
public Map<String,String> getAttributes(String groupId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
getAttributesin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getMembers
public List<GroupMember> getMembers(List<String> groupIds) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
getMembersin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getMembersWithDate
public List<GroupMember> getMembersWithDate(List<String> groupIds, org.joda.time.DateTime asOfDate) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
getMembersWithDatein interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getGroups
public List<Group> getGroups(Collection<String> groupIds) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
getGroupsin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getGroupByNamespaceCodeAndName
public Group getGroupByNamespaceCodeAndName(String namespaceCode, String groupName) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
getGroupByNamespaceCodeAndNamein interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
findGroups
public GroupQueryResults findGroups(QueryByCriteria queryByCriteria) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
findGroupsin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
findGroupMembers
public GroupMemberQueryResults findGroupMembers(QueryByCriteria queryByCriteria) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
findGroupMembersin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
isMemberOfGroupInternal
-
getParentGroupsInternal
-
getDirectParentGroups
-
getMembersOfGroup
public List<GroupMember> getMembersOfGroup(String groupId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
getMembersOfGroupin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getMembersOfGroupWithDate
public List<GroupMember> getMembersOfGroupWithDate(String groupId, org.joda.time.DateTime asOfDate) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
getMembersOfGroupWithDatein interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getMemberIdsByType
protected List<String> getMemberIdsByType(Collection<GroupMember> members, org.kuali.rice.core.api.membership.MemberType memberType) -
getGroupBo
-
getGroupMemberBo
-
getParentGroups
protected List<Group> getParentGroups(String groupId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
getMemberPrincipalIdsInternal
-
getDirectGroupsForPrincipal
-
getDirectGroupsForPrincipal
protected Collection<Group> getDirectGroupsForPrincipal(String principalId, String namespaceCode, org.joda.time.DateTime asOfDate) -
addGroupToGroup
public boolean addGroupToGroup(String childId, String parentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
addGroupToGroupin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
addPrincipalToGroup
public boolean addPrincipalToGroup(String principalId, String groupId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
addPrincipalToGroupin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
createGroup
public Group createGroup(Group group) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
createGroupin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
updateGroup
public Group updateGroup(Group group) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
updateGroupin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
updateGroup
public Group updateGroup(String groupId, Group group) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
updateGroupin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
createGroupMember
public GroupMember createGroupMember(GroupMember groupMember) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
createGroupMemberin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
updateGroupMember
public GroupMember updateGroupMember(GroupMember groupMember) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
updateGroupMemberin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
removeAllMembers
public void removeAllMembers(String groupId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
removeAllMembersin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
removeGroupFromGroup
public boolean removeGroupFromGroup(String childId, String parentId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
removeGroupFromGroupin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
removePrincipalFromGroup
public boolean removePrincipalFromGroup(String principalId, String groupId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException - Specified by:
removePrincipalFromGroupin interfaceGroupService- Throws:
org.kuali.rice.core.api.exception.RiceIllegalArgumentException
-
saveGroup
-
setDataObjectService
public void setDataObjectService(org.kuali.rice.krad.data.DataObjectService dataObjectService) -
getCurrentAndFutureMembers
Returns the list of group members who are currently active and futureActive .- Specified by:
getCurrentAndFutureMembersin interfaceGroupService- Parameters:
groupId-- Returns:
-