public class PropertyFileSecurityStrategy extends AbstractSecurityStrategy
| Constructor and Description |
|---|
PropertyFileSecurityStrategy() |
| Modifier and Type | Method and Description |
|---|---|
java.util.List<java.lang.String> |
getAllAllowedGroups(java.lang.String httpMethod,
java.lang.Class resource)
Get all allowed groups for a given resource(and all super-packages) and requested http method.
|
boolean |
isAttributeOperationAllowed(java.lang.Class<?> attrDtoClass,
java.lang.String attrQualifier,
java.lang.String attrOperation)
Currently this strategy doesn't support attribute security.
|
boolean |
isDtoOperationAllowed(java.lang.Class<?> dtoClass,
java.lang.String operation)
Currently this strategy doesn't support dto security.
|
boolean |
isResourceCommandAllowed(RestResource resource,
java.lang.String command)
Currently this strategy doesn't support resource commands security.
|
boolean |
isResourceOperationAllowed(RestResource resource,
java.lang.String operation)
Gets the
ResponseBuilder for this resource request or initially creates a new one. |
getComposedType, getModelService, getOperation, performDtoReadOperationAllowed, setModelServicepublic boolean isResourceOperationAllowed(RestResource resource, java.lang.String operation)
ResponseBuilder for this resource request or initially creates a new one.
When a new ResponseBuilder has to be created and security checking is enabled the currents user access to
this resource gets verified before.
Security checking is only done once per request.
resource - The requested resource which will be checked.operation - The read, change, create or remove access operations.public java.util.List<java.lang.String> getAllAllowedGroups(java.lang.String httpMethod,
java.lang.Class resource)
httpMethod - - GET, PUT or DELETEresource - public boolean isDtoOperationAllowed(java.lang.Class<?> dtoClass,
java.lang.String operation)
All dto are allowed.
dtoClass - The dto class which will be checked.operation - The read, change, create or remove access operations.public boolean isResourceCommandAllowed(RestResource resource, java.lang.String command)
All commands are allowed.
resource - The requested resource which will be checked.command - The command which will be checked.public boolean isAttributeOperationAllowed(java.lang.Class<?> attrDtoClass,
java.lang.String attrQualifier,
java.lang.String attrOperation)
All attributes are allowed.
attrDtoClass - The dto class that contains the attribute which will be checked.attrQualifier - The attribute which will be checked.attrOperation - The read or change operations.Copyright © 2018 SAP SE. All Rights Reserved.