public class BackwardCompatibility extends AuthorizationDecorator
| Constructor and Description |
|---|
BackwardCompatibility(Authorization authorization) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
hasEntityAccess(String entityName,
String operation)
Checks if current user is granted access to access the given Odata entity to perform
the given operation(READ/WRITE).
|
boolean |
isAuthenticatedUser(String serviceName)
Checks if current user is authenticated and given OData service requires
authenticated user to access it.
|
boolean |
isRegisteredUser(String serviceName)
Checks if current user is registered user and given OData service requires
registered user to access it.
|
getUserAttribute, getUserId, getUserName, hasUserRolegetWhereCondition, rejectRequest, setWhereConditionpublic BackwardCompatibility(Authorization authorization)
public boolean isAuthenticatedUser(String serviceName)
AuthorizationisAuthenticatedUser in class AuthorizationDecoratorserviceName - the OData service name.public boolean isRegisteredUser(String serviceName)
AuthorizationisRegisteredUser in class AuthorizationDecoratorserviceName - the OData service name.public boolean hasEntityAccess(String entityName, String operation)
AuthorizationhasEntityAccess in class AuthorizationDecoratorentityName - the OData entity name.operation - READ or WRITE.Copyright © 2020 SAP. All Rights Reserved.