|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.kuali.rice.kim.service.impl.GroupServiceBase org.kuali.rice.kim.service.impl.GroupServiceImpl
public class GroupServiceImpl
Field Summary | |
---|---|
private KimGroupDao |
kimGroupDao
|
Constructor Summary | |
---|---|
GroupServiceImpl()
|
Method Summary | |
---|---|
List<String> |
getDirectGroupIdsForPrincipal(String principalId)
Get the groupIds in which the principal has direct membership only. |
protected Collection<GroupInfo> |
getDirectGroupsForPrincipal(String principalId)
|
protected Collection<GroupInfo> |
getDirectGroupsForPrincipal(String principalId,
String namespaceCode)
|
List<String> |
getDirectMemberGroupIds(String groupId)
Get all the groups which are direct members of the given group. |
List<String> |
getDirectMemberPrincipalIds(String groupId)
Get all the principals directly assigned to the given group. |
List<String> |
getDirectParentGroupIds(String groupId)
Get the groupIds which that are directly above this group. |
AttributeSet |
getGroupAttributes(String groupId)
Get all the attributes of the given group. |
List<String> |
getGroupIdsForPrincipal(String principalId)
Get all the groups for the given principal. |
List<String> |
getGroupIdsForPrincipalByNamespace(String principalId,
String namespaceCode)
Get all the groups for the given principal in the given namespace. |
Collection<GroupMembershipInfo> |
getGroupMembers(List<String> groupIds)
Get the membership info for the members of all the groups with the given group ids. |
Collection<GroupMembershipInfo> |
getGroupMembersOfGroup(String groupId)
Get the membership info for the members of the group with the given id. |
List<GroupInfo> |
getGroupsForPrincipal(String principalId)
Get all the groups for a given principal. |
List<GroupInfo> |
getGroupsForPrincipalByNamespace(String principalId,
String namespaceCode)
Get all the groups within a namespace for a given principal. |
KimGroupDao |
getKimGroupDao()
|
List<String> |
getMemberGroupIds(String groupId)
Get all the groups contained by the given group. |
protected List<GroupImpl> |
getMemberGroups(String groupId)
|
protected void |
getMemberGroupsInternal(GroupImpl group,
Set<GroupImpl> groups)
|
List<String> |
getMemberPrincipalIds(String groupId)
Get all the principals of the given group. |
List<String> |
getParentGroupIds(String groupId)
Get the groups which are parents of the given group. |
boolean |
isDirectMemberOfGroup(String principalId,
String groupId)
Check whether the give principal is a member of the group. |
boolean |
isGroupActive(String groupId)
Checks if the group with the given id is active. |
boolean |
isMemberOfGroup(String principalId,
String groupId)
Check whether the give principal is a member of the group. |
List<String> |
lookupGroupIds(Map<String,String> searchCriteria)
Query for groups based on the given search criteria which is a Map of group field names to values. |
List<? extends Group> |
lookupGroups(Map<String,String> searchCriteria)
Query for groups based on the given search criteria which is a Map of group field names to values. |
void |
setKimGroupDao(KimGroupDao kimGroupDao)
|
protected GroupMembershipInfo |
toGroupMemberInfo(GroupMemberImpl kimGroupMember)
|
Methods inherited from class org.kuali.rice.kim.service.impl.GroupServiceBase |
---|
getBusinessObjectService, getDirectParentGroups, getGroupByName, getGroupImpl, getGroupInfo, getGroupInfoByName, getGroupInfos, getIdentityManagementNotificationService, getLookupService, getMemberPrincipalIdsInternal, getParentGroups, getParentGroupsInternal, isGroupMemberOfGroup, isGroupMemberOfGroupInternal, isMemberOfGroupInternal, toGroupInfo, toGroupInfo |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.kuali.rice.kim.service.GroupService |
---|
getGroupInfo, getGroupInfoByName, getGroupInfos, isGroupMemberOfGroup |
Field Detail |
---|
private KimGroupDao kimGroupDao
Constructor Detail |
---|
public GroupServiceImpl()
Method Detail |
---|
public List<String> getGroupIdsForPrincipal(String principalId)
GroupService
getGroupIdsForPrincipal
in interface GroupService
GroupService.getGroupIdsForPrincipal(java.lang.String)
public List<String> getGroupIdsForPrincipalByNamespace(String principalId, String namespaceCode)
GroupService
getGroupIdsForPrincipalByNamespace
in interface GroupService
GroupService.getGroupIdsForPrincipalByNamespace(java.lang.String, java.lang.String)
public List<String> getDirectGroupIdsForPrincipal(String principalId)
GroupService
getDirectGroupIdsForPrincipal
in interface GroupService
GroupService.getDirectGroupIdsForPrincipal(java.lang.String)
public List<GroupInfo> getGroupsForPrincipal(String principalId)
GroupService
This will include all groups directly assigned as well as those inferred by the fact that they are members of higher level groups.
getGroupsForPrincipal
in interface GroupService
GroupService.getGroupsForPrincipal(java.lang.String)
public List<GroupInfo> getGroupsForPrincipalByNamespace(String principalId, String namespaceCode)
GroupService
This is the same as the GroupService.getGroupsForPrincipal(String)
method except that
the results will be filtered by namespace after retrieval.
getGroupsForPrincipalByNamespace
in interface GroupService
GroupService.getGroupsForPrincipalByNamespace(java.lang.String, java.lang.String)
protected Collection<GroupInfo> getDirectGroupsForPrincipal(String principalId)
protected Collection<GroupInfo> getDirectGroupsForPrincipal(String principalId, String namespaceCode)
protected List<GroupImpl> getMemberGroups(String groupId)
org.kuali.rice.kim.service.GroupService#getMemberGroups(java.lang.String)
protected void getMemberGroupsInternal(GroupImpl group, Set<GroupImpl> groups)
public List<String> lookupGroupIds(Map<String,String> searchCriteria)
GroupService
This method returns it's results as a List of group ids that match the given search criteria.
lookupGroupIds
in interface GroupService
GroupService.lookupGroupIds(java.util.Map)
public List<? extends Group> lookupGroups(Map<String,String> searchCriteria)
GroupService
This method returns it's results as a List of GroupInfo objects that match the given search criteria.
lookupGroups
in interface GroupService
GroupService.lookupGroups(java.util.Map)
public List<String> getDirectMemberPrincipalIds(String groupId)
GroupService
getDirectMemberPrincipalIds
in interface GroupService
GroupService.getDirectMemberPrincipalIds(java.lang.String)
public List<String> getMemberPrincipalIds(String groupId)
GroupService
getMemberPrincipalIds
in interface GroupService
getMemberPrincipalIds
in class GroupServiceBase
GroupService.getMemberPrincipalIds(java.lang.String)
public boolean isMemberOfGroup(String principalId, String groupId)
GroupService
This will also return true if the principal is a member of a groups assigned to this group.
isMemberOfGroup
in interface GroupService
GroupService.isMemberOfGroup(java.lang.String,
java.lang.String)
public List<String> getDirectParentGroupIds(String groupId)
GroupService
getDirectParentGroupIds
in interface GroupService
GroupService.getDirectParentGroupIds(java.lang.String)
public List<String> getParentGroupIds(String groupId)
GroupService
This will recurse into groups above the given group and build a complete list of all groups included above this group.
getParentGroupIds
in interface GroupService
GroupService.getParentGroupIds(java.lang.String)
public List<String> getDirectMemberGroupIds(String groupId)
GroupService
getDirectMemberGroupIds
in interface GroupService
GroupService.getDirectMemberGroupIds(java.lang.String)
public boolean isGroupActive(String groupId)
GroupService
isGroupActive
in interface GroupService
GroupService.isGroupActive(java.lang.String)
public List<String> getMemberGroupIds(String groupId)
GroupService
getMemberGroupIds
in interface GroupService
GroupService.getMemberGroupIds(java.lang.String)
public boolean isDirectMemberOfGroup(String principalId, String groupId)
GroupService
This will not recurse into contained groups.
isDirectMemberOfGroup
in interface GroupService
GroupService.isDirectMemberOfGroup(java.lang.String, java.lang.String)
public AttributeSet getGroupAttributes(String groupId)
GroupService
getGroupAttributes
in interface GroupService
GroupService.getGroupAttributes(java.lang.String)
public Collection<GroupMembershipInfo> getGroupMembers(List<String> groupIds)
GroupService
The collection of GroupMembershipInfo will contain members for all the groups in no defined order. The values returned may or may not be grouped by group id.
getGroupMembers
in interface GroupService
public Collection<GroupMembershipInfo> getGroupMembersOfGroup(String groupId)
GroupService
Only GroupMembershipInfo for direct group members is returned.
getGroupMembersOfGroup
in interface GroupService
protected GroupMembershipInfo toGroupMemberInfo(GroupMemberImpl kimGroupMember)
public KimGroupDao getKimGroupDao()
public void setKimGroupDao(KimGroupDao kimGroupDao)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |