Class GlossaryAuthorViewSubjectAreaDefinitionCategoryClient
java.lang.Object
org.odpi.openmetadata.viewservices.glossaryauthor.fvt.client.subjectAreaDefinitionCategory.GlossaryAuthorViewSubjectAreaDefinitionCategoryClient
- All Implemented Interfaces:
ResponseParameterization<SubjectAreaDefinition>
,GlossaryAuthorViewSubjectAreaDefinitionCategory
public class GlossaryAuthorViewSubjectAreaDefinitionCategoryClient
extends Object
implements GlossaryAuthorViewSubjectAreaDefinitionCategory, ResponseParameterization<SubjectAreaDefinition>
The class acts as a wrapper class for calling the REST services for Glossary Author SubjectAreaDefinition related services.
-
Field Summary
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptioncreate
(String userId, SubjectAreaDefinition subjectAreaDefinition) Create a subjectAreaDefinition.<T> T
createRel
(String userId, T t, org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type, String relType) createSynonym
(String userId, Synonym synonym) void
Delete a SubjectAreaDefinition.<T> void
deleteRel
(String userId, String guid, org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type, String relType) find
(String userId, FindRequest findRequest, boolean exactValue, boolean ignoreCase) Extract children within a SubjectAreaDefinitionFind CategoryGet a SubjectAreaDefinition.getCategories
(String userId, String termGuid, FindRequest findRequest) Extract categories for a SubjectAreaDefinitiongetCategoryChildren
(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) <T> T
getRel
(String userId, String guid, org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type, String relType) getSynonym
(String userId, String guid) getViewServiceConfigs
(String userId) Get list of view service config on the server<T> T
replaceRel
(String userId, String guid, T t, org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type, String relType, boolean isReplace) Class<? extends GenericResponse>
Restore a soft-deleted SubjectAreaDefinition.<T> T
restoreRel
(String userId, String guid, org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type, String relType) update
(String userId, String guid, SubjectAreaDefinition subjectAreaDefinition, boolean isReplace) Update a SubjectAreaDefinition.<T> T
updateRel
(String userId, String guid, T t, org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type, String relType, boolean isReplace) updateSynonym
(String userId, String guid, Synonym updateSynonym, boolean isReplace) 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
-
GlossaryAuthorViewSubjectAreaDefinitionCategoryClient
-
-
Method Details
-
getMethodInfo
-
create
public SubjectAreaDefinition create(String userId, SubjectAreaDefinition subjectAreaDefinition) throws PropertyServerException, InvalidParameterException, UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewSubjectAreaDefinitionCategory
Create a subjectAreaDefinition.The result is the subjectAreaDefinition object
- Specified by:
create
in interfaceGlossaryAuthorViewSubjectAreaDefinitionCategory
- Parameters:
userId
- userId under which the request is performedsubjectAreaDefinition
- SubjectAreaDefinition object to be created- Returns:
- The SubjectAreaDefinition
- 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 SubjectAreaDefinition update(String userId, String guid, SubjectAreaDefinition subjectAreaDefinition, boolean isReplace) throws PropertyServerException, InvalidParameterException, UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewSubjectAreaDefinitionCategory
Update a SubjectAreaDefinition.The result is the updated Glossary object
- Specified by:
update
in interfaceGlossaryAuthorViewSubjectAreaDefinitionCategory
- Parameters:
userId
- userId under which the request is performedguid
- guid of Glossary object to be updatedsubjectAreaDefinition
- Glossary object with updated valuesisReplace
- If the object is to be replaced- Returns:
- The updated SubjectAreaDefinition
- 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:GlossaryAuthorViewSubjectAreaDefinitionCategory
Delete a SubjectAreaDefinition.The result Void object
- Specified by:
delete
in interfaceGlossaryAuthorViewSubjectAreaDefinitionCategory
- Parameters:
userId
- userId under which the request is performedguid
- guid of SubjectAreaDefinition object to be retrieved- Throws:
PropertyServerException
- something went wrong with the REST call stack.
-
restore
public SubjectAreaDefinition restore(String userId, String guid) throws PropertyServerException, InvalidParameterException, UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewSubjectAreaDefinitionCategory
Restore a soft-deleted SubjectAreaDefinition.The result is the restored SubjectAreaDefinition object
- Specified by:
restore
in interfaceGlossaryAuthorViewSubjectAreaDefinitionCategory
- Parameters:
userId
- userId under which the request is performedguid
- guid of SubjectAreaDefinition object to be restored- Returns:
- The restored SubjectAreaDefinition
- 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:GlossaryAuthorViewSubjectAreaDefinitionCategory
Extract children within a Category- Specified by:
getCategoryChildren
in interfaceGlossaryAuthorViewSubjectAreaDefinitionCategory
- 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<SubjectAreaDefinition> findAll(String userId) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewSubjectAreaDefinitionCategory
Find Category- Specified by:
findAll
in interfaceGlossaryAuthorViewSubjectAreaDefinitionCategory
- 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 SubjectAreaDefinition getByGUID(String userId, String guid) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewSubjectAreaDefinitionCategory
Get a SubjectAreaDefinition.The result is the requested SubjectAreaDefinition object
- Specified by:
getByGUID
in interfaceGlossaryAuthorViewSubjectAreaDefinitionCategory
- Parameters:
userId
- userId under which the request is performedguid
- guid of SubjectAreaDefinition object to be retrieved- Returns:
- The requested SubjectAreaDefinition
- 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<SubjectAreaDefinition> find(String userId, FindRequest findRequest, boolean exactValue, boolean ignoreCase) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewSubjectAreaDefinitionCategory
Extract children within a SubjectAreaDefinition- Specified by:
find
in interfaceGlossaryAuthorViewSubjectAreaDefinitionCategory
- 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:GlossaryAuthorViewSubjectAreaDefinitionCategory
Extract categories for a SubjectAreaDefinition- Specified by:
getCategories
in interfaceGlossaryAuthorViewSubjectAreaDefinitionCategory
- Parameters:
userId
- calling usertermGuid
- RelationShip GUIDfindRequest
- information object for find calls. This include pageSize to limit the number of elements returned.- 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.
-
getConfig
public OMAGServerConfig getConfig(String userId) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewSubjectAreaDefinitionCategory
Get config for server- Specified by:
getConfig
in interfaceGlossaryAuthorViewSubjectAreaDefinitionCategory
- 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:GlossaryAuthorViewSubjectAreaDefinitionCategory
Get service config for a particular view Service- Specified by:
getGlossaryAuthViewServiceConfig
in interfaceGlossaryAuthorViewSubjectAreaDefinitionCategory
- 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.
-
getViewServiceConfigs
public List<ViewServiceConfig> getViewServiceConfigs(String userId) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException Description copied from interface:GlossaryAuthorViewSubjectAreaDefinitionCategory
Get list of view service config on the server- Specified by:
getViewServiceConfigs
in interfaceGlossaryAuthorViewSubjectAreaDefinitionCategory
- 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.
-
responseType
- Specified by:
responseType
in interfaceResponseParameterization<SubjectAreaDefinition>
- Returns:
- the response class type inherited from
GenericResponse
-
createSynonym
public Synonym createSynonym(String userId, Synonym synonym) throws PropertyServerException, InvalidParameterException, UserNotAuthorizedException -
getSynonym
public Synonym getSynonym(String userId, String guid) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException -
updateSynonym
public Synonym updateSynonym(String userId, String guid, Synonym updateSynonym, boolean isReplace) throws PropertyServerException, InvalidParameterException, UserNotAuthorizedException -
createRel
public <T> T createRel(String userId, T t, org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type, String relType) throws PropertyServerException, InvalidParameterException, UserNotAuthorizedException -
getRel
public <T> T getRel(String userId, String guid, org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type, String relType) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException -
updateRel
public <T> T updateRel(String userId, String guid, T t, org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type, String relType, boolean isReplace) throws PropertyServerException, InvalidParameterException, UserNotAuthorizedException -
replaceRel
public <T> T replaceRel(String userId, String guid, T t, org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type, String relType, boolean isReplace) throws PropertyServerException, InvalidParameterException, UserNotAuthorizedException -
deleteRel
public <T> void deleteRel(String userId, String guid, org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type, String relType) throws PropertyServerException - Throws:
PropertyServerException
-
restoreRel
public <T> T restoreRel(String userId, String guid, org.springframework.core.ParameterizedTypeReference<GenericResponse<T>> type, String relType) throws PropertyServerException, InvalidParameterException, UserNotAuthorizedException
-