Class GroupServiceImpl

java.lang.Object
org.kuali.rice.kim.impl.group.GroupServiceBase
org.kuali.rice.kim.impl.group.GroupServiceImpl
All Implemented Interfaces:
GroupService

public class GroupServiceImpl extends GroupServiceBase implements GroupService
  • Constructor Details

    • GroupServiceImpl

      public GroupServiceImpl()
  • Method Details

    • getGroup

      public Group getGroup(String groupId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Specified by:
      getGroup in interface GroupService
      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:
      getGroupsByPrincipalId in interface GroupService
      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:
      getGroupsByPrincipalIdAndNamespaceCode in interface GroupService
      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:
      findGroupIds in interface GroupService
      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:
      isDirectMemberOfGroup in interface GroupService
      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:
      getGroupIdsByPrincipalId in interface GroupService
      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:
      getGroupIdsByPrincipalIdAndNamespaceCode in interface GroupService
      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:
      getDirectGroupIdsByPrincipalId in interface GroupService
      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:
      getMemberPrincipalIds in interface GroupService
      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:
      getDirectMemberPrincipalIds in interface GroupService
      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:
      getMemberGroupIds in interface GroupService
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException
    • getMemberGroupBos

      protected List<GroupBo> getMemberGroupBos(String groupId)
    • getMemberGroupsInternal

      protected void getMemberGroupsInternal(GroupBo group, Set<GroupBo> groups)
    • isGroupMemberOfGroup

      public boolean isGroupMemberOfGroup(String groupMemberId, String groupId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Specified by:
      isGroupMemberOfGroup in interface GroupService
      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:
      isGroupMemberOfGroupWithDate in interface GroupService
      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:
      isMemberOfGroup in interface GroupService
      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:
      isMemberOfGroupWithDate in interface GroupService
      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:
      getDirectMemberGroupIds in interface GroupService
      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:
      getDirectMemberGroupIdsWithDate in interface GroupService
      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:
      getParentGroupIds in interface GroupService
      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:
      getDirectParentGroupIds in interface GroupService
      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:
      getDirectParentGroupIdsWithDate in interface GroupService
      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:
      getAttributes in interface GroupService
      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:
      getMembers in interface GroupService
      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:
      getMembersWithDate in interface GroupService
      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:
      getGroups in interface GroupService
      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:
      getGroupByNamespaceCodeAndName in interface GroupService
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException
    • findGroups

      public GroupQueryResults findGroups(QueryByCriteria queryByCriteria) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Specified by:
      findGroups in interface GroupService
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException
    • findGroupMembers

      public GroupMemberQueryResults findGroupMembers(QueryByCriteria queryByCriteria) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Specified by:
      findGroupMembers in interface GroupService
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException
    • isMemberOfGroupInternal

      protected boolean isMemberOfGroupInternal(String memberId, String groupId, Set<String> visitedGroupIds, org.kuali.rice.core.api.membership.MemberType memberType, org.joda.time.DateTime asOfDate)
    • getParentGroupsInternal

      protected void getParentGroupsInternal(String groupId, Set<Group> groups)
    • getDirectParentGroups

      protected List<Group> getDirectParentGroups(String groupId, org.joda.time.DateTime asOfDate)
    • getMembersOfGroup

      public List<GroupMember> getMembersOfGroup(String groupId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Specified by:
      getMembersOfGroup in interface GroupService
      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:
      getMembersOfGroupWithDate in interface GroupService
      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

      protected GroupBo getGroupBo(String groupId)
    • getGroupMemberBo

      protected GroupMemberBo getGroupMemberBo(String id)
    • getParentGroups

      protected List<Group> getParentGroups(String groupId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException
    • getMemberPrincipalIdsInternal

      protected List<String> getMemberPrincipalIdsInternal(String groupId, Set<String> visitedGroupIds)
    • getDirectGroupsForPrincipal

      protected Collection<Group> getDirectGroupsForPrincipal(String principalId)
    • 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:
      addGroupToGroup in interface GroupService
      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:
      addPrincipalToGroup in interface GroupService
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException
    • createGroup

      public Group createGroup(Group group) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Specified by:
      createGroup in interface GroupService
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException
    • updateGroup

      public Group updateGroup(Group group) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Specified by:
      updateGroup in interface GroupService
      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:
      updateGroup in interface GroupService
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException
    • createGroupMember

      public GroupMember createGroupMember(GroupMember groupMember) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Specified by:
      createGroupMember in interface GroupService
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException
    • updateGroupMember

      public GroupMember updateGroupMember(GroupMember groupMember) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Specified by:
      updateGroupMember in interface GroupService
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException
    • removeAllMembers

      public void removeAllMembers(String groupId) throws org.kuali.rice.core.api.exception.RiceIllegalArgumentException
      Specified by:
      removeAllMembers in interface GroupService
      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:
      removeGroupFromGroup in interface GroupService
      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:
      removePrincipalFromGroup in interface GroupService
      Throws:
      org.kuali.rice.core.api.exception.RiceIllegalArgumentException
    • saveGroup

      protected GroupBo saveGroup(GroupBo group)
    • setDataObjectService

      public void setDataObjectService(org.kuali.rice.krad.data.DataObjectService dataObjectService)
    • getCurrentAndFutureMembers

      public List<GroupMember> getCurrentAndFutureMembers(String groupId)
      Returns the list of group members who are currently active and futureActive .
      Specified by:
      getCurrentAndFutureMembers in interface GroupService
      Parameters:
      groupId -
      Returns: