public class DefaultPermissionCRUDService extends Object implements PermissionCRUDService
PermissionCRUDService implementation. It delegates all calls to PermissionCheckingService| Constructor and Description |
|---|
DefaultPermissionCRUDService() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canChangeAttribute(AttributeDescriptorModel attributeDescriptor)
Returns true if the current user is granted
PermissionsConstants.CHANGE permission to the given attribute
descriptor. |
boolean |
canChangeAttribute(String typeCode,
String attributeQualifier)
Returns true if the current user is granted
PermissionsConstants.CHANGE permission to the given attribute
descriptor. |
boolean |
canChangeAttributePermission(AttributeDescriptorModel attributeDescriptor)
Returns true if the current user is granted
PermissionsConstants.CHANGE_PERMISSIONS permission to the
given attribute descriptor. |
boolean |
canChangeAttributePermission(String typeCode,
String attributeQualifier)
Returns true if the current user is granted
PermissionsConstants.CHANGE_PERMISSIONS permission to the
given attribute descriptor. |
boolean |
canChangeType(ComposedTypeModel type)
Returns true if the current user is granted
PermissionsConstants.CHANGE permission to the given type. |
boolean |
canChangeType(String typeCode)
Returns true if the current user is granted
PermissionsConstants.CHANGE permission to the given type. |
boolean |
canChangeTypePermission(ComposedTypeModel type)
Returns true if the current user is granted
PermissionsConstants.CHANGE_PERMISSIONS permission to the
given type. |
boolean |
canChangeTypePermission(String typeCode)
Returns true if the current user is granted
PermissionsConstants.CHANGE_PERMISSIONS permission to the
given type. |
boolean |
canCreateTypeInstance(ComposedTypeModel type)
Returns true if the current user is granted
PermissionsConstants.CREATE permission to the given type. |
boolean |
canCreateTypeInstance(String typeCode)
Returns true if the current user is granted
PermissionsConstants.CREATE permission to the given type. |
boolean |
canReadAttribute(AttributeDescriptorModel attributeDescriptor)
Returns true if the current user is granted
PermissionsConstants.READ permission to the given attribute
descriptor. |
boolean |
canReadAttribute(String typeCode,
String attributeQualifier)
Returns true if the current user is granted
PermissionsConstants.READ permission to the given attribute
descriptor. |
boolean |
canReadType(ComposedTypeModel type)
Returns true if the current user is granted
PermissionsConstants.READ permission to the given type. |
boolean |
canReadType(String typeCode)
Returns true if the current user is granted
PermissionsConstants.READ permission to the given type. |
boolean |
canRemoveTypeInstance(ComposedTypeModel type)
Returns true if the current user is granted
PermissionsConstants.REMOVE permission to the given type. |
boolean |
canRemoveTypeInstance(String typeCode)
Returns true if the current user is granted
PermissionsConstants.REMOVE permission to the given type. |
PermissionCheckingService |
getPermissionCheckingService() |
void |
setPermissionCheckingService(PermissionCheckingService permissionCheckingService) |
public boolean canReadType(ComposedTypeModel type)
PermissionCRUDServicePermissionsConstants.READ permission to the given type.
Returns false otherwise.canReadType in interface PermissionCRUDServicepublic boolean canReadType(String typeCode)
PermissionCRUDServicePermissionsConstants.READ permission to the given type.
Returns false otherwise.canReadType in interface PermissionCRUDServicepublic boolean canReadAttribute(AttributeDescriptorModel attributeDescriptor)
PermissionCRUDServicePermissionsConstants.READ permission to the given attribute
descriptor. Returns false otherwise.canReadAttribute in interface PermissionCRUDServicepublic boolean canReadAttribute(String typeCode, String attributeQualifier)
PermissionCRUDServicePermissionsConstants.READ permission to the given attribute
descriptor. Returns false otherwise.canReadAttribute in interface PermissionCRUDServicepublic boolean canChangeType(ComposedTypeModel type)
PermissionCRUDServicePermissionsConstants.CHANGE permission to the given type.
Returns false otherwise.canChangeType in interface PermissionCRUDServicepublic boolean canChangeType(String typeCode)
PermissionCRUDServicePermissionsConstants.CHANGE permission to the given type.
Returns false otherwise.canChangeType in interface PermissionCRUDServicepublic boolean canChangeAttribute(AttributeDescriptorModel attributeDescriptor)
PermissionCRUDServicePermissionsConstants.CHANGE permission to the given attribute
descriptor. Returns false otherwise.canChangeAttribute in interface PermissionCRUDServicepublic boolean canChangeAttribute(String typeCode, String attributeQualifier)
PermissionCRUDServicePermissionsConstants.CHANGE permission to the given attribute
descriptor. Returns false otherwise.canChangeAttribute in interface PermissionCRUDServicepublic boolean canCreateTypeInstance(ComposedTypeModel type)
PermissionCRUDServicePermissionsConstants.CREATE permission to the given type.
Returns false otherwise.canCreateTypeInstance in interface PermissionCRUDServicepublic boolean canCreateTypeInstance(String typeCode)
PermissionCRUDServicePermissionsConstants.CREATE permission to the given type.
Returns false otherwise.canCreateTypeInstance in interface PermissionCRUDServicepublic boolean canRemoveTypeInstance(ComposedTypeModel type)
PermissionCRUDServicePermissionsConstants.REMOVE permission to the given type.
Returns false otherwise.canRemoveTypeInstance in interface PermissionCRUDServicepublic boolean canRemoveTypeInstance(String typeCode)
PermissionCRUDServicePermissionsConstants.REMOVE permission to the given type.
Returns false otherwise.canRemoveTypeInstance in interface PermissionCRUDServicepublic boolean canChangeTypePermission(ComposedTypeModel type)
PermissionCRUDServicePermissionsConstants.CHANGE_PERMISSIONS permission to the
given type. Returns false otherwise.canChangeTypePermission in interface PermissionCRUDServicepublic boolean canChangeTypePermission(String typeCode)
PermissionCRUDServicePermissionsConstants.CHANGE_PERMISSIONS permission to the
given type. Returns false otherwise.canChangeTypePermission in interface PermissionCRUDServicepublic boolean canChangeAttributePermission(AttributeDescriptorModel attributeDescriptor)
PermissionCRUDServicePermissionsConstants.CHANGE_PERMISSIONS permission to the
given attribute descriptor. Returns false otherwise.canChangeAttributePermission in interface PermissionCRUDServicepublic boolean canChangeAttributePermission(String typeCode, String attributeQualifier)
PermissionCRUDServicePermissionsConstants.CHANGE_PERMISSIONS permission to the
given attribute descriptor. Returns false otherwise.canChangeAttributePermission in interface PermissionCRUDServicepublic PermissionCheckingService getPermissionCheckingService()
public void setPermissionCheckingService(PermissionCheckingService permissionCheckingService)
Copyright © 2017 SAP SE. All Rights Reserved.