Package de.xima.fc.transform.xml
Class FdToXmlBuilder
- java.lang.Object
 - 
- de.xima.fc.transform.AFdTransformBuilder
 - 
- de.xima.fc.transform.xml.FdToXmlBuilder
 
 
 
- 
- All Implemented Interfaces:
 IFdTransformBuilder
public class FdToXmlBuilder extends AFdTransformBuilder implements IFdTransformBuilder
Builder for transforming form-data into XML 
- 
- 
Field Summary
- 
Fields inherited from class de.xima.fc.transform.AFdTransformBuilder
exportCreationDate, exportExportMetaData, exportID, exportInbox, exportModificationDate, exportProcessID, exportStatus, exportSubject, exportTechnicalFields, exportVariables, inboxProject, isForProjectInbox 
 - 
 
- 
Constructor Summary
Constructors Constructor Description FdToXmlBuilder()Deprecated.FdToXmlBuilder(Locale locale) 
- 
Method Summary
- 
Methods inherited from class de.xima.fc.transform.AFdTransformBuilder
getElementsList, isExportCreationDate, isExportExportMetaData, isExportID, isExportInbox, isExportModificationDate, isExportProcessID, isExportStatus, isExportSubject, isExportTechnicalFields, isExportVariables, setExportCreationDate, setExportExportMetaData, setExportID, setExportInbox, setExportModificationDate, setExportProcessID, setExportStatus, setExportSubject, setExportTechnicalFields, setExportVariables 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface de.xima.fc.interfaces.transform.IFdTransformBuilder
isExportCreationDate, isExportExportMetaData, isExportExportMetadData, isExportID, isExportInbox, isExportModificationDate, isExportProcessID, isExportStatus, isExportSubject, isExportTechnicalFields, isExportVariables, setExportCreationDate, setExportExportMetaData, setExportID, setExportInbox, setExportModificationDate, setExportProcessID, setExportStatus, setExportSubject, setExportTechnicalFields, setExportVariables 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
FdToXmlBuilder
@Deprecated public FdToXmlBuilder()
Deprecated. 
- 
FdToXmlBuilder
public FdToXmlBuilder(Locale locale)
- Parameters:
 locale- Locale to use for locale-sensitive operations, such as the name of the workflow state.- Since:
 - 7.0.7
 
 
 - 
 
- 
Method Detail
- 
withCreationDate
public FdToXmlBuilder withCreationDate(boolean withCreationDate)
- Specified by:
 withCreationDatein interfaceIFdTransformBuilder- Parameters:
 withCreationDate- if the creation date of form records should be exported- Returns:
 - this builder instance
 
 
- 
withModificationDate
public FdToXmlBuilder withModificationDate(boolean withModificationDate)
- Specified by:
 withModificationDatein interfaceIFdTransformBuilder- Parameters:
 withModificationDate- if the modification date of form records should be exported- Returns:
 - this builder instance
 
 
- 
withProcessID
public FdToXmlBuilder withProcessID(boolean withProcessID)
- Specified by:
 withProcessIDin interfaceIFdTransformBuilder- Parameters:
 withProcessID- if the process ids of form records should be exported- Returns:
 - this builder instance
 
 
- 
withStatus
public FdToXmlBuilder withStatus(boolean withStatus)
- Specified by:
 withStatusin interfaceIFdTransformBuilder- Parameters:
 withStatus- if the status name of form records should be exported- Returns:
 - this builder instance
 
 
- 
withTechnicalFields
public FdToXmlBuilder withTechnicalFields(boolean withTechnicalFields)
- Specified by:
 withTechnicalFieldsin interfaceIFdTransformBuilder- Parameters:
 withTechnicalFields- if technical fields (e.g. xf-action) of form records should be exported- Returns:
 - this builder instance
 
 
- 
withVariables
public FdToXmlBuilder withVariables(boolean withVariables)
- Specified by:
 withVariablesin interfaceIFdTransformBuilder- Parameters:
 withVariables- if variables of form records should be exported- Returns:
 - this builder instance
 
 
- 
withExportMetaData
public FdToXmlBuilder withExportMetaData(boolean withExportMetaData)
- Specified by:
 withExportMetaDatain interfaceIFdTransformBuilder- Parameters:
 withExportMetaData- if metadata (e.g. export data, formcycle-version,...) of the export should be exported too- Returns:
 - this builder instance
 
 
- 
forProjectInbox
public FdToXmlBuilder forProjectInbox(Projekt project)
- Specified by:
 forProjectInboxin interfaceIFdTransformBuilder
 
- 
buildForProcess
public FdToXmlResult buildForProcess(UserContext uc, Vorgang formRecord, IFormDataAdapter fda, IXForm xform)
Builds the XML export of an single form record- Parameters:
 uc- Not used anymore.formRecord- theVorgangto exportfda- theIFormDataAdapterto use as the data for the exportxform- theIXFormto use for the export- Returns:
 - the 
FdToXmlResult 
 
- 
buildForProcessIDs
public FdToXmlResult buildForProcessIDs(UserContext uc, IUser user, List<Long> processIDs) throws com.alibaba.fastjson.JSONException, IOException, InterruptedException
Builds the XML export of anListofVorgang.getId()´s- Parameters:
 uc- theUserContextto user for the exportuser- theIUserto filter the records for. If the user haven´t access to the current inbox of an process, it shouldn´t be exportedprocessIDs- anListofVorgang.getId()'s- Returns:
 - the 
FdToXmlResult - Throws:
 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 exportInterruptedException- when the thread for writing data is interrupted
 
- 
buildForInbox
@Deprecated public FdToXmlResult buildForInbox(UserContext uc, Benutzer user, de.xima.cmn.criteria.QueryCriteriaManager qcm) throws com.alibaba.fastjson.JSONException, IOException
Deprecated.Builds the XML export ofVorgang´s determined with anQueryCriteriaManager- Parameters:
 uc- theUserContextto user for the exportuser- theBenutzerto filter the records for. If the user haven´t access to the current inbox of an process, it shouldn´t be exportedqcm- theQueryCriteriaManagerto read theVorgang´s- Returns:
 - the 
FdToXmlResult - Throws:
 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 export
 
- 
buildForProjectInbox
@Deprecated public FdToXmlResult buildForProjectInbox(UserContext uc, List<ExtendedEntityModel<Vorgang>> records) throws com.alibaba.fastjson.JSONException, IOException
Deprecated.- Parameters:
 uc- theUserContextto user for the exportrecords- the List ofExtendedEntityModel´s ofVorgang´s- Returns:
 - the 
FdToXmlResult - Throws:
 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 export
 
- 
buildForProcessIDs
@Deprecated public FdToXmlResult buildForProcessIDs(UserContext uc, Benutzer user, List<Long> processIDs) throws com.alibaba.fastjson.JSONException, IOException, InterruptedException
Deprecated.UsebuildForProcessIDs(UserContext, IUser, List)instead.Builds the XML export of anListofVorgang.getId()´s- Parameters:
 uc- theUserContextto user for the exportuser- theBenutzerto filter the records for. If the user haven´t access to the current inbox of an process, it shouldn´t be exportedprocessIDs- anListofVorgang.getId()'s- Returns:
 - the 
FdToXmlResult - Throws:
 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 exportInterruptedException- when the thread for writing data is interrupted
 
 - 
 
 -