Class PermissionServer
- java.lang.Object
-
- org.oa4mp.server.loader.oauth2.cm.util.AbstractDDServer
-
- org.oa4mp.server.loader.oauth2.cm.util.permissions.PermissionServer
-
- All Implemented Interfaces:
DoubleDispatchServer
,Server
public class PermissionServer extends AbstractDDServer
Created by Jeff Gaynor
on 12/1/16 at 10:54 AM
-
-
Field Summary
-
Fields inherited from class edu.uiuc.ncsa.myproxy.oa4mp.oauth2.cm.util.AbstractDDServer
cose
-
-
Constructor Summary
Constructors Constructor Description PermissionServer(OA2SE cose)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PermissionResponse
addClient(AddClientRequest request)
Adds a given client to the list of clients managed by this adminPermissionResponse
listAdmins(ListAdminsRequest request)
Returns a list of admins for a given client.PermissionResponse
listClients(ListClientsRequest request)
PermissionResponse
removeClient(RemoveClientRequest request)
removes a client from management by an admin.-
Methods inherited from class edu.uiuc.ncsa.myproxy.oa4mp.oauth2.cm.util.AbstractDDServer
canApprove, canCreate, canDelete, canRead, canWrite, getAdminClientStore, getClientApprovalStore, getClientStore, getPermissions, getPermissionStore, isACApproved, process, subset, subset
-
-
-
-
Constructor Detail
-
PermissionServer
public PermissionServer(OA2SE cose)
-
-
Method Detail
-
listAdmins
public PermissionResponse listAdmins(ListAdminsRequest request)
Returns a list of admins for a given client. This will check that the permissions exist for this operation.- Parameters:
request
-- Returns:
-
listClients
public PermissionResponse listClients(ListClientsRequest request)
-
removeClient
public PermissionResponse removeClient(RemoveClientRequest request)
removes a client from management by an admin. This does NOT remove the client!!- Parameters:
request
-- Returns:
-
addClient
public PermissionResponse addClient(AddClientRequest request)
Adds a given client to the list of clients managed by this admin- Parameters:
request
-- Returns:
-
-