public abstract class AbstractSecurityStrategy extends java.lang.Object implements SecurityStrategy
| Constructor and Description |
|---|
AbstractSecurityStrategy() |
| Modifier and Type | Method and Description |
|---|---|
protected ComposedType |
getComposedType(java.lang.Class<?> objectClass)
Method returns ComposedType for dtoClasses that contain GraphNode annotation and 'target' attribute.
|
ModelService |
getModelService() |
java.lang.String |
getOperation(java.lang.String httpMethod,
boolean isNew)
Method returns selected access operation.
|
java.util.Collection<?> |
performDtoReadOperationAllowed(java.util.Collection<?> collection)
Method performs model read security operations on the attribute level on the list of elements.
|
void |
setModelService(ModelService modelService) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisAttributeOperationAllowed, isDtoOperationAllowed, isResourceCommandAllowed, isResourceOperationAllowedpublic void setModelService(ModelService modelService)
modelService - the modelService to setpublic ModelService getModelService()
public java.util.Collection<?> performDtoReadOperationAllowed(java.util.Collection<?> collection)
collection - The collection of objects that needs read security checking.public java.lang.String getOperation(java.lang.String httpMethod,
boolean isNew)
httpMethod - GET, DELETE, POST, PUT.isNew - If httpMethod is a POST or PUT then this attribute will decide that this is create or change operation.protected ComposedType getComposedType(java.lang.Class<?> objectClass)
objectClass - Input Class object.Copyright © 2018 SAP SE. All Rights Reserved.