public class VoucherResource extends AbstractYResource<VoucherModel>
httpHeaders, providers, request, resourceCtx, securityCtx, serviceLocator, uriInfo| Constructor and Description |
|---|
VoucherResource()
Generated constructor - for generic creation.
|
| Modifier and Type | Method and Description |
|---|---|
Response |
deleteVoucher()
Generated HTTP method for covering DELETE requests.
|
AbstractYResource |
getLinkResource(java.lang.String resourceKey)
Generated getter for sub resource of type
LinkResource for current root resource |
Response |
getVoucher()
Generated HTTP method for covering GET requests.
|
VoucherModel |
getVoucherModel()
Convenience method which just delegates to
AbstractResource.getResourceValue() |
Response |
putVoucher(VoucherDTO dto)
Generated HTTP method for covering PUT requests.
|
protected VoucherModel |
readResource(java.lang.String resourceId)
Gets the
VoucherModel resource which is addressed by current resource request. |
void |
setVoucherModel(VoucherModel value)
Convenience method which just delegates to
#setResourceValue(VoucherModel) |
createOrUpdatePostResource, createOrUpdateResource, deleteResource, getNotsavedModelForCreate, getObjectGraph, getResourceType, getUniqueMember, isAccessGranted, passUniqueMember, prepareJaloSession, processDtoId, readResourceInternal, setObjectGraph, setUniqueMember, setUserIntoJaloSessionafterDelete, afterPost, afterPut, beforeDelete, beforePost, beforePut, createDeleteResponse, createGetResponse, createPostResource, createPostResponse, createPutResponse, createPutResponse, createResource, getEventActionFactory, getPagingStrategy, getParentResource, getPostCommandHandler, getPutCommandHandler, getRequest, getResourceId, getResourceValue, getResponse, getSecurityContext, getSecurityStrategy, getServiceLocator, getUriInfo, isAccessGrantedExternal, notifyAfterDelete, notifyAfterGet, notifyAfterPost, notifyAfterPut, notifyBeforeDelete, notifyBeforeGet, notifyBeforePost, notifyBeforePut, processException, readPostResource, setCachingStrategy, setDeleteMethod, setEventActionFactory, setGetMethod, setPagingStrategy, setParentResource, setPostCommandHandler, setPostMethod, setPutCommandHandler, setPutMethod, setRequestProcessChain, setResourceId, setResourceValue, setSecurityStrategy, setServiceLocatorpublic VoucherResource()
public Response deleteVoucher()
javax.ws.rs.core.Responsepublic AbstractYResource getLinkResource(java.lang.String resourceKey)
LinkResource for current root resourcepublic Response getVoucher()
javax.ws.rs.core.Responsepublic VoucherModel getVoucherModel()
AbstractResource.getResourceValue()public Response putVoucher(VoucherDTO dto)
javax.ws.rs.core.Responseprotected VoucherModel readResource(java.lang.String resourceId) throws java.lang.Exception
VoucherModel resource which is addressed by current resource request.readResource in class AbstractResource<VoucherModel>java.lang.ExceptionAbstractResource.readResource(String)public void setVoucherModel(VoucherModel value)
#setResourceValue(VoucherModel)Copyright © 2018 SAP SE. All Rights Reserved.