Class DesignerConfigFactory
- java.lang.Object
-
- de.xima.fc.gui.designer.form.utils.DesignerConfigFactory
-
public final class DesignerConfigFactory extends Object
Utility methods for creating the designer JSON config required by the client side JavaScript.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static String
createDesignerConfig(javax.faces.context.FacesContext facesContext, IEntityContext ec, Mandant client, Benutzer user, BaseDesignerModel baseModel, Locale locale, ProjectPageBean projectHolder, IXFormRenderConfig formRenderConfig, String conversationId)
Creates the designer config for the current faces request and the given model.static com.alibaba.fastjson.JSONObject
createDesignerConfigJson(javax.faces.context.FacesContext facesContext, IEntityContext ec, Mandant client, Benutzer userEntity, BaseDesignerModel baseModel, Locale locale, ProjectPageBean projectHolder, IXFormRenderConfig formRenderConfig, String conversationId)
Creates the designer config for the current faces request and the given model.
-
-
-
Method Detail
-
createDesignerConfig
public static String createDesignerConfig(javax.faces.context.FacesContext facesContext, IEntityContext ec, Mandant client, Benutzer user, BaseDesignerModel baseModel, Locale locale, ProjectPageBean projectHolder, IXFormRenderConfig formRenderConfig, String conversationId)
Creates the designer config for the current faces request and the given model.- Parameters:
facesContext
- Faces context of the current faces request, used e.g. to encode URLs.ec
- Entity context for database transactions.client
- Current client.user
- Current user.baseModel
- Model with the current server side configuration, such as the current user and project.locale
- Current locale.projectHolder
- Current project.formRenderConfig
- Config for the form that is being edited.conversationId
- ID of the designer session.- Returns:
- A newly created designer config.
-
createDesignerConfigJson
public static com.alibaba.fastjson.JSONObject createDesignerConfigJson(javax.faces.context.FacesContext facesContext, IEntityContext ec, Mandant client, Benutzer userEntity, BaseDesignerModel baseModel, Locale locale, ProjectPageBean projectHolder, IXFormRenderConfig formRenderConfig, String conversationId)
Creates the designer config for the current faces request and the given model.- Parameters:
facesContext
- Faces context of the current faces request, used e.g. to encode URLs.ec
- Entity context for database transactions.client
- Current client.userEntity
- Current user.baseModel
- Model with the current server side configuration, such as the current user and project.locale
- Current locale.projectHolder
- Current project.formRenderConfig
- Config for the form that is being edited.conversationId
- ID of the designer session.- Returns:
- A newly created designer config.
-
-