@WebServlet(name="DesignerTemplateServlet", urlPatterns="/designer/template/*", asyncSupported=true) public class DesignerTemplateServlet extends AbstractFD2TemplateServlet
Modifier and Type | Field and Description |
---|---|
protected static org.slf4j.Logger |
LOG |
Constructor and Description |
---|
DesignerTemplateServlet() |
Modifier and Type | Method and Description |
---|---|
protected FormTemplate |
createFormTemplate(FD2Session session,
Map<String,String> pm)
Creates a new templates from the request and persists it.
|
protected boolean |
deleteFormTemplate(FD2Session session,
long id)
Deletes the template with the given ID.
|
protected FormTemplateFile |
getFormTemplateFile(FD2Session session,
Long id) |
protected boolean |
getTagsAndTemplates(FD2Session session,
Long id,
List<FormTemplateTag> tags,
List<FormTemplate> templates)
Returns all available tags and adds the
FormTemplate with the given ID to the list. |
protected FormTemplate |
updateFormTemplate(FD2Session session,
long id,
Map<String,String> pm)
Updates the template with the given ID.
|
doDelete, doGet, doPost, doPut, parseTags, setTemplateDataFromRequest
doHead, doOptions, doTrace, getLastModified, service, service
protected FormTemplate createFormTemplate(FD2Session session, Map<String,String> pm)
AbstractFD2TemplateServlet
createFormTemplate
in class AbstractFD2TemplateServlet
protected boolean getTagsAndTemplates(FD2Session session, Long id, List<FormTemplateTag> tags, List<FormTemplate> templates)
AbstractFD2TemplateServlet
FormTemplate
with the given ID to the list.getTagsAndTemplates
in class AbstractFD2TemplateServlet
protected FormTemplateFile getFormTemplateFile(FD2Session session, Long id)
getFormTemplateFile
in class AbstractFD2TemplateServlet
protected FormTemplate updateFormTemplate(FD2Session session, long id, Map<String,String> pm)
AbstractFD2TemplateServlet
AbstractFD2TemplateServlet.setTemplateDataFromRequest(FormTemplate, Map)
. To parse the tags from the request, use
AbstractFD2TemplateServlet.parseTags(Map)
.updateFormTemplate
in class AbstractFD2TemplateServlet
protected boolean deleteFormTemplate(FD2Session session, long id)
AbstractFD2TemplateServlet
deleteFormTemplate
in class AbstractFD2TemplateServlet
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.