public class GovernanceEngineRESTServices extends Object
This package deals with supporting the REST API from within the OMAG Server
Governance engines such as Apache Ranger are interested in the classification of resources that they provide access to. They are unlikely to be interested in all the nitty gritty properties of that resource, only knowing that it is PI or SPI and perhaps masking or preventing access.
They tend to use this information in two ways - At policy authoring time - where knowing what tags are available is interesting to help in that definition process - At data access time - where we need to know if resource X is protected in some way due to it's metadata ie classification
Initially this OMAS client will provide information on those - classifiers - we'll call them 'tags' here - Managed assets - those resources - and in effect any tags associated with them. Details on the assets themselves are better supported through the AssetConsumer OMAS API, and additionally the governance engine is not interested currently in HOW the assets get classified - ie through the association of a classification directly to an asset, or via business terms, so effectively flatten this
The result is a fairly simple object being made available to the engine, which will evolve as work is done on enhancing the interaction (for example capturing information back from the engine), and as we interconnect with new governance engines
| Constructor and Description |
|---|
GovernanceEngineRESTServices()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
GovernanceClassificationDefAPIResponse |
getClassificationDefs(String userId,
String classificationGuid)
Returns a single governance tag for the enforcement engine
|
GovernanceClassificationDefListAPIResponse |
getGovernanceClassificationDefs(String userId,
List<String> classification)
Returns the list of governance tags for the enforcement engine
|
GovernedAssetAPIResponse |
getGovernedAsset(String userId,
String assetGuid)
Returns a single governed asset
|
GovernedAssetListAPIResponse |
getGovernedAssets(String userId,
List<String> classification,
List<String> type)
Returns the list of governed asset
|
static void |
setRepositoryConnector(String accessServiceName,
OMRSRepositoryConnector repositoryConnector)
Provide a connector to the REST Services.
|
public GovernanceEngineRESTServices()
public static void setRepositoryConnector(String accessServiceName, OMRSRepositoryConnector repositoryConnector)
accessServiceName - - name of this access servicerepositoryConnector - - OMRS Repository Connector to the property handlers.public GovernanceClassificationDefListAPIResponse getGovernanceClassificationDefs(String userId, List<String> classification)
These are the definitions - so tell us the name, guid, attributes associated with the tag. The security engine will want to know about these tags to assist in policy authoring/validation, as well as know when they change, since any existing assets classified with the tags are affected
userId - - String - userId of user making request.classification - - this may be the qualifiedName or displayName of the connection.public GovernanceClassificationDefAPIResponse getClassificationDefs(String userId, String classificationGuid)
These are the definitions - so tell us the name, guid, attributes associated with the tag. The security engine will want to know about these tags to assist in policy authoring/validation, as well as know when they change, since any existing assets classified with the tags are affected
userId - - String - userId of user making request.classificationGuid - - guid of the definition to retrievepublic GovernedAssetListAPIResponse getGovernedAssets(String userId, List<String> classification, List<String> type)
These include the tag associations but not the definitions of those tags
userId - - String - userId of user making request.classification - - this may be the qualifiedName or displayName of the connection.type - types to start query frompublic GovernedAssetAPIResponse getGovernedAsset(String userId, String assetGuid)
These include the tag associations but not the definitions of those tags
userId - - String - userId of user making request.assetGuid - - Guid of the asset component to retrieveCopyright © 2017–2018 ODPi. All rights reserved.