public abstract class ActionExecution extends Named
Constructor and Description |
---|
ActionExecution(java.lang.String name,
SModule parent)
creates a new action execution
|
Modifier and Type | Method and Description |
---|---|
abstract SPage |
executeActionFromGUI(SActionData actionattributes)
The action is executed, and its result is shown in a page on the client
|
abstract SPage |
executeActionFromGUI(SActionData actionattributes,
java.util.function.Function<TableAlias,QueryFilter> datafilter)
The action is executed, and its result is shown in a page on the client, with
a specified filter for data specified
|
abstract SPageData |
executeInlineAction(SActionData actiondata)
executes the action as an inline action (enriching a page currently displayed
on the client
|
abstract SPageData |
executeInlineAction(SActionData actiondata,
java.util.function.Function<TableAlias,QueryFilter> datafilter)
executes the action as an inline action (enriching a page currently displayed
on the client) with a query filter
|
void |
freezeUnauthorizedObjects(DataObject<?>[] dataarray)
will check according to action manager and freeze objects that are not
modified
|
protected static <T extends DataEltType> |
getActionInputDataRef(java.lang.String name,
T type,
int order)
generates an ActionInputDataRef for the action
|
protected static <T extends DataEltType> |
getActionOutputDataRef(java.lang.String name,
T type,
int order)
generates a reference to an output attribute
|
protected SActionRef |
getActionReference()
this creates an action reference that can be linked to a widget in order to
display a new page
|
abstract ActionSecurityManager[] |
getActionSecurityManager()
this function is called by the server security manager to get the security
manager for the action
|
protected SInlineActionRef |
getInlineActionReference()
this creates an inline action reference that can be linked to a widget in
order to launch an action to launch the page
|
protected abstract int |
getInputSecurityArgumentIndex() |
java.lang.String |
getMessage() |
protected static <T extends DataEltType> |
getNullActionInputDataRef(java.lang.String name,
T type,
int order)
generates a null action input data ref for the
|
SModule |
getParent() |
boolean |
isPopup() |
void |
setMessage(java.lang.String message)
sets the message to show in title
|
void |
setPopup(boolean popup) |
changeName, cleanName, equals, getName
public ActionExecution(java.lang.String name, SModule parent)
name
- unique name of the action for the parent moduleparent
- parent modulepublic java.lang.String getMessage()
public void setMessage(java.lang.String message)
message
- the message to show in titlepublic boolean isPopup()
public void setPopup(boolean popup)
popup
- if the action is triggered from a popup on the client screenpublic SModule getParent()
protected abstract int getInputSecurityArgumentIndex()
protected SInlineActionRef getInlineActionReference()
protected SActionRef getActionReference()
public void freezeUnauthorizedObjects(DataObject<?>[] dataarray)
dataarray
- the array of objects to checkpublic abstract SPage executeActionFromGUI(SActionData actionattributes)
actionattributes
- the list of attributespublic abstract SPage executeActionFromGUI(SActionData actionattributes, java.util.function.Function<TableAlias,QueryFilter> datafilter)
actionattributes
- datafilter
- protected static <T extends DataEltType> SActionInputDataRef<T> getActionInputDataRef(java.lang.String name, T type, int order)
name
- name of the data referencetype
- type of the data referenceorder
- order of the attributeprotected static <T extends DataEltType> SNullActionInputDataRef<T> getNullActionInputDataRef(java.lang.String name, T type, int order)
name
- name of the attributetype
- type type of the attributeorder
- order of the attributeprotected static <T extends DataEltType> SActionOutputDataRef<T> getActionOutputDataRef(java.lang.String name, T type, int order)
name
- name of the attributetype
- type type of the attributeorder
- order of the attributepublic abstract SPageData executeInlineAction(SActionData actiondata)
actiondata
- inputaction datapublic abstract SPageData executeInlineAction(SActionData actiondata, java.util.function.Function<TableAlias,QueryFilter> datafilter)
actiondata
- action input datadatafilter
- data filterpublic abstract ActionSecurityManager[] getActionSecurityManager()