Class DefaultSubjectAreaNodeClients
- java.lang.Object
-
- org.odpi.openmetadata.accessservices.subjectarea.client.nodes.DefaultSubjectAreaNodeClients
-
- All Implemented Interfaces:
SubjectAreaNodeClients
public class DefaultSubjectAreaNodeClients extends Object implements SubjectAreaNodeClients
The OMAS client library implementation of the Subject Area OMAS. This interface provides entitiesNodeauthoring interface for subject area experts.
-
-
Constructor Summary
Constructors Constructor Description DefaultSubjectAreaNodeClients(SubjectAreaRestClient subjectAreaRestClient)The constructor uses the current package to scan "org.odpi.openmetadata.accessservices.subjectarea.client.nodes" to search for classes placed by annotationSubjectAreaNodeClient.DefaultSubjectAreaNodeClients(SubjectAreaRestClient subjectAreaRestClient, String... packagesToScan)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <C extends Category>
SubjectAreaNodeClient<C>categories()Get the subject area category API class - use this class to issue category calls.<T extends Node>
SubjectAreaNodeClient<T>getClient(Class<T> clazz)<G extends Glossary>
SubjectAreaNodeClient<G>glossaries()Get the subject area glossary API class - use this class to issue glossary calls.<P extends Project>
SubjectAreaProjectClient<P>projects()Get the subject area project API class - use this class to issue project calls.<T extends Term>
SubjectAreaNodeClient<T>terms()Get the subject area term API class - use this class to issue term calls.
-
-
-
Constructor Detail
-
DefaultSubjectAreaNodeClients
public DefaultSubjectAreaNodeClients(SubjectAreaRestClient subjectAreaRestClient, String... packagesToScan)
- Parameters:
packagesToScan- - search packages for finding classes placed by annotationSubjectAreaNodeClientsubjectAreaRestClient- - rest client for Subject Area OMAS REST APIs
-
DefaultSubjectAreaNodeClients
public DefaultSubjectAreaNodeClients(SubjectAreaRestClient subjectAreaRestClient)
The constructor uses the current package to scan "org.odpi.openmetadata.accessservices.subjectarea.client.nodes" to search for classes placed by annotationSubjectAreaNodeClient.- Parameters:
subjectAreaRestClient- - rest client for Subject Area OMAS REST APIs
-
-
Method Detail
-
glossaries
public <G extends Glossary> SubjectAreaNodeClient<G> glossaries()
Description copied from interface:SubjectAreaNodeClientsGet the subject area glossary API class - use this class to issue glossary calls.- Specified by:
glossariesin interfaceSubjectAreaNodeClients- Type Parameters:
G- type for supplied and return.- Returns:
- subject area glossary API class
-
terms
public <T extends Term> SubjectAreaNodeClient<T> terms()
Description copied from interface:SubjectAreaNodeClientsGet the subject area term API class - use this class to issue term calls.- Specified by:
termsin interfaceSubjectAreaNodeClients- Type Parameters:
T- type for supplied and return.- Returns:
- subject area term API class
-
categories
public <C extends Category> SubjectAreaNodeClient<C> categories()
Description copied from interface:SubjectAreaNodeClientsGet the subject area category API class - use this class to issue category calls.- Specified by:
categoriesin interfaceSubjectAreaNodeClients- Type Parameters:
C- type for supplied and return.- Returns:
- subject area category API class
-
projects
public <P extends Project> SubjectAreaProjectClient<P> projects()
Description copied from interface:SubjectAreaNodeClientsGet the subject area project API class - use this class to issue project calls.- Specified by:
projectsin interfaceSubjectAreaNodeClients- Type Parameters:
P- type for supplied and return.- Returns:
- subject area project API class
-
getClient
public <T extends Node> SubjectAreaNodeClient<T> getClient(Class<T> clazz)
- Type Parameters:
T- -Relationshiptype of object- Parameters:
clazz- - the class for which you want to get the client from cache- Returns:
- SubjectAreaNodeClient or null if this client is not present
-
-