Class PluginFormPreRenderParams
- java.lang.Object
-
- de.xima.fc.plugin.models.params.form.PluginFormPreRenderParams
-
- All Implemented Interfaces:
IPluginParameters
,IFormLifecycleExecuteParams
,IPluginFormPreRenderParams
,Serializable
public class PluginFormPreRenderParams extends Object implements IPluginFormPreRenderParams
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PluginFormPreRenderParams(IFormRequestContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description IFormRequestContext
getFormRequestContext()
Map<Serializable,Serializable>
getFrqSessionAttributeMap()
Gets the values stored in the currentFRQSession
.com.alibaba.fastjson.JSONObject
getLdapUserData()
Deprecated.Map<String,Serializable>
getSessionAttributeMap()
Gets the values from the currentHttpSession
.com.alibaba.fastjson.JSONObject
getUserData()
-
-
-
Constructor Detail
-
PluginFormPreRenderParams
public PluginFormPreRenderParams(IFormRequestContext context)
-
-
Method Detail
-
getFormRequestContext
public IFormRequestContext getFormRequestContext()
- Specified by:
getFormRequestContext
in interfaceIFormLifecycleExecuteParams
- Specified by:
getFormRequestContext
in interfaceIPluginFormPreRenderParams
- Returns:
- The current form request context that may be used to access the submitted form data.
-
getUserData
public com.alibaba.fastjson.JSONObject getUserData()
- Specified by:
getUserData
in interfaceIFormLifecycleExecuteParams
- Specified by:
getUserData
in interfaceIPluginFormPreRenderParams
- Returns:
- A
JSONObject
with the current data for the authenticated user. When the current form does not require authorization, this may return an emptyJSONObject
-
getLdapUserData
@Deprecated public com.alibaba.fastjson.JSONObject getLdapUserData()
Deprecated.- Specified by:
getLdapUserData
in interfaceIFormLifecycleExecuteParams
- Specified by:
getLdapUserData
in interfaceIPluginFormPreRenderParams
- Returns:
- A
JSONObject
with the current LDAP data for the authenticated user. When the current form does not require authorization, or when the current user did not authorize via LDAP, this may return an emptyJSONObject
-
getFrqSessionAttributeMap
public Map<Serializable,Serializable> getFrqSessionAttributeMap()
Description copied from interface:IFormLifecycleExecuteParams
Gets the values stored in the currentFRQSession
. The servlet plugin may be executed on a different server that does not have direct access to the HTTP request: Please note that changes to this map are NOT reflected or saved in theFRQSession
. To modify the FRQ session attributes, use theIPluginFormPrePersistRetVal.getFrqSessionAttributeMap()
return value.- Specified by:
getFrqSessionAttributeMap
in interfaceIFormLifecycleExecuteParams
- Returns:
- Attributes from the form request session of the current request. If no such session exists, this is an empty map.
-
getSessionAttributeMap
public Map<String,Serializable> getSessionAttributeMap()
Description copied from interface:IFormLifecycleExecuteParams
Gets the values from the currentHttpSession
. The servlet plugin may be executed on a different server that does not have direct access to the HTTP request: Please note that changes to this map are NOT reflected or saved in theHttpSession
. To modify the session attributes, use theIPluginFormPreRenderRetVal.getSessionAttributes()
return value.- Specified by:
getSessionAttributeMap
in interfaceIFormLifecycleExecuteParams
- Returns:
- A map
Map
with all attributes of the currentHttpSession
.
-
-