Class GlossaryAuthorViewGlossaryClient
java.lang.Object
org.odpi.openmetadata.viewservices.glossaryauthor.fvt.client.glossarys.GlossaryAuthorViewGlossaryClient
- All Implemented Interfaces:
org.odpi.openmetadata.commonservices.ffdc.rest.ResponseParameterization<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossary>,GlossaryAuthorViewGlossary
public class GlossaryAuthorViewGlossaryClient
extends Object
implements GlossaryAuthorViewGlossary, org.odpi.openmetadata.commonservices.ffdc.rest.ResponseParameterization<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossary>
The class acts as a wrapper class for calling the REST services for Glossary Author Glossary related services.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossarycreate(String userId, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossary glossary) Create a Glossary.List<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term>createTerms(String userId, String guid, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term[] termArray) Create multiple terms within a glossaryvoidDelete a Glossary.List<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossary>find(String userId, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.FindRequest findRequest) List<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossary>find(String userId, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.FindRequest findRequest, boolean exactValue, boolean ignoreCase) List<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossary>find(String userId, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.FindRequest findRequest, boolean exactValue, boolean ignoreCase, Integer maximumPageSizeOnRestCall) List<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.graph.Relationship>getAllRelationships(String userId, String guid) Get a Glossary's relationshipsorg.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.GlossaryGet a Glossary.List<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.category.Category>getCategories(String userId, String guid, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.FindRequest findRequest) Get the Categories owned by this glossary.List<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.category.Category>getCategories(String userId, String guid, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.FindRequest findRequest, boolean onlyTop) Get the Categories owned by this glossary.List<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term>getTerms(String userId, String guid, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.FindRequest findRequest) Extract terms within a glossaryList<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term>getTerms(String userId, String guid, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.FindRequest findRequest, boolean exactValue, boolean ignoreCase, Integer maximumPageSizeOnRestCall) Class<? extends org.odpi.openmetadata.commonservices.ffdc.rest.GenericResponse>org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.GlossaryRestore a soft-deleted Glossary.org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossaryupdate(String userId, String guid, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossary glossary, boolean isReplace) Update a Glossary.Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.odpi.openmetadata.commonservices.ffdc.rest.ResponseParameterization
getParameterizedType, resultType
-
Constructor Details
-
GlossaryAuthorViewGlossaryClient
-
GlossaryAuthorViewGlossaryClient
public GlossaryAuthorViewGlossaryClient(String serverName, String url) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException - Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException
-
-
Method Details
-
find
public List<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossary> find(String userId, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.FindRequest findRequest) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterExceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
-
find
public List<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossary> find(String userId, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.FindRequest findRequest, boolean exactValue, boolean ignoreCase) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterExceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
-
find
public List<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossary> find(String userId, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.FindRequest findRequest, boolean exactValue, boolean ignoreCase, Integer maximumPageSizeOnRestCall) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterExceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
-
responseType
public Class<? extends org.odpi.openmetadata.commonservices.ffdc.rest.GenericResponse> responseType()- Specified by:
responseTypein interfaceorg.odpi.openmetadata.commonservices.ffdc.rest.ResponseParameterization<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossary>
-
create
public org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossary create(String userId, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossary glossary) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewGlossaryCreate a Glossary.The result is the Glossary object
- Specified by:
createin interfaceGlossaryAuthorViewGlossary- Parameters:
userId- userId under which the request is performedglossary- Glossary object to be created- Returns:
- The Glossary
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- something went wrong with the REST call stack.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
update
public org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossary update(String userId, String guid, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossary glossary, boolean isReplace) throws org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewGlossaryUpdate a Glossary.The result is the updated Glossary object
- Specified by:
updatein interfaceGlossaryAuthorViewGlossary- Parameters:
userId- userId under which the request is performedguid- guid of Glossary object to be updatedglossary- Glossary object with updated valuesisReplace- To replace existing Glossary or not- Returns:
- The updated Glossary
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- something went wrong with the REST call stack.org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
getByGUID
public org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossary getByGUID(String userId, String guid) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewGlossaryGet a Glossary.The result is the requested Glossary object
- Specified by:
getByGUIDin interfaceGlossaryAuthorViewGlossary- Parameters:
userId- userId under which the request is performedguid- guid of Glossary object to be retrieved- Returns:
- The requested Glossary
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- something went wrong with the REST call stack.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
delete
public void delete(String userId, String guid) throws org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException Description copied from interface:GlossaryAuthorViewGlossaryDelete a Glossary.The result Void object
- Specified by:
deletein interfaceGlossaryAuthorViewGlossary- Parameters:
userId- userId under which the request is performedguid- guid of Glossary object to be retrieved- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- something went wrong with the REST call stack.
-
restore
public org.odpi.openmetadata.accessservices.subjectarea.properties.objects.glossary.Glossary restore(String userId, String guid) throws org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewGlossaryRestore a soft-deleted Glossary.The result is the restored Glossary object
- Specified by:
restorein interfaceGlossaryAuthorViewGlossary- Parameters:
userId- userId under which the request is performedguid- guid of Glossary object to be restored- Returns:
- The restored Glossary
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- something went wrong with the REST call stack.org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
getAllRelationships
public List<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.graph.Relationship> getAllRelationships(String userId, String guid) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewGlossaryGet a Glossary's relationshipsThe result is a list of Relationships
- Specified by:
getAllRelationshipsin interfaceGlossaryAuthorViewGlossary- Parameters:
userId- userId under which the request is performedguid- guid of Glossary object to be retrieved- Returns:
- The list of Glossary relationships
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- something went wrong with the REST call stack.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
getCategories
public List<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.category.Category> getCategories(String userId, String guid, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.FindRequest findRequest, boolean onlyTop) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewGlossaryGet the Categories owned by this glossary.- Specified by:
getCategoriesin interfaceGlossaryAuthorViewGlossary- Parameters:
userId- unique identifier for requesting user, under which the request is performed.guid- unique identifier of the object to which the found objects should relate.findRequest- information object for find calls. This include pageSize to limit the number of elements returned.onlyTop- when only the top categories (those categories without parents) are returned.- Returns:
- list of Categories
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- something went wrong with the REST call stack.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
getCategories
public List<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.category.Category> getCategories(String userId, String guid, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.FindRequest findRequest) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewGlossaryGet the Categories owned by this glossary.- Specified by:
getCategoriesin interfaceGlossaryAuthorViewGlossary- Parameters:
userId- unique identifier for requesting user, under which the request is performed.guid- unique identifier of the object to which the found objects should relate.findRequest- information object for find calls. This include pageSize to limit the number of elements returned.- Returns:
- list of Categories
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalid.org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- something went wrong with the REST call stack.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
getTerms
public List<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term> getTerms(String userId, String guid, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.FindRequest findRequest) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewGlossaryExtract terms within a glossary- Specified by:
getTermsin interfaceGlossaryAuthorViewGlossary- Parameters:
userId- calling userguid- glossary GUIDfindRequest- information object for find calls. This include pageSize to limit the number of elements returned.- Returns:
- list of terms
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- something went wrong with the REST call stack.org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
createTerms
public List<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term> createTerms(String userId, String guid, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term[] termArray) throws org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewGlossaryCreate multiple terms within a glossary- Specified by:
createTermsin interfaceGlossaryAuthorViewGlossary- Parameters:
userId- calling userguid- glossary GUIDtermArray- array of glossary objects that are to be created.- Returns:
- list of terms created
- Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException- something went wrong with the REST call stack.org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException- one of the parameters is null or invalidorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException- the requesting user is not authorized to issue this request.
-
getTerms
public List<org.odpi.openmetadata.accessservices.subjectarea.properties.objects.term.Term> getTerms(String userId, String guid, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.FindRequest findRequest, boolean exactValue, boolean ignoreCase, Integer maximumPageSizeOnRestCall) throws org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterException, org.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerException, org.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException - Throws:
org.odpi.openmetadata.frameworks.connectors.ffdc.InvalidParameterExceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.PropertyServerExceptionorg.odpi.openmetadata.frameworks.connectors.ffdc.UserNotAuthorizedException
-