use of edu.uiuc.ncsa.myproxy.oa4mp.oauth2.cm.util.attributes.AttributeRemoveRequest in project OA4MP by ncsa.
the class RequestFactory method createRequest.
public static AttributeRemoveRequest createRequest(AdminClient aSubj, TypeAttribute typeAttribute, ActionRemove actionRemove, OA2Client cTarget, JSON content) {
// JSON content = SATFactory.getContent(json);
if (!content.isArray()) {
throw new GeneralException("Content must be a list of attributes to get");
}
JSONArray array = (JSONArray) content;
String[] arrayString = (String[]) array.toArray(new String[array.size()]);
return new AttributeRemoveRequest(aSubj, cTarget, Arrays.asList(arrayString));
}
Aggregations