Class FormDesignerTemplateBean
java.lang.Object
de.xima.fc.gui.designer.form.bean.FormDesignerTemplateBean
- All Implemented Interfaces:
Serializable
@RequestScoped
@Named("formDesignerTemplateBean")
public class FormDesignerTemplateBean
extends Object
implements Serializable
Bean for the form designer. Creates the list of available templates, and handles saving templates.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
Remote command that creates a new templates from the request and persists it.void
Remote command that deletes the template with the given ID.void
Remote command that returns all available tags and adds theFormTemplate
with the given ID to the list.org.primefaces.model.StreamedContent
getTemplateImage
(long clientId, String typeId, String templateId, String iconUri, String contentType) Bean callback that fetches the image of the given template.void
Remote command to fetch the persist JSON for a specific template.void
Remote command that updates the template with the ID with the given data.
-
Constructor Details
-
FormDesignerTemplateBean
public FormDesignerTemplateBean()
-
-
Method Details
-
createFormTemplate
public void createFormTemplate()Remote command that creates a new templates from the request and persists it. -
deleteFormTemplate
public void deleteFormTemplate()Remote command that deletes the template with the given ID. -
getTagsAndTemplates
public void getTagsAndTemplates()Remote command that returns all available tags and adds theFormTemplate
with the given ID to the list. -
getTemplatePersistJson
public void getTemplatePersistJson()Remote command to fetch the persist JSON for a specific template. -
getTemplateImage
public org.primefaces.model.StreamedContent getTemplateImage(long clientId, String typeId, String templateId, String iconUri, String contentType) Bean callback that fetches the image of the given template.- Parameters:
clientId
- ID of theMandant
typeId
- ID of theETemplateType
.templateId
- The ID of the template for which to retrieve the image.iconUri
- The URI of the icon. ForETemplateType.PLUGIN
, theURI
of theicon
.contentType
- Content type of the icon.- Returns:
- The image of the given template
-
updateFormTemplate
public void updateFormTemplate()Remote command that updates the template with the ID with the given data.
-