Class GlossaryAuthorViewTermClient
java.lang.Object
org.odpi.openmetadata.viewservices.glossaryauthor.fvt.client.term.GlossaryAuthorViewTermClient
- All Implemented Interfaces:
ResponseParameterization<Term>
,GlossaryAuthorViewTerm
public class GlossaryAuthorViewTermClient
extends Object
implements GlossaryAuthorViewTerm, ResponseParameterization<Term>
The class acts as a wrapper class for calling the REST services for Glossary Author Term related services.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreate a Term.void
Delete a Term.find
(String userId, FindRequest findRequest, boolean exactValue, boolean ignoreCase) Extract children within a TermFind TermsgetAllRelationships
(String userId, String guid) Get a Term's relationshipsGet a Term.getCategories
(String userId, String termGuid, FindRequest findRequest) Extract Categories for a termgetCategoryChildren
(String userId, String parentGuid, FindRequest findRequest, boolean exactValue, boolean ignoreCase) Extract children within a CategoryGet config for serverGet service config for a particular view Serviceprotected String
getMethodInfo
(String methodName) getRelationships
(String userId, String guid, FindRequest findRequest) Extract Relationships for a termgetViewServiceConfigs
(String userId) Get list of view service config on the serverClass<? extends GenericResponse>
Restore a soft-deleted Term.Update a Term.Update a Term.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.odpi.openmetadata.commonservices.ffdc.rest.ResponseParameterization
getParameterizedType, resultType
-
Field Details
-
client
-
-
Constructor Details
-
GlossaryAuthorViewTermClient
-
-
Method Details
-
getMethodInfo
-
create
public Term create(String userId, Term term) throws PropertyServerException, InvalidParameterException, UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewTerm
Create a Term.The result is the Term object
- Specified by:
create
in interfaceGlossaryAuthorViewTerm
- Parameters:
userId
- userId under which the request is performedterm
- Term object to be created- Returns:
- The Term
- Throws:
PropertyServerException
- something went wrong with the REST call stack.InvalidParameterException
- one of the parameters is null or invalidUserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
update
public Term update(String userId, String guid, Term term) throws PropertyServerException, InvalidParameterException, UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewTerm
Update a Term.The result is the updated Glossary object
- Specified by:
update
in interfaceGlossaryAuthorViewTerm
- Parameters:
userId
- userId under which the request is performedguid
- guid of Glossary object to be updatedterm
- Glossary object with updated values- Returns:
- The updated Term
- Throws:
PropertyServerException
- something went wrong with the REST call stack.InvalidParameterException
- one of the parameters is null or invalidUserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
update
public Term update(String userId, String guid, Term term, boolean isReplace) throws PropertyServerException, InvalidParameterException, UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewTerm
Update a Term.The result is the updated Glossary object
- Specified by:
update
in interfaceGlossaryAuthorViewTerm
- Parameters:
userId
- userId under which the request is performedguid
- guid of Glossary object to be updatedterm
- Glossary object with updated valuesisReplace
- If the object is to be replaced- Returns:
- The updated Term
- Throws:
PropertyServerException
- something went wrong with the REST call stack.InvalidParameterException
- one of the parameters is null or invalidUserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
delete
Description copied from interface:GlossaryAuthorViewTerm
Delete a Term.The result Void object
- Specified by:
delete
in interfaceGlossaryAuthorViewTerm
- Parameters:
userId
- userId under which the request is performedguid
- guid of Term object to be retrieved- Throws:
PropertyServerException
- something went wrong with the REST call stack.
-
restore
public Term restore(String userId, String guid) throws PropertyServerException, InvalidParameterException, UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewTerm
Restore a soft-deleted Term.The result is the restored Term object
- Specified by:
restore
in interfaceGlossaryAuthorViewTerm
- Parameters:
userId
- userId under which the request is performedguid
- guid of Term object to be restored- Returns:
- The restored Term
- Throws:
PropertyServerException
- something went wrong with the REST call stack.InvalidParameterException
- one of the parameters is null or invalidUserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getCategoryChildren
public List<Category> getCategoryChildren(String userId, String parentGuid, FindRequest findRequest, boolean exactValue, boolean ignoreCase) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewTerm
Extract children within a Category- Specified by:
getCategoryChildren
in interfaceGlossaryAuthorViewTerm
- Parameters:
userId
- calling userparentGuid
- Category GUIDfindRequest
- information object for find calls. This include pageSize to limit the number of elements returned.exactValue
- exactValue - when false values with trailing characters will match.ignoreCase
- ignore the case when matching.- Returns:
- list of Categories
- Throws:
InvalidParameterException
- one of the parameters is null or invalidPropertyServerException
- something went wrong with the REST call stack.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
findAll
public List<Term> findAll(String userId) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewTerm
Find Terms- Specified by:
findAll
in interfaceGlossaryAuthorViewTerm
- Parameters:
userId
- calling user- Returns:
- Categories belonging to Userid
- Throws:
InvalidParameterException
- one of the parameters is null or invalidPropertyServerException
- something went wrong with the REST call stack.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getByGUID
public Term getByGUID(String userId, String guid) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewTerm
Get a Term.The result is the requested Term object
- Specified by:
getByGUID
in interfaceGlossaryAuthorViewTerm
- Parameters:
userId
- userId under which the request is performedguid
- guid of Term object to be retrieved- Returns:
- The requested Term
- Throws:
InvalidParameterException
- one of the parameters is null or invalidPropertyServerException
- something went wrong with the REST call stack.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
find
public List<Term> find(String userId, FindRequest findRequest, boolean exactValue, boolean ignoreCase) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewTerm
Extract children within a Term- Specified by:
find
in interfaceGlossaryAuthorViewTerm
- Parameters:
userId
- calling userfindRequest
- information object for find calls. This include pageSize to limit the number of elements returned.exactValue
- exactValue - when false values with trailing characters will match.ignoreCase
- ignore the case when matching.- Returns:
- list of Categories
- Throws:
InvalidParameterException
- one of the parameters is null or invalidPropertyServerException
- something went wrong with the REST call stack.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getCategories
public List<Category> getCategories(String userId, String termGuid, FindRequest findRequest) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewTerm
Extract Categories for a term- Specified by:
getCategories
in interfaceGlossaryAuthorViewTerm
- Parameters:
userId
- calling usertermGuid
- GUID for the termfindRequest
- information object for find calls. This include pageSize to limit the number of elements returned.- Returns:
- list of Relationships
- Throws:
InvalidParameterException
- one of the parameters is null or invalidPropertyServerException
- something went wrong with the REST call stack.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getConfig
public OMAGServerConfig getConfig(String userId) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewTerm
Get config for server- Specified by:
getConfig
in interfaceGlossaryAuthorViewTerm
- Parameters:
userId
- calling user- Returns:
- Config for view server
- Throws:
InvalidParameterException
- one of the parameters is null or invalidPropertyServerException
- something went wrong with the REST call stack.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getGlossaryAuthViewServiceConfig
public ViewServiceConfig getGlossaryAuthViewServiceConfig(String userId) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewTerm
Get service config for a particular view Service- Specified by:
getGlossaryAuthViewServiceConfig
in interfaceGlossaryAuthorViewTerm
- Parameters:
userId
- calling user- Returns:
- Config for view server
- Throws:
InvalidParameterException
- one of the parameters is null or invalidPropertyServerException
- something went wrong with the REST call stack.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getRelationships
public List<Relationship> getRelationships(String userId, String guid, FindRequest findRequest) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewTerm
Extract Relationships for a term- Specified by:
getRelationships
in interfaceGlossaryAuthorViewTerm
- Parameters:
userId
- calling userguid
- GUID for the termfindRequest
- information object for find calls. This include pageSize to limit the number of elements returned.- Returns:
- list of Relationships
- Throws:
InvalidParameterException
- one of the parameters is null or invalidPropertyServerException
- something went wrong with the REST call stack.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getViewServiceConfigs
public List<ViewServiceConfig> getViewServiceConfigs(String userId) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewTerm
Get list of view service config on the server- Specified by:
getViewServiceConfigs
in interfaceGlossaryAuthorViewTerm
- Parameters:
userId
- calling user- Returns:
- Config for view server
- Throws:
InvalidParameterException
- one of the parameters is null or invalidPropertyServerException
- something went wrong with the REST call stack.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
getAllRelationships
public List<Relationship> getAllRelationships(String userId, String guid) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewTerm
Get a Term's relationshipsThe result is a list of Relationships
- Specified by:
getAllRelationships
in interfaceGlossaryAuthorViewTerm
- Parameters:
userId
- userId under which the request is performedguid
- guid of Term object to be retrieved- Returns:
- The list of Term relationships
- Throws:
InvalidParameterException
- one of the parameters is null or invalidPropertyServerException
- something went wrong with the REST call stack.UserNotAuthorizedException
- the requesting user is not authorized to issue this request.
-
responseType
- Specified by:
responseType
in interfaceResponseParameterization<Term>
- Returns:
- the response class type inherited from
GenericResponse
-