Class AbstractSubjectArea<T>

java.lang.Object
org.odpi.openmetadata.accessservices.subjectarea.client.AbstractSubjectArea<T>
All Implemented Interfaces:
SubjectAreaClient<T>, org.odpi.openmetadata.commonservices.ffdc.rest.ResponseParameterization<T>
Direct Known Subclasses:
AbstractSubjectAreaNode, AbstractSubjectAreaRelationship

public abstract class AbstractSubjectArea<T> extends Object implements SubjectAreaClient<T>, org.odpi.openmetadata.commonservices.ffdc.rest.ResponseParameterization<T>
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
     
    static final String
     

    Fields inherited from interface org.odpi.openmetadata.accessservices.subjectarea.client.SubjectAreaClient

    EMPTY_FIND_REQUEST
  • Method Summary

    Modifier and Type
    Method
    Description
    create(String userId, T supplied)
    Create a Glossary Artifact.
    void
    delete(String userId, String guid)
    Delete a Glossary Artifact.
    find(String userId, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.FindRequest findRequest)
    Request to find Glossary Artifacts of the type T.
    find(String userId, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.FindRequest findRequest, boolean exactValue, boolean ignoreCase)
    Request to find Glossary Artifacts of the type T.
    find(String userId, org.odpi.openmetadata.accessservices.subjectarea.properties.objects.common.FindRequest findRequest, boolean exactValue, boolean ignoreCase, Integer maximumPageSizeOnRestCall)
    Request to find Glossary Artifacts of the type T.
    getByGUID(String userId, String guid)
    Get Glossary Artifact by guid
    Class<? extends org.odpi.openmetadata.commonservices.ffdc.rest.GenericResponse>
     
    restore(String userId, String guid)
    Restore of a soft deleted Glossary Artifact.
    update(String userId, String guid, T supplied, boolean isReplace)
    Update or replace a Glossary Artifact.

    Methods inherited from class java.lang.Object

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.odpi.openmetadata.commonservices.ffdc.rest.ResponseParameterization

    getParameterizedType, resultType

    Methods inherited from interface org.odpi.openmetadata.accessservices.subjectarea.client.SubjectAreaClient

    findAll, findAll, replace, update
  • Field Details

  • Method Details

    • getByGUID

      public T 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: SubjectAreaClient
      Get Glossary Artifact by guid
      Specified by:
      getByGUID in interface SubjectAreaClient<T>
      Parameters:
      userId - unique identifier for requesting user, under which the request is performed.
      guid - unique identifier of the Glossary Artifact.
      Returns:
      found Glossary Artifact of the T type.
      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.
    • create

      public T create(String userId, T supplied) 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: SubjectAreaClient
      Create a Glossary Artifact. To create, you must pass the created object and specify a unique user identifier.
      Specified by:
      create in interface SubjectAreaClient<T>
      Parameters:
      userId - unique identifier for requesting user, under which the request is performed.
      supplied - Glossary Artifact to create.
      Returns:
      created Glossary Artifact.
      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.
    • find

      public List<T> 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
      Description copied from interface: SubjectAreaClient
      Request to find Glossary Artifacts of the type T.
      Specified by:
      find in interface SubjectAreaClient<T>
      Parameters:
      userId - unique identifier for requesting user, under which the request is performed.
      findRequest - information Glossary Artifact for find calls.
      Returns:
      list Glossary Artifacts of the T type relevant in the findRequest information.
      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.
    • find

      public List<T> 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
      Description copied from interface: SubjectAreaClient
      Request to find Glossary Artifacts of the type T.
      Specified by:
      find in interface SubjectAreaClient<T>
      Parameters:
      userId - unique identifier for requesting user, under which the request is performed.
      findRequest - information Glossary Artifact for find calls.
      exactValue - should the result match exactly?
      ignoreCase - should the match be case insensitive?
      Returns:
      list Glossary Artifacts of the T type relevant in the findRequest information.
      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.
    • find

      public List<T> 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
      Description copied from interface: SubjectAreaClient
      Request to find Glossary Artifacts of the type T. The downstream server is likely to have a maximum Page Size is will accept, the client can interrogate this value and include it on the maximumPageSizeOnRestCall parameter. This API will ensure will issue multiple rest calls if required to ensure requests only request the supported max page size.
      Specified by:
      find in interface SubjectAreaClient<T>
      Parameters:
      userId - unique identifier for requesting user, under which the request is performed.
      findRequest - information Glossary Artifact for find calls.
      exactValue - exactValue - when false values with trailing characters will match
      ignoreCase - ignore the case when matching
      maximumPageSizeOnRestCall - maximum page size that can be used on rest calls, null and 0 mean no limit set.
      Returns:
      list Glossary Artifacts of the T type relevant in the findRequest information.
      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.
    • update

      public T update(String userId, String guid, T supplied, boolean isReplace) 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: SubjectAreaClient
      Update or replace a Glossary Artifact.
      Specified by:
      update in interface SubjectAreaClient<T>
      Parameters:
      userId - unique identifier for requesting user, under which the request is performed.
      guid - unique identifier of the Glossary Artifact.
      supplied - Glossary Artifact to be updated or replaced.
      isReplace - flag to indicate that this update is a replace.
      Returns:
      updated Glossary Artifact.
      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.
    • delete

      public void delete(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: SubjectAreaClient
      Delete a Glossary Artifact.
      Specified by:
      delete in interface SubjectAreaClient<T>
      Parameters:
      userId - unique identifier for requesting user, under which the request is performed.
      guid - unique identifier of the Glossary Artifact.
      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.
    • restore

      public T restore(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: SubjectAreaClient
      Restore of a soft deleted Glossary Artifact.
      Specified by:
      restore in interface SubjectAreaClient<T>
      Parameters:
      userId - unique identifier for requesting user, under which the request is performed.
      guid - unique identifier of the Glossary Artifact.
      Returns:
      restored glossary Artifact
      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.
    • responseType

      public Class<? extends org.odpi.openmetadata.commonservices.ffdc.rest.GenericResponse> responseType()
      Specified by:
      responseType in interface org.odpi.openmetadata.commonservices.ffdc.rest.ResponseParameterization<T>