Class GovernanceStatusLevelManager
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.governanceprogram.client.GovernanceProgramBaseClient
-
- org.odpi.openmetadata.accessservices.governanceprogram.client.GovernanceStatusLevelManager
-
- All Implemented Interfaces:
GovernanceStatusLevelInterface,RelatedElementsManagementInterface
public class GovernanceStatusLevelManager extends GovernanceProgramBaseClient implements GovernanceStatusLevelInterface
GovernanceStatusLevelManager is the Java client used to manage the definitions of the level values used in governance classifications.
-
-
Field Summary
-
Fields inherited from class org.odpi.openmetadata.accessservices.governanceprogram.client.GovernanceProgramBaseClient
nullRequestBody
-
-
Constructor Summary
Constructors Constructor Description GovernanceStatusLevelManager(String serverName, String serverPlatformURLRoot)Create a new client with no authentication embedded in the HTTP request.GovernanceStatusLevelManager(String serverName, String serverPlatformURLRoot, int maxPageSize, AuditLog auditLog)Create a new client with no authentication embedded in the HTTP request.GovernanceStatusLevelManager(String serverName, String serverPlatformURLRoot, String userId, String password)Create a new client that passes userId and password in each HTTP request.GovernanceStatusLevelManager(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize, AuditLog auditLog)Create a new client that passes userId and password in each HTTP request.GovernanceStatusLevelManager(String serverName, String serverPlatformURLRoot, GovernanceProgramRESTClient restClient, int maxPageSize)Create a new client that uses the supplied rest client.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringcreateGovernanceStatusIdentifier(String userId, String setGUID, GovernanceStatusIdentifierProperties properties)Create a new metadata element to represent a governance classification level identifier.StringcreateGovernanceStatusIdentifierSet(String userId, GovernanceStatusIdentifierSetProperties properties)Create a new metadata element to represent the root of a Governance Level Classification Identifier Set.StringcreateStandardGovernanceStatusLevels(String userId)Create a governance level identifier set for a specific governance classification: Impact - classification used to document the impact of an issue or situation. Criticality - classification used to document how critical an asset or activity is. Retention - classification used to identify the basis that an asset should be retained. Confidence - classification use to document an assessment of the quality of an asset or element with an asset. Confidentiality - classification use to define how much access to an asset should be restricted.GovernanceStatusIdentifierElementgetGovernanceStatusIdentifier(String userId, int levelIdentifier)Retrieve the governance classification level identifier metadata element for the requested level within a specific governance classification.GovernanceStatusIdentifierSetElementgetGovernanceStatusIdentifierSetByGUID(String userId, String setGUID)Retrieve the Governance Level Identifier Set metadata element with the supplied unique identifier.List<GovernanceStatusIdentifierSetElement>getGovernanceStatusIdentifierSets(String userId)Retrieve the list of defined Governance Status Identifier Sets.voidremoveGovernanceStatusIdentifier(String userId, String identifierGUID)Remove the metadata element representing a governance status identifier.voidremoveGovernanceStatusIdentifierSet(String userId, String setGUID)Remove the metadata element representing a Governance Status Identifier Set and all linked level identifiers.voidupdateGovernanceStatusIdentifier(String userId, String identifierGUID, GovernanceStatusIdentifierProperties properties)Update the metadata element representing a governance classification level identifier.voidupdateGovernanceStatusIdentifierSet(String userId, String setGUID, GovernanceStatusIdentifierSetProperties properties)Update the metadata element representing a Governance Status Identifier Set.-
Methods inherited from class org.odpi.openmetadata.accessservices.governanceprogram.client.GovernanceProgramBaseClient
clearAssignmentScope, clearGovernanceDefinitionScope, clearGovernanceResponsibilityAssignment, clearGovernedBy, clearMoreInformation, clearResource, clearStakeholder, getAssignedActors, getAssignedScopes, getDescriptiveElements, getGovernanceDefinitionScopes, getGovernanceDefinitionsForElement, getGovernedElements, getMoreInformation, getResourceList, getResponsibleRoles, getRoleResponsibilities, getScopedGovernanceDefinitions, getStakeholderCommissionedElements, getStakeholders, getSupportedByResource, removeReferenceable, setupAssignmentScope, setupGovernanceDefinitionScope, setupGovernanceResponsibilityAssignment, setupGovernedBy, setupMoreInformation, setupResource, setupStakeholder, updateGovernanceDefinitionStatus, updateRelationship
-
-
-
-
Constructor Detail
-
GovernanceStatusLevelManager
public GovernanceStatusLevelManager(String serverName, String serverPlatformURLRoot) throws InvalidParameterException
Create a new client with no authentication embedded in the HTTP request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST servers- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
GovernanceStatusLevelManager
public GovernanceStatusLevelManager(String serverName, String serverPlatformURLRoot, String userId, String password) throws InvalidParameterException
Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST serversuserId- caller's userId embedded in all HTTP requestspassword- caller's userId embedded in all HTTP requests- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
GovernanceStatusLevelManager
public GovernanceStatusLevelManager(String serverName, String serverPlatformURLRoot, int maxPageSize, AuditLog auditLog) throws InvalidParameterException
Create a new client with no authentication embedded in the HTTP request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST serversmaxPageSize- pre-initialized parameter limitauditLog- logging destination- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
GovernanceStatusLevelManager
public GovernanceStatusLevelManager(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize, AuditLog auditLog) throws InvalidParameterException
Create a new client that passes userId and password in each HTTP request. This is the userId/password of the calling server. The end user's userId is sent on each request.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST serversuserId- caller's userId embedded in all HTTP requestspassword- caller's userId embedded in all HTTP requestsmaxPageSize- pre-initialized parameter limitauditLog- logging destination- Throws:
InvalidParameterException- there is a problem creating the client-side components to issue any REST API calls.
-
GovernanceStatusLevelManager
public GovernanceStatusLevelManager(String serverName, String serverPlatformURLRoot, GovernanceProgramRESTClient restClient, int maxPageSize) throws InvalidParameterException
Create a new client that uses the supplied rest client. This is typically used when called from another OMAG Server.- Parameters:
serverName- name of the server to connect toserverPlatformURLRoot- the network address of the server running the OMAS REST serversrestClient- internal client for rest callsmaxPageSize- pre-initialized parameter limit- Throws:
InvalidParameterException- bad input parameters
-
-
Method Detail
-
createStandardGovernanceStatusLevels
public String createStandardGovernanceStatusLevels(String userId) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a governance level identifier set for a specific governance classification:- Impact - classification used to document the impact of an issue or situation.
- Criticality - classification used to document how critical an asset or activity is.
- Retention - classification used to identify the basis that an asset should be retained.
- Confidence - classification use to document an assessment of the quality of an asset or element with an asset.
- Confidentiality - classification use to define how much access to an asset should be restricted.
- Specified by:
createStandardGovernanceStatusLevelsin interfaceGovernanceStatusLevelInterface- Parameters:
userId- calling user- Returns:
- unique identifier of the governance level identifier set
- Throws:
InvalidParameterExceptionUserNotAuthorizedExceptionPropertyServerException
-
createGovernanceStatusIdentifierSet
public String createGovernanceStatusIdentifierSet(String userId, GovernanceStatusIdentifierSetProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent the root of a Governance Level Classification Identifier Set.- Specified by:
createGovernanceStatusIdentifierSetin interfaceGovernanceStatusLevelInterface- Parameters:
userId- calling userproperties- properties to store- Returns:
- unique identifier of the new metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
updateGovernanceStatusIdentifierSet
public void updateGovernanceStatusIdentifierSet(String userId, String setGUID, GovernanceStatusIdentifierSetProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the metadata element representing a Governance Status Identifier Set.- Specified by:
updateGovernanceStatusIdentifierSetin interfaceGovernanceStatusLevelInterface- Parameters:
userId- calling usersetGUID- unique identifier of the metadata element to removeproperties- new properties for this element- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
removeGovernanceStatusIdentifierSet
public void removeGovernanceStatusIdentifierSet(String userId, String setGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the metadata element representing a Governance Status Identifier Set and all linked level identifiers.- Specified by:
removeGovernanceStatusIdentifierSetin interfaceGovernanceStatusLevelInterface- Parameters:
userId- calling usersetGUID- unique identifier of the metadata element to remove- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getGovernanceStatusIdentifierSets
public List<GovernanceStatusIdentifierSetElement> getGovernanceStatusIdentifierSets(String userId) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the list of defined Governance Status Identifier Sets.- Specified by:
getGovernanceStatusIdentifierSetsin interfaceGovernanceStatusLevelInterface- Parameters:
userId- calling user- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getGovernanceStatusIdentifierSetByGUID
public GovernanceStatusIdentifierSetElement getGovernanceStatusIdentifierSetByGUID(String userId, String setGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the Governance Level Identifier Set metadata element with the supplied unique identifier.- Specified by:
getGovernanceStatusIdentifierSetByGUIDin interfaceGovernanceStatusLevelInterface- Parameters:
userId- calling usersetGUID- unique identifier of the requested metadata element- Returns:
- matching metadata element
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
createGovernanceStatusIdentifier
public String createGovernanceStatusIdentifier(String userId, String setGUID, GovernanceStatusIdentifierProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Create a new metadata element to represent a governance classification level identifier.- Specified by:
createGovernanceStatusIdentifierin interfaceGovernanceStatusLevelInterface- Parameters:
userId- calling usersetGUID- unique identifier of the set that this identifier belongsproperties- properties about the GovernanceStatusLevelIdentifier to store- Returns:
- unique identifier of the new GovernanceClassifierLevelIdentifier
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
updateGovernanceStatusIdentifier
public void updateGovernanceStatusIdentifier(String userId, String identifierGUID, GovernanceStatusIdentifierProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Update the metadata element representing a governance classification level identifier.- Specified by:
updateGovernanceStatusIdentifierin interfaceGovernanceStatusLevelInterface- Parameters:
userId- calling useridentifierGUID- unique identifier of the metadata element to updateproperties- new properties for the metadata element- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
removeGovernanceStatusIdentifier
public void removeGovernanceStatusIdentifier(String userId, String identifierGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Remove the metadata element representing a governance status identifier.- Specified by:
removeGovernanceStatusIdentifierin interfaceGovernanceStatusLevelInterface- Parameters:
userId- calling useridentifierGUID- unique identifier of the metadata element to remove- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
getGovernanceStatusIdentifier
public GovernanceStatusIdentifierElement getGovernanceStatusIdentifier(String userId, int levelIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
Retrieve the governance classification level identifier metadata element for the requested level within a specific governance classification.- Specified by:
getGovernanceStatusIdentifierin interfaceGovernanceStatusLevelInterface- Parameters:
userId- calling userlevelIdentifier- level value to retrieve- Returns:
- list of matching metadata elements
- Throws:
InvalidParameterException- one of the parameters is invalidUserNotAuthorizedException- the user is not authorized to issue this requestPropertyServerException- there is a problem reported in the open metadata server(s)
-
-