public class GovernanceDomainManager extends Object implements GovernanceDomainInterface
| Constructor and Description |
|---|
GovernanceDomainManager(String serverName,
String serverPlatformURLRoot)
Create a new client with no authentication embedded in the HTTP request.
|
GovernanceDomainManager(String serverName,
String serverPlatformURLRoot,
GovernanceProgramRESTClient restClient,
int maxPageSize)
Create a new client that uses the supplied rest client.
|
GovernanceDomainManager(String serverName,
String serverPlatformURLRoot,
int maxPageSize,
AuditLog auditLog)
Create a new client with no authentication embedded in the HTTP request.
|
GovernanceDomainManager(String serverName,
String serverPlatformURLRoot,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
GovernanceDomainManager(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.
|
| Modifier and Type | Method and Description |
|---|---|
String |
createGovernanceDomain(String userId,
String setGUID,
GovernanceDomainProperties properties)
Create a new metadata element to represent a governance domain.
|
String |
createGovernanceDomainSet(String userId,
GovernanceDomainSetProperties properties)
Create a new metadata element to represent the root of a Governance Domain Set.
|
String |
createStandardGovernanceDomains(String userId)
Create a governance domain set called "EgeriaStandardDomains" containing governance domain definitions for the following governance domains.
|
void |
deleteGovernanceDomain(String userId,
String governanceDomainGUID)
Remove the metadata element representing a Governance Domain.
|
List<GovernanceDomainElement> |
findGovernanceDomains(String userId,
String searchString,
int startFrom,
int pageSize)
Retrieve the list of Governance Domain metadata elements that contain the search string.
|
List<GovernanceDomainSetElement> |
findGovernanceDomainSets(String userId,
String searchString,
int startFrom,
int pageSize)
Retrieve the list of governanceDomainSet metadata elements that contain the search string.
|
GovernanceDomainElement |
getGovernanceDomainByGUID(String userId,
String governanceDomainGUID)
Retrieve the Governance Domain metadata element with the supplied unique identifier assigned when the domain description was stored in
the metadata repository.
|
GovernanceDomainElement |
getGovernanceDomainByIdentifier(String userId,
int domainIdentifier)
Retrieve the Governance Domain metadata element with the supplied domain identifier.
|
List<GovernanceDomainElement> |
getGovernanceDomains(String userId,
int startFrom,
int pageSize)
Retrieve the list of Governance Domain metadata elements defined for the governance program.
|
List<GovernanceDomainElement> |
getGovernanceDomainsByName(String userId,
String name,
int startFrom,
int pageSize)
Retrieve the list of Governance Domain metadata elements with a matching qualified or display name.
|
GovernanceDomainSetElement |
getGovernanceDomainSetByGUID(String userId,
String governanceDomainSetGUID)
Retrieve the governanceDomainSet metadata element with the supplied unique identifier.
|
List<GovernanceDomainSetElement> |
getGovernanceDomainSetsByName(String userId,
String name,
int startFrom,
int pageSize)
Retrieve the list of governanceDomainSet metadata elements with a matching qualified or display name.
|
List<GovernanceDomainSetElement> |
getSetsForGovernanceDomain(String userId,
String governanceDomainGUID,
int startFrom,
int pageSize)
Return the list of governance domain sets that a governance domain belong.
|
void |
removeGovernanceDomainSet(String userId,
String governanceDomainSetGUID)
Remove the metadata element representing a governanceDomainSet.
|
void |
updateGovernanceDomain(String userId,
String governanceDomainGUID,
GovernanceDomainProperties properties)
Update the metadata element representing a Governance Domain.
|
void |
updateGovernanceDomainSet(String userId,
String governanceDomainSetGUID,
GovernanceDomainSetProperties properties)
Update the metadata element representing a Governance Domain Set.
|
public GovernanceDomainManager(String serverName, String serverPlatformURLRoot) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public GovernanceDomainManager(String serverName, String serverPlatformURLRoot, String userId, String password) throws InvalidParameterException
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 requestsInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public GovernanceDomainManager(String serverName, String serverPlatformURLRoot, int maxPageSize, AuditLog auditLog) throws InvalidParameterException
serverName - name of the server to connect toserverPlatformURLRoot - the network address of the server running the OMAS REST serversmaxPageSize - pre-initialized parameter limitauditLog - logging destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public GovernanceDomainManager(String serverName, String serverPlatformURLRoot, String userId, String password, int maxPageSize, AuditLog auditLog) throws InvalidParameterException
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 destinationInvalidParameterException - there is a problem creating the client-side components to issue any
REST API calls.public GovernanceDomainManager(String serverName, String serverPlatformURLRoot, GovernanceProgramRESTClient restClient, int maxPageSize) throws InvalidParameterException
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 limitInvalidParameterException - bad input parameterspublic String createStandardGovernanceDomains(String userId) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createStandardGovernanceDomains in interface GovernanceDomainInterfaceuserId - calling userInvalidParameterException - 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)public String createGovernanceDomainSet(String userId, GovernanceDomainSetProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createGovernanceDomainSet in interface GovernanceDomainInterfaceuserId - calling userproperties - properties to storeInvalidParameterException - 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)public void updateGovernanceDomainSet(String userId, String governanceDomainSetGUID, GovernanceDomainSetProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateGovernanceDomainSet in interface GovernanceDomainInterfaceuserId - calling usergovernanceDomainSetGUID - unique identifier of the metadata element to removeproperties - new properties for this elementInvalidParameterException - 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)public void removeGovernanceDomainSet(String userId, String governanceDomainSetGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
removeGovernanceDomainSet in interface GovernanceDomainInterfaceuserId - calling usergovernanceDomainSetGUID - unique identifier of the metadata element to removeInvalidParameterException - 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)public List<GovernanceDomainSetElement> findGovernanceDomainSets(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
findGovernanceDomainSets in interface GovernanceDomainInterfaceuserId - calling usersearchString - string to find in the propertiesstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - 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)public List<GovernanceDomainSetElement> getGovernanceDomainSetsByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getGovernanceDomainSetsByName in interface GovernanceDomainInterfaceuserId - calling username - name to search forstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - 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)public GovernanceDomainSetElement getGovernanceDomainSetByGUID(String userId, String governanceDomainSetGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getGovernanceDomainSetByGUID in interface GovernanceDomainInterfaceuserId - calling usergovernanceDomainSetGUID - unique identifier of the requested metadata elementInvalidParameterException - 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)public String createGovernanceDomain(String userId, String setGUID, GovernanceDomainProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createGovernanceDomain in interface GovernanceDomainInterfaceuserId - calling usersetGUID - unique identifier of the set that this identifier belongsproperties - properties about the Governance Domain to storeInvalidParameterException - 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)public void updateGovernanceDomain(String userId, String governanceDomainGUID, GovernanceDomainProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateGovernanceDomain in interface GovernanceDomainInterfaceuserId - calling usergovernanceDomainGUID - unique identifier of the metadata element to updateproperties - new properties for the metadata elementInvalidParameterException - 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)public void deleteGovernanceDomain(String userId, String governanceDomainGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
deleteGovernanceDomain in interface GovernanceDomainInterfaceuserId - calling usergovernanceDomainGUID - unique identifier of the metadata element to removeInvalidParameterException - 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)public List<GovernanceDomainElement> getGovernanceDomains(String userId, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getGovernanceDomains in interface GovernanceDomainInterfaceuserId - calling userstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - 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)public List<GovernanceDomainElement> findGovernanceDomains(String userId, String searchString, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
findGovernanceDomains in interface GovernanceDomainInterfaceuserId - calling usersearchString - string to find in the propertiesstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - 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)public List<GovernanceDomainSetElement> getSetsForGovernanceDomain(String userId, String governanceDomainGUID, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getSetsForGovernanceDomain in interface GovernanceDomainInterfaceuserId - calling usergovernanceDomainGUID - unique identifier of the governance domain to querystartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - 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)public List<GovernanceDomainElement> getGovernanceDomainsByName(String userId, String name, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getGovernanceDomainsByName in interface GovernanceDomainInterfaceuserId - calling username - name to search forstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - 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)public GovernanceDomainElement getGovernanceDomainByGUID(String userId, String governanceDomainGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getGovernanceDomainByGUID in interface GovernanceDomainInterfaceuserId - calling usergovernanceDomainGUID - unique identifier of the requested metadata elementInvalidParameterException - 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)public GovernanceDomainElement getGovernanceDomainByIdentifier(String userId, int domainIdentifier) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getGovernanceDomainByIdentifier in interface GovernanceDomainInterfaceuserId - calling userdomainIdentifier - identifier used to identify the domainInvalidParameterException - 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)Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.