Class AbstractActionResource.ActionResultBeanBuilder
java.lang.Object
ch.tocco.nice2.rest.action.spi.AbstractActionResource.ActionResultBeanBuilder
- Enclosing class:
AbstractActionResource
-
Constructor Summary
Constructors -
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.in some widgets (e.g.
-
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. -
skipReloadingDetail
in some widgets (e.g. stint-auction) after executing the action, the user no longer has access to the entity (rendered in the detail). normally we would just navigate back to the list. however the widget shows a success page and hides the entity browser. With this flag we just tell the frontend to not reload the detail. -
build
-
getResultEntityIds
-