public class FormVersionAPI extends AEntityAPI<FormVersion>
FormVersion entities.entityClass| Constructor and Description | 
|---|
FormVersionAPI()  | 
| Modifier and Type | Method and Description | 
|---|---|
FormVersion | 
create(UserContext uc,
      FormVersion formVersion,
      boolean isFirstFormVersion)
Method for creating a  
FormVersion entity. | 
FormVersion | 
getBy(UserContext uc,
     Projekt projekt,
     int formVersionNumber)
Method for determining a  
FormVersion based of a Projekt and a version number. | 
List<FormVersion> | 
getByProjekt(UserContext uc,
            Projekt projekt)
Method for loading of  
FormVersions of a Projekt. | 
com.alibaba.fastjson.JSONObject | 
getFormAsJSON(UserContext uc,
             FormVersion fv)
This method deliver the JSON for creating a XForm without any styles. 
 | 
String | 
getFormAsString(UserContext uc,
               FormVersion fv)  | 
List<FormElement> | 
getFormElemente(UserContext uc,
               FormVersion formVersion)
Method to submit all  
FormElements of a FormVersion. | 
int | 
getFormVersionCount(UserContext uc,
                   Projekt projekt)
Method for determining the number of  
FormVersions of a Projekt. | 
com.alibaba.fastjson.JSONObject | 
mergeFormElemente(UserContext uc,
                 FormVersion fv)
Deprecated.  
 | 
create, create, delete, delete, deleteAllBy, deleteById, deleteById, getAll, getAllBy, getAttributes, getAttributes, getBy, getById, getById, getSingleAttributes, getSingleAttributes, resultTotalCount, resultTotalCount, update, updategetHandlerProviderpublic FormVersion create(UserContext uc, FormVersion formVersion, boolean isFirstFormVersion)
FormVersion entity.uc - UserContext the user context in which the action is to be performed.formVersion - FormVersion which should be created.isFirstFormVersion - Boolean if this is the first FormVersion or just a derivation of an
 existing one.FormVersion which was created.public FormVersion getBy(UserContext uc, Projekt projekt, int formVersionNumber)
FormVersion based of a Projekt and a version number.uc - UserContext the user context in which the action is to be performed.projekt - Projekt in which the FormVersion is searched.formVersionNumber - Integer the version number.FormVersion which was searched.public List<FormVersion> getByProjekt(UserContext uc, Projekt projekt)
FormVersions of a Projekt. Methode zum Laden von FormVersionen eines
 Projekts. This must be used in the frontend server to pick up the lazy-initialized list of
 FormVersions.uc - UserContext the user context in which the action is to be performed.projekt - Projekt for which the FormVersions to be picked up.List with FormVersions.public int getFormVersionCount(UserContext uc, Projekt projekt)
FormVersions of a Projekt.uc - UserContext the user context in which the action is to be performed.projekt - Projekt whose number of FormVersions should be determined.Integer the number of FormVersions.public List<FormElement> getFormElemente(UserContext uc, FormVersion formVersion)
FormElements of a FormVersion. This must be used in the frontend server to
 pick up the lazy-initialized list of FormElements.uc - UserContext the user context in which the action is to be performed.formVersion - for which the list of FormElement should be loaded.List of type FormElement.public com.alibaba.fastjson.JSONObject getFormAsJSON(UserContext uc, FormVersion fv) throws IOException, com.alibaba.fastjson.JSONException
uc - UserContext the user context in which the action is to be performed.fv - the FormVersion which indicates which JSON should be loaded.IOException - Error reading the form file.com.alibaba.fastjson.JSONException - Error converting form file content to a JSON.public String getFormAsString(UserContext uc, FormVersion fv) throws IOException, com.alibaba.fastjson.JSONException
IOExceptioncom.alibaba.fastjson.JSONException@Deprecated public com.alibaba.fastjson.JSONObject mergeFormElemente(UserContext uc, FormVersion fv) throws com.alibaba.fastjson.JSONException, IOException
com.alibaba.fastjson.JSONExceptionIOExceptionCopyright © 2020 XIMA MEDIA GmbH. All rights reserved.