Class SATFactory
- java.lang.Object
-
- org.oa4mp.server.api.admin.things.SATFactory
-
-
Field Summary
Fields Modifier and Type Field Description static StringCLIENT_SECRET_KEYThis is the key used in the API for the client secret.-
Fields inherited from interface org.oa4mp.server.api.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 org.kordamp.json.JSONgetContent(org.kordamp.json.JSONObject json)static ActiongetMethod(org.kordamp.json.JSONObject json)static intgetMethodValue(org.kordamp.json.JSONObject json)static BaseClientgetSubject(org.kordamp.json.JSONObject json)static intgetSubjectValue(org.kordamp.json.JSONObject json)static BaseClientgetTarget(org.kordamp.json.JSONObject json)static intgetTargetValue(org.kordamp.json.JSONObject json)static TypegetType(org.kordamp.json.JSONObject json)static intgetTypeValue(org.kordamp.json.JSONObject json)static voidsetAdminClientConverter(AdminClientConverter<? extends AdminClient> adminClientConverter)static voidsetClientConverter(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(org.kordamp.json.JSONObject json)
-
getSubject
public static BaseClient getSubject(org.kordamp.json.JSONObject json)
-
getTargetValue
public static int getTargetValue(org.kordamp.json.JSONObject json)
-
getTarget
public static BaseClient getTarget(org.kordamp.json.JSONObject json)
-
getContent
public static org.kordamp.json.JSON getContent(org.kordamp.json.JSONObject json)
-
getMethodValue
public static int getMethodValue(org.kordamp.json.JSONObject json)
-
getMethod
public static Action getMethod(org.kordamp.json.JSONObject json)
-
getTypeValue
public static int getTypeValue(org.kordamp.json.JSONObject json)
-
getType
public static Type getType(org.kordamp.json.JSONObject json)
-
-