Class VootLogic
java.lang.Object
edu.internet2.middleware.grouperVoot.VootLogic
Business logic to implement the VOOT protocol.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic VootGetGroupsResponse
Get the groups that a person is in.static VootGetGroupsResponse
Get the groups that a person is in, searching by their name.static VootGetMembersResponse
getMembers
(Subject subject, VootGroup vootGroup, String sortBy, int start, int count) Get the members for a group based on the VOOT group.
-
Constructor Details
-
VootLogic
public VootLogic()
-
-
Method Details
-
getMembers
public static VootGetMembersResponse getMembers(Subject subject, VootGroup vootGroup, String sortBy, int start, int count) Get the members for a group based on the VOOT group.- Parameters:
subject
- the subject querying the VOOT interface.vootGroup
- the group to be looked to find members.sortBy
- the field name to be used for sorting or null of no sorting.start
- the first element in the result set (0 means start from beginning).count
- the number of elements in the result set (-1 or 0 means find all).- Returns:
- the response to be sent back to user in JSON format.
-
getGroups
Get the groups that a person is in.- Parameters:
subject
- the subject representing the person used for search.sortBy
- the field name to be used for sorting or null of no sorting.start
- the first element in the result set (0 means start from beginning).count
- the number of elements in the result set (-1 or 0 means find all).- Returns:
- the groups the subject passed as a parameter is part of.
-
getGroups
Get the groups that a person is in, searching by their name.- Parameters:
search
- the search term to be searched in group name.sortBy
- the field name to be used for sorting or null of no sorting.start
- the first element in the result set (0 means start from beginning).count
- the number of elements in the result set (-1 or 0 means find all).- Returns:
- the groups found satisfying search criteria.
-