T - Glossary Artifact type for supplied and return.
Interface describing common methods to client working with Subject area resources.
This is the Subject Area client API, for use by the subject area expert.
This API exposes SCRUD (search, create, read ,update, delete) operations that can be performed on a Glossary Artifact.public interface SubjectAreaClient<T>
| Modifier and Type | Field and Description |
|---|---|
static FindRequest |
EMPTY_FIND_REQUEST |
| Modifier and Type | Method and Description |
|---|---|
T |
create(String userId,
T supplied)
Create a Glossary Artifact.
|
default void |
delete(String userId,
String guid)
Soft delete 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.
|
List<T> |
find(String userId,
FindRequest findRequest,
Integer maximumPageSizeOnRestCall)
Request to find Glossary Artifacts of the type T.
|
default List<T> |
findAll(String userId)
Request to find all Glossary Artifacts of the type T.
|
default List<T> |
findAll(String userId,
Integer maximumPageSizeOnRestCall)
Request to find all Glossary Artifacts of the type T.
|
T |
getByGUID(String userId,
String guid)
Get Glossary Artifact by guid
|
default void |
purge(String userId,
String guid)
Purge a Glossary Artifact.
|
default T |
replace(String userId,
String guid,
T supplied)
Replace a Glossary Artifact.
|
T |
restore(String userId,
String guid)
Restore of a soft deleted Glossary Artifact.
|
default T |
update(String userId,
String guid,
T supplied)
Update a Glossary Artifact.
|
T |
update(String userId,
String guid,
T supplied,
boolean isReplace)
Update or replace a Glossary Artifact.
|
static final FindRequest EMPTY_FIND_REQUEST
T getByGUID(String userId, String guid) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - unique identifier for requesting user, under which the request is performed.guid - unique identifier of the Glossary Artifact.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.T create(String userId, T supplied) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - unique identifier for requesting user, under which the request is performed.supplied - Glossary Artifact to create.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.default List<T> findAll(String userId) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - unique identifier for requesting user, under which the request is performed.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.default List<T> findAll(String userId, Integer maximumPageSizeOnRestCall) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - unique identifier for requesting user, under which the request is performed.maximumPageSizeOnRestCall - maximum page size that can be used on rest calls, null and 0 mean no limit set.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.List<T> find(String userId, FindRequest findRequest) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - unique identifier for requesting user, under which the request is performed.findRequest - information Glossary Artifact for find calls.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.List<T> find(String userId, FindRequest findRequest, Integer maximumPageSizeOnRestCall) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
userId - unique identifier for requesting user, under which the request is performed.findRequest - information Glossary Artifact for find calls.maximumPageSizeOnRestCall - maximum page size that can be used on rest calls, null and 0 mean no limit set.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.T update(String userId, String guid, T supplied, boolean isReplace) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
guid - unique identifier of the Glossary Artifact.userId - unique identifier for requesting user, under which the request is performed.supplied - Glossary Artifact to be updated or replaced.isReplace - flag to indicate that this update is a replace.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.default T replace(String userId, String guid, T supplied) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
guid - unique identifier of the Glossary Artifact.userId - unique identifier for requesting user, under which the request is performed.supplied - Glossary Artifact to be replaced.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.default T update(String userId, String guid, T supplied) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
guid - unique identifier of the Glossary Artifact.userId - unique identifier for requesting user, under which the request is performed.supplied - Glossary Artifact to be updated.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.void delete(String userId, String guid, boolean isPurge) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
guid - unique identifier of the Glossary Artifact.userId - unique identifier for requesting user, under which the request is performed.isPurge - true indicates a hard delete, false is a soft delete.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.default void purge(String userId, String guid) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
guid - unique identifier of the Glossary Artifact.userId - unique identifier for requesting user, under which the request is performed.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.default void delete(String userId, String guid) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
guid - unique identifier of the Glossary Artifact.userId - unique identifier for requesting user, under which the request is performed.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.T restore(String userId, String guid) throws InvalidParameterException, PropertyServerException, UserNotAuthorizedException
guid - unique identifier of the Glossary Artifact.userId - unique identifier for requesting user, under which the request is performed.PropertyServerException - something went wrong with the REST call stack.UserNotAuthorizedException - the requesting user is not authorized to issue this request.InvalidParameterException - one of the parameters is null or invalid.Copyright © 2018–2021 LF AI & Data Foundation. All rights reserved.