Search in sources :

Example 16 with WsResultMeta

use of edu.internet2.middleware.grouperClient.ws.beans.WsResultMeta in project uhgroupings by uhawaii-system-its-ti-iam.

the class GrouperFactoryServiceImplLocal method makeWsDeleteMemberResults.

public WsDeleteMemberResults makeWsDeleteMemberResults(String group, WsSubjectLookup lookup, List<String> membersToDelete) {
    WsDeleteMemberResults wsDeleteMemberResults = new WsDeleteMemberResults();
    WsResultMeta wsResultMeta = new WsResultMeta();
    wsResultMeta.setResultCode(SUCCESS);
    for (String username : membersToDelete) {
        WsResultMeta wsResultMetaData = makeWsDeleteMemberResults(group, lookup, username).getResultMetadata();
        if (wsResultMetaData.getResultCode().equals(FAILURE)) {
            wsResultMeta = wsResultMetaData;
        }
    }
    wsDeleteMemberResults.setResultMetadata(wsResultMeta);
    return wsDeleteMemberResults;
}
Also used : WsResultMeta(edu.internet2.middleware.grouperClient.ws.beans.WsResultMeta) WsDeleteMemberResults(edu.internet2.middleware.grouperClient.ws.beans.WsDeleteMemberResults)

Aggregations

WsResultMeta (edu.internet2.middleware.grouperClient.ws.beans.WsResultMeta)16 Group (edu.hawaii.its.api.type.Group)7 WsGroup (edu.internet2.middleware.grouperClient.ws.beans.WsGroup)7 Person (edu.hawaii.its.api.type.Person)6 Grouping (edu.hawaii.its.api.type.Grouping)5 Membership (edu.hawaii.its.api.type.Membership)5 WsMembership (edu.internet2.middleware.grouperClient.ws.beans.WsMembership)5 WsAssignAttributesResults (edu.internet2.middleware.grouperClient.ws.beans.WsAssignAttributesResults)4 WsAddMemberResults (edu.internet2.middleware.grouperClient.ws.beans.WsAddMemberResults)3 WsDeleteMemberResults (edu.internet2.middleware.grouperClient.ws.beans.WsDeleteMemberResults)2 GroupingsServiceResult (edu.hawaii.its.api.type.GroupingsServiceResult)1 WsAssignGrouperPrivilegesLiteResult (edu.internet2.middleware.grouperClient.ws.beans.WsAssignGrouperPrivilegesLiteResult)1 WsAttributeAssign (edu.internet2.middleware.grouperClient.ws.beans.WsAttributeAssign)1 WsGetAttributeAssignmentsResults (edu.internet2.middleware.grouperClient.ws.beans.WsGetAttributeAssignmentsResults)1 WsGetGrouperPrivilegesLiteResult (edu.internet2.middleware.grouperClient.ws.beans.WsGetGrouperPrivilegesLiteResult)1 WsGetMembershipsResults (edu.internet2.middleware.grouperClient.ws.beans.WsGetMembershipsResults)1 WsGroupSaveResults (edu.internet2.middleware.grouperClient.ws.beans.WsGroupSaveResults)1 WsHasMemberResult (edu.internet2.middleware.grouperClient.ws.beans.WsHasMemberResult)1 WsHasMemberResults (edu.internet2.middleware.grouperClient.ws.beans.WsHasMemberResults)1 WsStemSaveResult (edu.internet2.middleware.grouperClient.ws.beans.WsStemSaveResult)1