Package de.xima.fc.web.common.datasource
Class DatenquelleParams
- java.lang.Object
-
- de.xima.fc.web.common.datasource.DatenquelleParams
-
- All Implemented Interfaces:
IDatenquelleParams,IPluginParameters,IPluginDataSourceParams,Serializable
public class DatenquelleParams extends Object implements IDatenquelleParams, IPluginDataSourceParams
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDatenquelleParams.Builder
-
Constructor Summary
Constructors Constructor Description DatenquelleParams(Mandant mandant, Map<String,Serializable> sessionAttributes, ValueParameters requestParameters, Projekt projekt)Deprecated.DatenquelleParams(Mandant mandant, Map<String,Serializable> sessionAttributes, ValueParameters requestParameters, Projekt projekt, Benutzer user, com.alibaba.fastjson.JSONObject userData)Deprecated.DatenquelleParams(Mandant mandant, Map<String,Serializable> sessionAttributes, ValueParameters requestParameters, Projekt projekt, IUser user, com.alibaba.fastjson.JSONObject userData)Deprecated.DatenquelleParams(XItem item, Mandant mandant, SessionAttributes sessionAttributes, ValueParameters requestParameters, Projekt projekt)Deprecated.DatenquelleParams(XItem item, Mandant mandant, Map<String,Serializable> sessionAttributes, ValueParameters requestParameters, Projekt projekt)Deprecated.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static DatenquelleParams.Builderbuilder()BenutzergetCurrentUser()Deprecated.UsegetUser()instead.VorganggetFormRecord()The current form record, if any exists.EFormRequestTypegetFormRequestType()The type of the current form request.XItemgetItem()Deprecated.com.alibaba.fastjson.JSONObjectgetLdapUserData()Deprecated.MandantgetMandant()Der Mandant in welchem sich das Formular befindetProjektgetProjekt()Das Projekt welches das Formular bereitstelltValueParametersgetRequestParameters()Getter für aufbereitete Request-Parameter welche je nach typ (Prefix) in entsprechende Maps sortiert sind.Map<String,Serializable>getSessionAttributeMap()In der Formular-Sitzung serialisierbare Session-AttributeSessionAttributesgetSessionAttributes()Deprecated.IUsergetUser()com.alibaba.fastjson.JSONObjectgetUserData()
-
-
-
Constructor Detail
-
DatenquelleParams
@Deprecated public DatenquelleParams(Mandant mandant, Map<String,Serializable> sessionAttributes, ValueParameters requestParameters, Projekt projekt)
Deprecated.Usebuilder()instead.- Parameters:
mandant- The client owning the form.sessionAttributes- The form request session attributes.requestParameters- The form request parameters.projekt- The project.
-
DatenquelleParams
@Deprecated public DatenquelleParams(Mandant mandant, Map<String,Serializable> sessionAttributes, ValueParameters requestParameters, Projekt projekt, IUser user, com.alibaba.fastjson.JSONObject userData)
Deprecated.Usebuilder()instead.- Parameters:
mandant- The client owning the form.sessionAttributes- The form request session attributes.requestParameters- The form request parameters.projekt- The project.user- The authenticated user.userData- The data of the authenticated user.
-
DatenquelleParams
@Deprecated public DatenquelleParams(Mandant mandant, Map<String,Serializable> sessionAttributes, ValueParameters requestParameters, Projekt projekt, Benutzer user, com.alibaba.fastjson.JSONObject userData)
Deprecated.Usebuilder()instead.- Parameters:
mandant- The client owning the form.sessionAttributes- The form request session attributes.requestParameters- The form request parameters.projekt- The project.user- The authenticated user.userData- The data of the authenticated user.
-
DatenquelleParams
@Deprecated public DatenquelleParams(XItem item, Mandant mandant, SessionAttributes sessionAttributes, ValueParameters requestParameters, Projekt projekt)
Deprecated.Usebuilder()instead.- Parameters:
item- The form item for which the data source is requested.mandant- The client owning the form.sessionAttributes- The form request session attributes.requestParameters- The form request parameters.projekt- The project.
-
DatenquelleParams
@Deprecated public DatenquelleParams(XItem item, Mandant mandant, Map<String,Serializable> sessionAttributes, ValueParameters requestParameters, Projekt projekt)
Deprecated.Usebuilder()instead.- Parameters:
item- The form item for which the data source is requested.mandant- The client owning the form.sessionAttributes- The form request session attributes.requestParameters- The form request parameters.projekt- The project.
-
-
Method Detail
-
getCurrentUser
@Deprecated public Benutzer getCurrentUser()
Deprecated.UsegetUser()instead.- Specified by:
getCurrentUserin interfaceIPluginDataSourceParams- Returns:
- The current
Benutzerwho is signed in to formcycle.
-
getFormRecord
public Vorgang getFormRecord()
Description copied from interface:IPluginDataSourceParamsThe current form record, if any exists. E.g. when the form is opened initially, no form record is available.- Specified by:
getFormRecordin interfaceIPluginDataSourceParams- Returns:
- The current form record, or
nullif no form record is available.
-
getFormRequestType
public EFormRequestType getFormRequestType()
Description copied from interface:IPluginDataSourceParamsThe type of the current form request. This can be used to determine the context in which the form is opened.- Specified by:
getFormRequestTypein interfaceIPluginDataSourceParams- Returns:
- The type of the current form request.
-
getItem
@Deprecated public XItem getItem()
Deprecated.Description copied from interface:IDatenquelleParamsDas Formular-Feld von welchem die Datenquelle benutzt wird- Specified by:
getItemin interfaceIDatenquelleParams- Returns:
XItem
-
getLdapUserData
@Deprecated public com.alibaba.fastjson.JSONObject getLdapUserData()
Deprecated.- Specified by:
getLdapUserDatain interfaceIPluginDataSourceParams
-
getMandant
public Mandant getMandant()
Description copied from interface:IDatenquelleParamsDer Mandant in welchem sich das Formular befindet- Specified by:
getMandantin interfaceIDatenquelleParams- Specified by:
getMandantin interfaceIPluginDataSourceParams- Returns:
Mandant
-
getProjekt
public Projekt getProjekt()
Description copied from interface:IDatenquelleParamsDas Projekt welches das Formular bereitstellt- Specified by:
getProjektin interfaceIDatenquelleParams- Specified by:
getProjektin interfaceIPluginDataSourceParams- Returns:
Process
-
getRequestParameters
public ValueParameters getRequestParameters()
Description copied from interface:IDatenquelleParamsGetter für aufbereitete Request-Parameter welche je nach typ (Prefix) in entsprechende Maps sortiert sind.- Specified by:
getRequestParametersin interfaceIDatenquelleParams- Specified by:
getRequestParametersin interfaceIPluginDataSourceParams- Returns:
ValueParameters
-
getSessionAttributeMap
public Map<String,Serializable> getSessionAttributeMap()
Description copied from interface:IDatenquelleParamsIn der Formular-Sitzung serialisierbare Session-Attribute- Specified by:
getSessionAttributeMapin interfaceIDatenquelleParams- Specified by:
getSessionAttributeMapin interfaceIPluginDataSourceParams- Returns:
SessionAttributes
-
getSessionAttributes
@Deprecated public SessionAttributes getSessionAttributes()
Deprecated.- Specified by:
getSessionAttributesin interfaceIDatenquelleParams- Specified by:
getSessionAttributesin interfaceIPluginDataSourceParams
-
getUser
public IUser getUser()
- Specified by:
getUserin interfaceIPluginDataSourceParams- Returns:
- the user that is authenticated in the session.
-
getUserData
public com.alibaba.fastjson.JSONObject getUserData()
- Specified by:
getUserDatain interfaceIPluginDataSourceParams- Returns:
- A
JSONObjectwith the data for the authenticated user. When the current form does not require authorization, or when the current user did not authorize via this may returnnull.
-
builder
public static DatenquelleParams.Builder builder()
-
-