public abstract class AbstractSubjectArea<T> extends Object implements SubjectAreaClient<T>, Parametrization<T>
| Modifier and Type | Field and Description |
|---|---|
static String |
BASE_RELATIONSHIPS_URL |
protected String |
BASE_URL |
protected SubjectAreaRestClient |
client |
static String |
SUBJECT_AREA_BASE_URL |
EMPTY_FIND_REQUEST| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSubjectArea(SubjectAreaRestClient client,
String baseUrl) |
| Modifier and Type | Method and Description |
|---|---|
T |
create(String userId,
T supplied)
Create a Glossary Artifact.
|
void |
delete(String userId,
String guid,
boolean isPurge)
Delete a Glossary Artifact.
|
List<T> |
find(String userId,
FindRequest findRequest)
Request to find Glossary Artifacts of the type T.
|
T |
getByGUID(String userId,
String guid)
Get Glossary Artifact by guid
|
protected String |
getMethodInfo(String methodName) |
T |
restore(String userId,
String guid)
Restore of a soft deleted Glossary Artifact.
|
T |
update(String userId,
String guid,
T supplied,
boolean isReplace)
Update or replace a Glossary Artifact.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, findAll, purge, replace, updategetParametrizedType, typepublic static final String SUBJECT_AREA_BASE_URL
public static final String BASE_RELATIONSHIPS_URL
protected final String BASE_URL
protected final SubjectAreaRestClient client
protected AbstractSubjectArea(SubjectAreaRestClient client, String baseUrl)
public T getByGUID(String userId, String guid) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
SubjectAreaClientgetByGUID in interface SubjectAreaClient<T>userId - unique identifier for requesting user, under which the request is performed.guid - unique identifier of the Glossary Artifact.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public T create(String userId, T supplied) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
SubjectAreaClientcreate in interface SubjectAreaClient<T>userId - unique identifier for requesting user, under which the request is performed.supplied - Glossary Artifact to create.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public List<T> find(String userId, FindRequest findRequest) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
SubjectAreaClientfind in interface SubjectAreaClient<T>userId - unique identifier for requesting user, under which the request is performed.findRequest - information Glossary Artifact for find calls.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public T update(String userId, String guid, T supplied, boolean isReplace) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
SubjectAreaClientupdate in interface SubjectAreaClient<T>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.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public void delete(String userId, String guid, boolean isPurge) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
SubjectAreaClientdelete in interface SubjectAreaClient<T>userId - unique identifier for requesting user, under which the request is performed.guid - unique identifier of the Glossary Artifact.isPurge - true indicates a hard delete, false is a soft delete.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.public T restore(String userId, String guid) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
SubjectAreaClientrestore in interface SubjectAreaClient<T>userId - unique identifier for requesting user, under which the request is performed.guid - unique identifier of the Glossary Artifact.InvalidParameterException - one of the parameters is null or invalid.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.Copyright © 2018–2020 ODPi. All rights reserved.