public class SubjectAreaManager extends Object implements SubjectAreasInterface
| Constructor and Description |
|---|
SubjectAreaManager(String serverName,
String serverPlatformURLRoot)
Create a new client with no authentication embedded in the HTTP request.
|
SubjectAreaManager(String serverName,
String serverPlatformURLRoot,
GovernanceProgramRESTClient restClient,
int maxPageSize)
Create a new client that uses the supplied rest client.
|
SubjectAreaManager(String serverName,
String serverPlatformURLRoot,
int maxPageSize,
AuditLog auditLog)
Create a new client with no authentication embedded in the HTTP request.
|
SubjectAreaManager(String serverName,
String serverPlatformURLRoot,
String userId,
String password)
Create a new client that passes userId and password in each HTTP request.
|
SubjectAreaManager(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 |
createSubjectArea(String userId,
SubjectAreaProperties properties)
Create a definition of a subject area.
|
void |
deleteSubjectArea(String userId,
String subjectAreaGUID)
Remove the definition of a subject area.
|
SubjectAreaElement |
getSubjectAreaByGUID(String userId,
String subjectAreaGUID)
Return information about a specific subject area.
|
SubjectAreaElement |
getSubjectAreaByName(String userId,
String qualifiedName)
Return information about a specific subject area.
|
SubjectAreaDefinition |
getSubjectAreaDefinitionByGUID(String userId,
String subjectAreaGUID)
Return information about a specific subject area and its linked governance definitions.
|
List<SubjectAreaElement> |
getSubjectAreasForDomain(String userId,
int domainIdentifier,
int startFrom,
int pageSize)
Return information about the defined subject areas.
|
void |
linkSubjectAreasInHierarchy(String userId,
String parentSubjectAreaGUID,
String childSubjectAreaGUID)
Link two related subject areas together as part of a hierarchy.
|
void |
linkSubjectAreaToGovernanceDefinition(String userId,
String subjectAreaGUID,
String definitionGUID)
Link a subject area to a governance definition that controls how the definitions in the subject area should be governed.
|
void |
unlinkSubjectAreaFromGovernanceDefinition(String userId,
String subjectAreaGUID,
String definitionGUID)
Remove the link between a subject area and a governance definition.
|
void |
unlinkSubjectAreasInHierarchy(String userId,
String parentSubjectAreaGUID,
String childSubjectAreaGUID)
Remove the link between two subject areas in the subject area hierarchy.
|
void |
updateSubjectArea(String userId,
String subjectAreaGUID,
boolean isMergeUpdate,
SubjectAreaProperties properties)
Update the definition of a subject area.
|
public SubjectAreaManager(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 SubjectAreaManager(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 SubjectAreaManager(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 SubjectAreaManager(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 SubjectAreaManager(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 createSubjectArea(String userId, SubjectAreaProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
createSubjectArea in interface SubjectAreasInterfaceuserId - calling userproperties - properties for a subject areaInvalidParameterException - qualifiedName or userId is null; qualifiedName is not uniquePropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void updateSubjectArea(String userId, String subjectAreaGUID, boolean isMergeUpdate, SubjectAreaProperties properties) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
updateSubjectArea in interface SubjectAreasInterfaceuserId - calling usersubjectAreaGUID - unique identifier of subject areaisMergeUpdate - are unspecified properties unchanged (true) or replaced with null?properties - properties to changeInvalidParameterException - guid, qualifiedName or userId is null; qualifiedName is not unique; guid is not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void deleteSubjectArea(String userId, String subjectAreaGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
deleteSubjectArea in interface SubjectAreasInterfaceuserId - calling usersubjectAreaGUID - unique identifier of subject areaInvalidParameterException - guid or userId is null; guid is not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void linkSubjectAreasInHierarchy(String userId, String parentSubjectAreaGUID, String childSubjectAreaGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
linkSubjectAreasInHierarchy in interface SubjectAreasInterfaceuserId - calling userparentSubjectAreaGUID - unique identifier of the parent subject areachildSubjectAreaGUID - unique identifier of the child subject areaInvalidParameterException - one of the guids is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemPropertyServerExceptionpublic void unlinkSubjectAreasInHierarchy(String userId, String parentSubjectAreaGUID, String childSubjectAreaGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
unlinkSubjectAreasInHierarchy in interface SubjectAreasInterfaceuserId - calling userparentSubjectAreaGUID - unique identifier of the parent subject areachildSubjectAreaGUID - unique identifier of the child subject areaInvalidParameterException - one of the guids is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void linkSubjectAreaToGovernanceDefinition(String userId, String subjectAreaGUID, String definitionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
linkSubjectAreaToGovernanceDefinition in interface SubjectAreasInterfaceuserId - calling usersubjectAreaGUID - unique identifier of the subject areadefinitionGUID - unique identifier of the governance definitionInvalidParameterException - one of the guids is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic void unlinkSubjectAreaFromGovernanceDefinition(String userId, String subjectAreaGUID, String definitionGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
unlinkSubjectAreaFromGovernanceDefinition in interface SubjectAreasInterfaceuserId - calling usersubjectAreaGUID - unique identifier of the subject areadefinitionGUID - unique identifier of the governance definitionInvalidParameterException - one of the guids is null or not knownPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic SubjectAreaElement getSubjectAreaByGUID(String userId, String subjectAreaGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getSubjectAreaByGUID in interface SubjectAreasInterfaceuserId - calling usersubjectAreaGUID - unique identifier for the subject areaInvalidParameterException - subjectAreaGUID or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic SubjectAreaElement getSubjectAreaByName(String userId, String qualifiedName) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getSubjectAreaByName in interface SubjectAreasInterfaceuserId - calling userqualifiedName - unique name for the subject areaInvalidParameterException - qualifiedName or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic List<SubjectAreaElement> getSubjectAreasForDomain(String userId, int domainIdentifier, int startFrom, int pageSize) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getSubjectAreasForDomain in interface SubjectAreasInterfaceuserId - calling userdomainIdentifier - identifier for the desired governance domain - zero for allstartFrom - paging start pointpageSize - maximum results that can be returnedInvalidParameterException - qualifiedName or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problempublic SubjectAreaDefinition getSubjectAreaDefinitionByGUID(String userId, String subjectAreaGUID) throws InvalidParameterException, UserNotAuthorizedException, PropertyServerException
getSubjectAreaDefinitionByGUID in interface SubjectAreasInterfaceuserId - calling usersubjectAreaGUID - unique identifier for the subject areaInvalidParameterException - subjectAreaGUID or userId is nullPropertyServerException - problem accessing property serverUserNotAuthorizedException - security access problemCopyright © 2018–2021 LF AI & Data Foundation. All rights reserved.