Class GovernedAssetClient
java.lang.Object
org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClientBase
org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClient
org.odpi.openmetadata.accessservices.securityofficer.client.GovernedAssetClient
- All Implemented Interfaces:
GovernedAssetInterface
public class GovernedAssetClient
extends org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClient
implements GovernedAssetInterface
The Security Officer Open Metadata Access Service (OMAS) provides an interface to support a policy engine
such as Apache Ranger. See interface definition for more explanation
-
Constructor Summary
ConstructorsConstructorDescriptionGovernedAssetClient(String serverName, String serverPlatformURLRoot) Create a new Governance Engine client.GovernedAssetClient(String serverName, String serverPlatformURLRoot, String userId, String password) -
Method Summary
Modifier and TypeMethodDescriptioncreateSoftwareServerCapability(String userId, org.odpi.openmetadata.accessservices.securityofficer.api.model.rest.SoftwareServerCapabilityRequestBody softwareServerCapability) Create a Software Server Capability entityorg.odpi.openmetadata.accessservices.securityofficer.api.model.GovernedAssetgetGovernedAsset(String userId, String assetGuid) List<org.odpi.openmetadata.accessservices.securityofficer.api.model.GovernedAsset>getGovernedAssetList(String userId, String classification, List<String> entityTypes, Integer offset, Integer pageSize) Returns a list of the entities filtered by types that have the searched governed classification.org.odpi.openmetadata.accessservices.securityofficer.api.model.SoftwareServerCapabilitygetSoftwareServerCapabilityByGUID(String userId, String guid) Returns the Software Server Capability entity by global identifierMethods inherited from class org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClient
callBooleanGetRESTCall, callCountGetRESTCall, callGUIDGetRESTCall, callGUIDListGetRESTCall, callGUIDListPostRESTCall, callGUIDPostRESTCall, callNameListGetRESTCall, callOCFConnectorReportGetRESTCall, callStringMapGetRESTCall, callVoidGetRESTCall, callVoidPostRESTCallMethods inherited from class org.odpi.openmetadata.commonservices.ffdc.rest.FFDCRESTClientBase
callPostRESTCallNoParams
-
Constructor Details
-
GovernedAssetClient
public GovernedAssetClient(String serverName, String serverPlatformURLRoot) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Create a new Governance Engine client.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST services- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- if parameter validation fails
-
GovernedAssetClient
public GovernedAssetClient(String serverName, String serverPlatformURLRoot, String userId, String password) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
-
-
Method Details
-
getGovernedAssetList
public List<org.odpi.openmetadata.accessservices.securityofficer.api.model.GovernedAsset> getGovernedAssetList(String userId, String classification, List<String> entityTypes, Integer offset, Integer pageSize) throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Returns a list of the entities filtered by types that have the searched governed classification.- Specified by:
getGovernedAssetListin interfaceGovernedAssetInterface- Parameters:
userId- - userId of user making request.classification- - name of base classification type (can be null)entityTypes- - String - root type of asset (can be null)offset- - offset of full collection to begin the return resultspageSize- - limit the number of the results returned- Returns:
- a list of the governed entities that have the Governed Classification Searched.
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- - the requesting user is not authorized to issue this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- - there is a problem retrieving information from the property server(s).org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- - one of the parameters is null or invalid.
-
getGovernedAsset
public org.odpi.openmetadata.accessservices.securityofficer.api.model.GovernedAsset getGovernedAsset(String userId, String assetGuid) throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - Specified by:
getGovernedAssetin interfaceGovernedAssetInterface- Parameters:
userId- - String - userId of user making request.assetGuid- - String - guid of asset component- Returns:
- the entity if this has a governed classification assigned
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- - the requesting user is not authorized to issue this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- - there is a problem retrieving information from the property server(s).org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- - one of the parameters is null or invalid.
-
createSoftwareServerCapability
public String createSoftwareServerCapability(String userId, org.odpi.openmetadata.accessservices.securityofficer.api.model.rest.SoftwareServerCapabilityRequestBody softwareServerCapability) throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Create a Software Server Capability entity- Specified by:
createSoftwareServerCapabilityin interfaceGovernedAssetInterface- Parameters:
userId- - String - userId of user making request.softwareServerCapability- - SoftwareServerCapabilityRequestBody- Returns:
- the GUID of the Software Server entity created
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- - the requesting user is not authorized to issue this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- - there is a problem retrieving information from the property server(s).org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- - one of the parameters is null or invalid.
-
getSoftwareServerCapabilityByGUID
public org.odpi.openmetadata.accessservices.securityofficer.api.model.SoftwareServerCapability getSoftwareServerCapabilityByGUID(String userId, String guid) throws org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException Returns the Software Server Capability entity by global identifier- Specified by:
getSoftwareServerCapabilityByGUIDin interfaceGovernedAssetInterface- Parameters:
userId- - the name of the calling userguid- - guid of the software server- Returns:
- the Software Server Capability entity associated with the provided GUID
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- - the requesting user is not authorized to issue this request.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- - there is a problem retrieving information from the property server(s).org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- - one of the parameters is null or invalid.
-