Package ch.tocco.nice2.rest.action.spi
Class AbstractActionResource.ActionResultBeanBuilder
java.lang.Object
ch.tocco.nice2.rest.action.spi.AbstractActionResource.ActionResultBeanBuilder
- Enclosing class:
AbstractActionResource
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddDownloadUrl
(String downloadUrl, String filename) this method can be used to add a download url and the resulting filename.addOutputJob
(Entity outputJob) addResultEntity
(Entity entity) addResultEntityId
(SimpleEntityId entityId) build()
message
(TextMessage textMessage) messageFormatted
(String message) This reloadDetail flag is normally not necessary as the list/detail, where the action is called, is automatically reloaded.
-
Constructor Details
-
ActionResultBeanBuilder
public ActionResultBeanBuilder(boolean success)
-
-
Method Details
-
message
-
message
-
messageFormatted
-
addParam
-
addDownloadUrl
public AbstractActionResource.ActionResultBeanBuilder addDownloadUrl(String downloadUrl, String filename) this method can be used to add a download url and the resulting filename. in the frontend the download url is called (with the same body as the action request). the response file is named as the passed filename -
addResultEntity
-
addResultEntityId
-
addOutputJob
-
clearSelection
-
selectionDeleted
-
reloadDetail
This reloadDetail flag is normally not necessary as the list/detail, where the action is called, is automatically reloaded. However, if the action is on a sub-table and the entity of the detail is changed the reloadDetail flag should be used to force reload the detail. -
build
-
getResultEntityIds
-