Class AbstractDDServer
- java.lang.Object
-
- org.oa4mp.server.loader.oauth2.cm.util.AbstractDDServer
-
- All Implemented Interfaces:
DoubleDispatchServer
,Server
- Direct Known Subclasses:
AdminClientServer
,AttributeServer
,ClientServer
,PermissionServer
public abstract class AbstractDDServer extends Object implements DoubleDispatchServer, Server
Created by Jeff Gaynor
on 11/30/16 at 3:19 PM
-
-
Constructor Summary
Constructors Constructor Description AbstractDDServer(OA2SE cose)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
canApprove(AbstractDDRequest request)
protected void
canCreate(AbstractDDRequest request)
protected void
canDelete(AbstractDDRequest request)
protected void
canRead(AbstractDDRequest request)
protected void
canWrite(AbstractDDRequest request)
protected AdminClientStore<AdminClient>
getAdminClientStore()
protected ClientApprovalStore
getClientApprovalStore()
protected ClientStore
getClientStore()
protected PermissionList
getPermissions(AbstractDDRequest request)
protected PermissionsStore<Permission>
getPermissionStore()
protected void
isACApproved(AbstractDDRequest request)
Response
process(Request request)
protected OA2Client
subset(OA2Client client, List<String> attributes)
This will take a client and a list of attributes and return the requested subset.protected AdminClient
subset(AdminClient client, List<String> attributes)
-
-
-
Field Detail
-
cose
protected OA2SE cose
-
-
Constructor Detail
-
AbstractDDServer
public AbstractDDServer(OA2SE cose)
-
-
Method Detail
-
process
public Response process(Request request)
- Specified by:
process
in interfaceDoubleDispatchServer
- Specified by:
process
in interfaceServer
-
subset
protected OA2Client subset(OA2Client client, List<String> attributes)
This will take a client and a list of attributes and return the requested subset.- Parameters:
client
-attributes
-- Returns:
-
subset
protected AdminClient subset(AdminClient client, List<String> attributes)
-
canRead
protected void canRead(AbstractDDRequest request)
-
canWrite
protected void canWrite(AbstractDDRequest request)
-
isACApproved
protected void isACApproved(AbstractDDRequest request)
-
canApprove
protected void canApprove(AbstractDDRequest request)
-
canDelete
protected void canDelete(AbstractDDRequest request)
-
canCreate
protected void canCreate(AbstractDDRequest request)
-
getPermissions
protected PermissionList getPermissions(AbstractDDRequest request)
-
getClientStore
protected ClientStore getClientStore()
-
getClientApprovalStore
protected ClientApprovalStore getClientApprovalStore()
-
getPermissionStore
protected PermissionsStore<Permission> getPermissionStore()
-
getAdminClientStore
protected AdminClientStore<AdminClient> getAdminClientStore()
-
-