Class SATFactory
- java.lang.Object
-
- org.oa4mp.server.api.things.admin.SATFactory
-
-
Field Summary
Fields Modifier and Type Field Description static String
CLIENT_SECRET_KEY
This is the key used in the API for the client secret.-
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 SATFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ClientConverter<? extends Client>
getClientConverter()
static net.sf.json.JSON
getContent(net.sf.json.JSONObject json)
static Action
getMethod(net.sf.json.JSONObject json)
static int
getMethodValue(net.sf.json.JSONObject json)
static BaseClient
getSubject(net.sf.json.JSONObject json)
static int
getSubjectValue(net.sf.json.JSONObject json)
static BaseClient
getTarget(net.sf.json.JSONObject json)
static int
getTargetValue(net.sf.json.JSONObject json)
static Type
getType(net.sf.json.JSONObject json)
static int
getTypeValue(net.sf.json.JSONObject json)
static void
setAdminClientConverter(AdminClientConverter<? extends AdminClient> adminClientConverter)
static void
setClientConverter(ClientConverter<? extends Client> clientConverter)
-
-
-
Field Detail
-
CLIENT_SECRET_KEY
public static final String CLIENT_SECRET_KEY
This is the key used in the API for the client secret. Since it is usually different from what is used in the serialization keys, it must be converted here from that for use.- See Also:
- Constant Field Values
-
-
Method Detail
-
setAdminClientConverter
public static void setAdminClientConverter(AdminClientConverter<? extends AdminClient> adminClientConverter)
-
getClientConverter
public static ClientConverter<? extends Client> getClientConverter()
-
setClientConverter
public static void setClientConverter(ClientConverter<? extends Client> clientConverter)
-
getSubjectValue
public static int getSubjectValue(net.sf.json.JSONObject json)
-
getSubject
public static BaseClient getSubject(net.sf.json.JSONObject json)
-
getTargetValue
public static int getTargetValue(net.sf.json.JSONObject json)
-
getTarget
public static BaseClient getTarget(net.sf.json.JSONObject json)
-
getContent
public static net.sf.json.JSON getContent(net.sf.json.JSONObject json)
-
getMethodValue
public static int getMethodValue(net.sf.json.JSONObject json)
-
getMethod
public static Action getMethod(net.sf.json.JSONObject json)
-
getTypeValue
public static int getTypeValue(net.sf.json.JSONObject json)
-
getType
public static Type getType(net.sf.json.JSONObject json)
-
-