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 SerializableBean for the form designer. Creates the list of available templates, and handles saving templates.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FormDesignerTemplateBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcreateFormTemplate()Remote command that creates a new templates from the request and persists it.voiddeleteFormTemplate()Remote command that deletes the template with the given ID.voidgetTagsAndTemplates()Remote command that returns all available tags and adds theFormTemplatewith the given ID to the list.org.primefaces.model.StreamedContentgetTemplateImage(long clientId, String typeId, String templateId, String iconUri, String contentType)Bean callback that fetches the image of the given template.voidgetTemplatePersistJson()Remote command to fetch the persist JSON for a specific template.voidupdateFormTemplate()Remote command that updates the template with the ID with the given data.
-
-
-
Method Detail
-
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 theFormTemplatewith 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 theMandanttypeId- ID of theETemplateType.templateId- The ID of the template for which to retrieve the image.iconUri- The URI of the icon. ForETemplateType.PLUGIN, theURIof 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.
-
-