|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.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 GroupServiceGroupService.getGroupIdsForPrincipal(java.lang.String)
public List<String> getGroupIdsForPrincipalByNamespace(String principalId,
String namespaceCode)
GroupService
getGroupIdsForPrincipalByNamespace in interface GroupServiceGroupService.getGroupIdsForPrincipalByNamespace(java.lang.String, java.lang.String)public List<String> getDirectGroupIdsForPrincipal(String principalId)
GroupService
getDirectGroupIdsForPrincipal in interface GroupServiceGroupService.getDirectGroupIdsForPrincipal(java.lang.String)public List<GroupInfo> getGroupsForPrincipal(String principalId)
GroupServiceThis 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 GroupServiceGroupService.getGroupsForPrincipal(java.lang.String)
public List<GroupInfo> getGroupsForPrincipalByNamespace(String principalId,
String namespaceCode)
GroupServiceThis is the same as the GroupService.getGroupsForPrincipal(String) method except that
the results will be filtered by namespace after retrieval.
getGroupsForPrincipalByNamespace in interface GroupServiceGroupService.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)
GroupServiceThis method returns it's results as a List of group ids that match the given search criteria.
lookupGroupIds in interface GroupServiceGroupService.lookupGroupIds(java.util.Map)public List<? extends Group> lookupGroups(Map<String,String> searchCriteria)
GroupServiceThis method returns it's results as a List of GroupInfo objects that match the given search criteria.
lookupGroups in interface GroupServiceGroupService.lookupGroups(java.util.Map)public List<String> getDirectMemberPrincipalIds(String groupId)
GroupService
getDirectMemberPrincipalIds in interface GroupServiceGroupService.getDirectMemberPrincipalIds(java.lang.String)public List<String> getMemberPrincipalIds(String groupId)
GroupService
getMemberPrincipalIds in interface GroupServicegetMemberPrincipalIds in class GroupServiceBaseGroupService.getMemberPrincipalIds(java.lang.String)
public boolean isMemberOfGroup(String principalId,
String groupId)
GroupServiceThis will also return true if the principal is a member of a groups assigned to this group.
isMemberOfGroup in interface GroupServiceGroupService.isMemberOfGroup(java.lang.String,
java.lang.String)public List<String> getDirectParentGroupIds(String groupId)
GroupService
getDirectParentGroupIds in interface GroupServiceGroupService.getDirectParentGroupIds(java.lang.String)public List<String> getParentGroupIds(String groupId)
GroupServiceThis will recurse into groups above the given group and build a complete list of all groups included above this group.
getParentGroupIds in interface GroupServiceGroupService.getParentGroupIds(java.lang.String)public List<String> getDirectMemberGroupIds(String groupId)
GroupService
getDirectMemberGroupIds in interface GroupServiceGroupService.getDirectMemberGroupIds(java.lang.String)public boolean isGroupActive(String groupId)
GroupService
isGroupActive in interface GroupServiceGroupService.isGroupActive(java.lang.String)public List<String> getMemberGroupIds(String groupId)
GroupService
getMemberGroupIds in interface GroupServiceGroupService.getMemberGroupIds(java.lang.String)
public boolean isDirectMemberOfGroup(String principalId,
String groupId)
GroupServiceThis will not recurse into contained groups.
isDirectMemberOfGroup in interface GroupServiceGroupService.isDirectMemberOfGroup(java.lang.String, java.lang.String)public AttributeSet getGroupAttributes(String groupId)
GroupService
getGroupAttributes in interface GroupServiceGroupService.getGroupAttributes(java.lang.String)public Collection<GroupMembershipInfo> getGroupMembers(List<String> groupIds)
GroupServiceThe 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 GroupServicepublic Collection<GroupMembershipInfo> getGroupMembersOfGroup(String groupId)
GroupServiceOnly GroupMembershipInfo for direct group members is returned.
getGroupMembersOfGroup in interface GroupServiceprotected 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 | |||||||||