public class FdToXmlBuilder extends AFdTransformBuilder implements IFdTransformBuilder
exportCreationDate, exportExportMetaData, exportModificationDate, exportProcessID, exportStatus, exportTechnicalFields, exportVariables
Constructor and Description |
---|
FdToXmlBuilder() |
Modifier and Type | Method and Description |
---|---|
FdToXmlResult |
buildForInbox(UserContext uc,
Benutzer user,
de.xima.cmn.criteria.QueryCriteriaManager qcm)
Builds the XML export of
Vorgang ´s determined with an QueryCriteriaManager |
FdToXmlResult |
buildForProcess(UserContext uc,
Vorgang formRecord,
IFormDataAdapter fda,
IXForm xform)
Builds the XML export of an single form record
|
FdToXmlResult |
buildForProcessIDs(UserContext uc,
Benutzer user,
List<Long> processIDs)
Builds the XML export of an
List of Vorgang.getId() ´s |
FdToXmlResult |
buildForProjectInbox(UserContext uc,
List<ExtendedEntityModel<Vorgang>> records)
|
protected List<FormElement> |
getElementsList(FormVersion formVersion,
HashMap<Long,List<FormElement>> elementMap,
HashMap<Long,Set<String>> variablesMap)
Method to get the list of
FormElement s of an FormVersion . |
FdToXmlBuilder |
withCreationDate(boolean withCreationDate) |
FdToXmlBuilder |
withExportMetaData(boolean withExportMetaData) |
FdToXmlBuilder |
withModificationDate(boolean withModificationDate) |
FdToXmlBuilder |
withProcessID(boolean withProcessID) |
FdToXmlBuilder |
withStatus(boolean withStatus) |
FdToXmlBuilder |
withTechnicalFields(boolean withTechnicalFields) |
FdToXmlBuilder |
withVariables(boolean withVariables) |
isExportCreationDate, isExportExportMetadData, isExportModificationDate, isExportProcessID, isExportStatus, isExportTechnicalFields, isExportVariables, setExportCreationDate, setExportExportMetaData, setExportModificationDate, setExportProcessID, setExportStatus, setExportTechnicalFields, setExportVariables
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isExportCreationDate, isExportExportMetadData, isExportModificationDate, isExportProcessID, isExportStatus, isExportTechnicalFields, isExportVariables, setExportCreationDate, setExportExportMetaData, setExportModificationDate, setExportProcessID, setExportStatus, setExportTechnicalFields, setExportVariables
public FdToXmlBuilder withCreationDate(boolean withCreationDate)
withCreationDate
in interface IFdTransformBuilder
withCreationDate
- if the creation date of form records should be exportedpublic FdToXmlBuilder withModificationDate(boolean withModificationDate)
withModificationDate
in interface IFdTransformBuilder
withModificationDate
- if the modification date of form records should be exportedpublic FdToXmlBuilder withProcessID(boolean withProcessID)
withProcessID
in interface IFdTransformBuilder
withProcessID
- if the process ids of form records should be exportedpublic FdToXmlBuilder withStatus(boolean withStatus)
withStatus
in interface IFdTransformBuilder
withStatus
- if the status name of form records should be exportedpublic FdToXmlBuilder withTechnicalFields(boolean withTechnicalFields)
withTechnicalFields
in interface IFdTransformBuilder
withTechnicalFields
- if technical fields (e.g. xf-action) of form records should be exportedpublic FdToXmlBuilder withVariables(boolean withVariables)
withVariables
in interface IFdTransformBuilder
withVariables
- if variables of form records should be exportedpublic FdToXmlBuilder withExportMetaData(boolean withExportMetaData)
withExportMetaData
in interface IFdTransformBuilder
withExportMetaData
- if metadata (e.g. export data, FORMCYCLE-version,...) of the export should be exported
toopublic FdToXmlResult buildForProcess(UserContext uc, Vorgang formRecord, IFormDataAdapter fda, IXForm xform)
uc
- the UserContext
to user for the exportformRecord
- the Vorgang
to exportfda
- the IFormDataAdapter
to use as the data for the exportxform
- the IXForm
to use for the exportFdToXmlResult
public FdToXmlResult buildForProcessIDs(UserContext uc, Benutzer user, List<Long> processIDs) throws com.alibaba.fastjson.JSONException, IOException
List
of Vorgang.getId()
´suc
- the UserContext
to user for the exportuser
- the Benutzer
to filter the records for. If the user haven´t access to the current inbox of an
process, it shouldn´t be exportedprocessIDs
- an List
of Vorgang.getId()
'sFdToXmlResult
com.alibaba.fastjson.JSONException
- on errors while creating the forms to determine the metadata for the exportIOException
- on errors while creating the forms to determine the metadata for the exportpublic FdToXmlResult buildForInbox(UserContext uc, Benutzer user, de.xima.cmn.criteria.QueryCriteriaManager qcm) throws com.alibaba.fastjson.JSONException, IOException
Vorgang
´s determined with an QueryCriteriaManager
uc
- the UserContext
to user for the exportuser
- the Benutzer
to filter the records for. If the user haven´t access to the current inbox of an
process, it shouldn´t be exportedqcm
- the QueryCriteriaManager
to read the Vorgang
´sFdToXmlResult
com.alibaba.fastjson.JSONException
- on errors while creating the forms to determine the metadata for the exportIOException
- on errors while creating the forms to determine the metadata for the exportpublic FdToXmlResult buildForProjectInbox(UserContext uc, List<ExtendedEntityModel<Vorgang>> records) throws com.alibaba.fastjson.JSONException, IOException
uc
- the UserContext
to user for the exportrecords
- the List of ExtendedEntityModel
´s of Vorgang
´sFdToXmlResult
com.alibaba.fastjson.JSONException
- on errors while creating the forms to determine the metadata for the exportIOException
- on errors while creating the forms to determine the metadata for the exportprotected List<FormElement> getElementsList(FormVersion formVersion, HashMap<Long,List<FormElement>> elementMap, HashMap<Long,Set<String>> variablesMap)
AFdTransformBuilder
FormElement
s of an FormVersion
. This method caches the list of elements
and ignores technical fields or variables if set so. Variables to ignore are also cached.getElementsList
in class AFdTransformBuilder
formVersion
- the FormVersion
to get the elements fromelementMap
- a Map
to cache the FormElement
s to the FormVersion.getId()
variablesMap
- a Map
to cache the name of variables to the FormVersion.getId()
FormElement
s to use for the exportCopyright © 2019 XIMA MEDIA GmbH. All rights reserved.