public interface OpenMetadataAssetSecurity
| Modifier and Type | Method and Description |
|---|---|
List<String> |
initializeAssetZones(List<String> defaultZones,
Asset asset)
Determine the appropriate setting for the asset zones depending on the content of the asset and the
default zones.
|
List<String> |
setSupportedZonesForUser(List<String> supportedZones,
String serviceName,
String user)
Determine the appropriate setting for the supported zones depending on the user and the
default supported zones set up for the service.
|
void |
validateUserForAssetAttachmentUpdate(String userId,
Asset asset)
Tests for whether a specific user should have the right to update elements attached directly
to an asset such as schema and connections.
|
void |
validateUserForAssetCreate(String userId,
Asset asset)
Tests for whether a specific user should have the right to create an asset.
|
void |
validateUserForAssetDelete(String userId,
Asset asset)
Tests for whether a specific user should have the right to delete an asset.
|
void |
validateUserForAssetDetailUpdate(String userId,
Asset originalAsset,
AssetAuditHeader originalAssetAuditHeader,
Asset newAsset)
Tests for whether a specific user should have the right to update an asset.
|
void |
validateUserForAssetFeedback(String userId,
Asset asset)
Tests for whether a specific user should have the right to attach feedback - such as comments,
ratings, tags and likes, to the asset.
|
void |
validateUserForAssetRead(String userId,
Asset asset)
Tests for whether a specific user should have read access to a specific asset.
|
List<String> |
verifyAssetZones(List<String> defaultZones,
List<String> supportedZones,
Asset originalAsset,
Asset updatedAsset)
Determine the appropriate setting for the asset zones depending on the content of the asset and the
settings of both default zones and supported zones.
|
List<String> setSupportedZonesForUser(List<String> supportedZones, String serviceName, String user) throws InvalidParameterException, PropertyServerException
supportedZones - default setting of the supported zones for the serviceserviceName - name of the called serviceuser - name of the userInvalidParameterException - one of the parameter values is invalidPropertyServerException - there is a problem calculating the zonesList<String> initializeAssetZones(List<String> defaultZones, Asset asset) throws InvalidParameterException, PropertyServerException
defaultZones - setting of the default zones for the serviceasset - initial values for the assetInvalidParameterException - one of the asset values is invalidPropertyServerException - there is a problem calculating the zonesList<String> verifyAssetZones(List<String> defaultZones, List<String> supportedZones, Asset originalAsset, Asset updatedAsset) throws InvalidParameterException, PropertyServerException
defaultZones - setting of the default zones for the servicesupportedZones - setting of the supported zones for the serviceoriginalAsset - original values for the assetupdatedAsset - updated values for the assetInvalidParameterException - one of the asset values is invalidPropertyServerException - there is a problem calculating the zonesvoid validateUserForAssetCreate(String userId, Asset asset) throws UserNotAuthorizedException
userId - identifier of userasset - new asset detailsUserNotAuthorizedException - the user is not authorized to change this assetvoid validateUserForAssetRead(String userId, Asset asset) throws UserNotAuthorizedException
userId - identifier of userasset - asset detailsUserNotAuthorizedException - the user is not authorized to access this assetvoid validateUserForAssetDetailUpdate(String userId, Asset originalAsset, AssetAuditHeader originalAssetAuditHeader, Asset newAsset) throws UserNotAuthorizedException
userId - identifier of useroriginalAsset - original asset detailsoriginalAssetAuditHeader - details of the asset's audit headernewAsset - new asset detailsUserNotAuthorizedException - the user is not authorized to change this assetvoid validateUserForAssetAttachmentUpdate(String userId, Asset asset) throws UserNotAuthorizedException
userId - identifier of userasset - original asset detailsUserNotAuthorizedException - the user is not authorized to change this assetvoid validateUserForAssetFeedback(String userId, Asset asset) throws UserNotAuthorizedException
userId - identifier of userasset - original asset detailsUserNotAuthorizedException - the user is not authorized to change this assetvoid validateUserForAssetDelete(String userId, Asset asset) throws UserNotAuthorizedException
userId - identifier of userasset - original asset detailsUserNotAuthorizedException - the user is not authorized to change this assetCopyright © 2018–2020 ODPi. All rights reserved.