Class RequestFactory
- java.lang.Object
-
- org.oa4mp.server.loader.oauth2.cm.util.RequestFactory
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RequestFactory.RequestObject
-
Field Summary
-
Fields inherited from interface edu.uiuc.ncsa.myproxy.oa4mp.server.admin.things.SAT
ACTION_ADD, ACTION_ADD_VALUE, ACTION_APPROVE, ACTION_APPROVE_VALUE, ACTION_CREATE, ACTION_CREATE_VALUE, ACTION_EXECUTE, ACTION_EXECUTE_VALUE, ACTION_GET, ACTION_GET_VALUE, ACTION_LIST, ACTION_LIST_VALUE, ACTION_REMOVE, ACTION_REMOVE_VALUE, ACTION_SET, ACTION_SET_VALUE, ACTION_UNAPPROVE, ACTION_UNAPPROVE_VALUE, ACTION_UNKNOWN_VALUE, KEYS_ACTION, KEYS_ACTION_VALUE, KEYS_API, KEYS_CONTENT, KEYS_CONTENT_VALUE, KEYS_ID, KEYS_ID_VALUE, KEYS_METHOD, KEYS_SUBJECT, KEYS_SUBJECT_VALUE, KEYS_TARGET, KEYS_TARGET_VALUE, KEYS_TYPE, SUBJECT_ADMIN, SUBJECT_ADMIN_VALUE, SUBJECT_CLIENT, SUBJECT_CLIENT_VALUE, SUBJECT_UNKNOWN_VALUE, TARGET_ADMIN, TARGET_ADMIN_VALUE, TARGET_CLIENT, TARGET_CLIENT_VALUE, TARGET_NO_VALUE, TYPE, TYPE_ADMIN, TYPE_ADMIN_VALUE, TYPE_ATTRIBUTE, TYPE_ATTRIBUTE_VALUE, TYPE_CLIENT, TYPE_CLIENT_VALUE, TYPE_PERMISSION, TYPE_PERMISSION_VALUE, TYPE_UNKNOWN_VALUE
-
-
Constructor Summary
Constructors Constructor Description RequestFactory()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Parameter[]
convertObjectsToParameters(Object[] objArray)
static AbstractDDRequest
convertToRequest(net.sf.json.JSONObject json)
static AbstractDDRequest
createRequest(RequestFactory.RequestObject ro)
static ACGetRequest
createRequest(AdminClient adminClient, TypeAdmin typeClient, ActionGet actionGet, OA2Client client, net.sf.json.JSON json)
static AttributeGetRequest
createRequest(AdminClient aSubj, TypeAttribute typeAttribute, ActionGet actionGet, OA2Client cTarget, net.sf.json.JSON content)
static AttributeRemoveRequest
createRequest(AdminClient aSubj, TypeAttribute typeAttribute, ActionRemove actionRemove, OA2Client cTarget, net.sf.json.JSON content)
static AttributeSetClientRequest
createRequest(AdminClient aSubj, TypeAttribute typeAttribute, ActionSet actionSet, OA2Client cTarget, net.sf.json.JSON content)
static ApproveRequest
createRequest(AdminClient adminClient, TypeClient typeClient, ActionApprove actionApprove, OA2Client client, net.sf.json.JSON json)
static CreateRequest
createRequest(AdminClient adminClient, TypeClient typeClient, ActionCreate actionCreate, OA2Client client, net.sf.json.JSON json)
static GetRequest
createRequest(AdminClient adminClient, TypeClient typeClient, ActionGet actionGet, OA2Client client, net.sf.json.JSON json)
static RemoveRequest
createRequest(AdminClient adminClient, TypeClient typeClient, ActionRemove actionRemove, OA2Client client, net.sf.json.JSON json)
static UnapproveRequest
createRequest(AdminClient adminClient, TypeClient typeClient, ActionUnapprove actionUnapprove, OA2Client client, net.sf.json.JSON json)
static AddClientRequest
createRequest(AdminClient adminClient, TypePermission typeP, ActionAdd acreate, OA2Client client, net.sf.json.JSON json)
static PermissionRequest
createRequest(AdminClient adminClient, TypePermission typeP, ActionList aList, OA2Client client, net.sf.json.JSON json)
static RemoveClientRequest
createRequest(AdminClient adminClient, TypePermission typeP, ActionRemove actionRemove, OA2Client client, net.sf.json.JSON json)
static AbstractDDRequest
createRequest(BaseClient b, Type t, Action a, BaseClient c, net.sf.json.JSON x)
-
-
-
Method Detail
-
convertToRequest
public static AbstractDDRequest convertToRequest(net.sf.json.JSONObject json)
-
createRequest
public static AbstractDDRequest createRequest(RequestFactory.RequestObject ro)
-
createRequest
public static AbstractDDRequest createRequest(BaseClient b, Type t, Action a, BaseClient c, net.sf.json.JSON x)
-
createRequest
public static AttributeGetRequest createRequest(AdminClient aSubj, TypeAttribute typeAttribute, ActionGet actionGet, OA2Client cTarget, net.sf.json.JSON content)
-
createRequest
public static AttributeSetClientRequest createRequest(AdminClient aSubj, TypeAttribute typeAttribute, ActionSet actionSet, OA2Client cTarget, net.sf.json.JSON content)
-
createRequest
public static AttributeRemoveRequest createRequest(AdminClient aSubj, TypeAttribute typeAttribute, ActionRemove actionRemove, OA2Client cTarget, net.sf.json.JSON content)
-
createRequest
public static AddClientRequest createRequest(AdminClient adminClient, TypePermission typeP, ActionAdd acreate, OA2Client client, net.sf.json.JSON json)
-
createRequest
public static RemoveClientRequest createRequest(AdminClient adminClient, TypePermission typeP, ActionRemove actionRemove, OA2Client client, net.sf.json.JSON json)
-
createRequest
public static PermissionRequest createRequest(AdminClient adminClient, TypePermission typeP, ActionList aList, OA2Client client, net.sf.json.JSON json)
-
createRequest
public static ApproveRequest createRequest(AdminClient adminClient, TypeClient typeClient, ActionApprove actionApprove, OA2Client client, net.sf.json.JSON json)
-
createRequest
public static UnapproveRequest createRequest(AdminClient adminClient, TypeClient typeClient, ActionUnapprove actionUnapprove, OA2Client client, net.sf.json.JSON json)
-
createRequest
public static CreateRequest createRequest(AdminClient adminClient, TypeClient typeClient, ActionCreate actionCreate, OA2Client client, net.sf.json.JSON json)
-
createRequest
public static RemoveRequest createRequest(AdminClient adminClient, TypeClient typeClient, ActionRemove actionRemove, OA2Client client, net.sf.json.JSON json)
-
createRequest
public static GetRequest createRequest(AdminClient adminClient, TypeClient typeClient, ActionGet actionGet, OA2Client client, net.sf.json.JSON json)
-
createRequest
public static ACGetRequest createRequest(AdminClient adminClient, TypeAdmin typeClient, ActionGet actionGet, OA2Client client, net.sf.json.JSON json)
-
-