Class DefaultIntegrationObjectMetadataPermissionService
- java.lang.Object
-
- de.hybris.platform.odata2services.odata.security.impl.DefaultIntegrationObjectMetadataPermissionService
-
- All Implemented Interfaces:
IntegrationObjectMetadataPermissionService
public final class DefaultIntegrationObjectMetadataPermissionService extends java.lang.Object implements IntegrationObjectMetadataPermissionService
The default implementation of the interfaceIntegrationObjectMetadataPermissionServiceto check for the permissions to access metadata on integration objects.
-
-
Constructor Summary
Constructors Constructor Description DefaultIntegrationObjectMetadataPermissionService(@NotNull PermissionCRUDService permissionCRUDService, @NotNull ServiceNameExtractor serviceNameExtractor, @NotNull IntegrationObjectService integrationObjectService, @NotNull IntegrationServicesConfiguration integrationServicesConfiguration)DefaultIntegrationObjectPermissionService class constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckMetadataPermission(org.apache.olingo.odata2.api.processor.ODataContext oDataContext)Checks if the current user can read the metadata of the integration object present in the ODataContext.
-
-
-
Constructor Detail
-
DefaultIntegrationObjectMetadataPermissionService
public DefaultIntegrationObjectMetadataPermissionService(@NotNull @NotNull PermissionCRUDService permissionCRUDService, @NotNull @NotNull ServiceNameExtractor serviceNameExtractor, @NotNull @NotNull IntegrationObjectService integrationObjectService, @NotNull @NotNull IntegrationServicesConfiguration integrationServicesConfiguration)DefaultIntegrationObjectPermissionService class constructor.- Parameters:
permissionCRUDService- permission CRUD service seePermissionCRUDServiceserviceNameExtractor- service name extractor seeServiceNameExtractorintegrationObjectService- integration object service seeIntegrationObjectServiceintegrationServicesConfiguration- configuration service for reading propertiesIntegrationServicesConfiguration
-
-
Method Detail
-
checkMetadataPermission
public void checkMetadataPermission(org.apache.olingo.odata2.api.processor.ODataContext oDataContext)
Description copied from interface:IntegrationObjectMetadataPermissionServiceChecks if the current user can read the metadata of the integration object present in the ODataContext. The implementation may throw aRuntimeExceptionif the user does not have the permission.- Specified by:
checkMetadataPermissionin interfaceIntegrationObjectMetadataPermissionService- Parameters:
oDataContext- OData contextODataContext
-
-