@Component(value="workflow.workflowitem") public class WorkflowItemRestRepository extends DSpaceRestRepository<WorkflowItemRest,Integer>
| Modifier and Type | Field and Description |
|---|---|
static String |
OPERATION_PATH_SECTIONS |
requestService, utils| Constructor and Description |
|---|
WorkflowItemRestRepository() |
| Modifier and Type | Method and Description |
|---|---|
protected WorkflowItemRest |
createAndReturn(Context context,
List<String> stringList)
Method to implement to support the creation of a new instance.
|
protected void |
delete(Context context,
Integer id)
Method to implement to support delete of a single object instance
|
org.springframework.data.domain.Page<WorkflowItemRest> |
findAll(Context context,
org.springframework.data.domain.Pageable pageable)
Method to implement to support scroll of entity instances from the collection resource endpoin
|
org.springframework.data.domain.Page<WorkflowItemRest> |
findBySubmitter(UUID submitterID,
org.springframework.data.domain.Pageable pageable) |
WorkflowItemRest |
findOne(Context context,
Integer id)
Method to implement to support retrieval of a specific REST object instance
|
Class<WorkflowItemRest> |
getDomainClass()
The REST model supported by the repository
|
void |
patch(Context context,
javax.servlet.http.HttpServletRequest request,
String apiCategory,
String model,
Integer id,
Patch patch)
Method to implement to allow partial update of the REST object via JSON Patch
|
WorkflowItemRest |
upload(javax.servlet.http.HttpServletRequest request,
String apiCategory,
String model,
Integer id,
org.springframework.web.multipart.MultipartFile file)
Method to implement to attach/upload a file to a specific REST object
|
WorkflowItemResource |
wrapResource(WorkflowItemRest witem,
String... rels)
Wrap the REST model in a REST HAL Resource
|
action, action, count, createAndReturn, createAndReturn, createAndReturn, delete, delete, delete, deleteAll, exists, findAll, findAll, findAll, findAll, findOne, patch, put, put, put, put, save, save, save, upload, uploadgetRequestService, obtainContextpublic static final String OPERATION_PATH_SECTIONS
public WorkflowItemRestRepository()
throws SubmissionConfigReaderException
SubmissionConfigReaderException@PreAuthorize(value="hasPermission(#id, \'WORKFLOWITEM\', \'READ\')") public WorkflowItemRest findOne(Context context, Integer id)
DSpaceRestRepositoryfindOne in class DSpaceRestRepository<WorkflowItemRest,Integer>context - the dspace contextid - the rest object id@PreAuthorize(value="hasAuthority(\'ADMIN\')") public org.springframework.data.domain.Page<WorkflowItemRest> findAll(Context context, org.springframework.data.domain.Pageable pageable)
DSpaceRestRepositoryfindAll in class DSpaceRestRepository<WorkflowItemRest,Integer>context - the dspace contextpageable - object embedding the requested pagination info@PreAuthorize(value="hasAuthority(\'ADMIN\')") public org.springframework.data.domain.Page<WorkflowItemRest> findBySubmitter(UUID submitterID, org.springframework.data.domain.Pageable pageable)
protected WorkflowItemRest createAndReturn(Context context, List<String> stringList)
DSpaceRestRepositorycreateAndReturn in class DSpaceRestRepository<WorkflowItemRest,Integer>context - the dspace contextstringList - The list of Strings that will be used as data for the object that's to be created
This list is retrieved from the uri-list bodypublic Class<WorkflowItemRest> getDomainClass()
DSpaceRestRepositorygetDomainClass in class DSpaceRestRepository<WorkflowItemRest,Integer>public WorkflowItemResource wrapResource(WorkflowItemRest witem, String... rels)
DSpaceRestRepositorywrapResource in class DSpaceRestRepository<WorkflowItemRest,Integer>witem - the rest model instancerels - the HAL linkspublic WorkflowItemRest upload(javax.servlet.http.HttpServletRequest request, String apiCategory, String model, Integer id, org.springframework.web.multipart.MultipartFile file) throws Exception
DSpaceRestRepositoryupload in class DSpaceRestRepository<WorkflowItemRest,Integer>request - the http requestid - the ID of the target REST objectfile - the uploaded fileExceptionpublic void patch(Context context, javax.servlet.http.HttpServletRequest request, String apiCategory, String model, Integer id, Patch patch) throws SQLException, AuthorizeException
DSpaceRestRepositorypatch in class DSpaceRestRepository<WorkflowItemRest,Integer>request - the http requestid - the ID of the target REST objectpatch - the JSON Patch (https://tools.ietf.org/html/rfc6902) operationSQLExceptionAuthorizeExceptionprotected void delete(Context context, Integer id)
DSpaceRestRepositorydelete in class DSpaceRestRepository<WorkflowItemRest,Integer>context - the dspace contextid - the id of the rest object to deleteCopyright © 2019 DuraSpace. All rights reserved.