Class DefaultIntegrationObjectMetadataPermissionService
java.lang.Object
de.hybris.platform.odata2services.odata.security.impl.DefaultIntegrationObjectMetadataPermissionService
- All Implemented Interfaces:
IntegrationObjectMetadataPermissionService
public final class DefaultIntegrationObjectMetadataPermissionService
extends Object
implements IntegrationObjectMetadataPermissionService
The default implementation of the interface
IntegrationObjectMetadataPermissionService
to check for the permissions to access metadata on integration objects.-
Constructor Summary
ConstructorsConstructorDescriptionDefaultIntegrationObjectMetadataPermissionService(@NotNull PermissionCRUDService permissionCRUDService, @NotNull ServiceNameExtractor serviceNameExtractor, @NotNull IntegrationObjectService integrationObjectService, @NotNull IntegrationServicesConfiguration integrationServicesConfiguration) DefaultIntegrationObjectPermissionService class constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoidcheckMetadataPermission(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 Details
-
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 Details
-
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
-