Class ProjectTemplateBean

All Implemented Interfaces:
Serializable

@Named @ViewScoped public class ProjectTemplateBean extends FCContextBean
Author:
XIMA MEDIA GmbH
See Also:
  • Constructor Details

    • ProjectTemplateBean

      public ProjectTemplateBean()
  • Method Details

    • loadTemplates

      public void loadTemplates(String projectScope, boolean entities, boolean plugins)
      Method to load the templates
      Parameters:
      projectScope - String the scope of the templates to load
      entities - Boolean if template-entities should be load
      plugins - Boolean if template-plugins should be load
    • isShowInstallButton

      public boolean isShowInstallButton()
      Returns:
      When importing a form from the form store, whether to display the button to install the form.
    • isShowUpdateButton

      public boolean isShowUpdateButton()
      Returns:
      When importing a form from the form store, whether to display the button to update the form.
    • uploadStoreFile

      public void uploadStoreFile()
      Remote command listener when a file from the form store is uploaded.
    • continueWithImport

      public void continueWithImport(boolean update)
    • openNewProjectDialog

      public boolean openNewProjectDialog()
    • close

      public void close() throws Exception
      Throws:
      Exception
    • isStoreFormFileValid

      public boolean isStoreFormFileValid()
      Returns:
      Whether the uploaded store form file is valid.
    • isAskForUpdate

      public boolean isAskForUpdate()
      Returns:
      When a store form file was uploaded an a form with the same UUID exists already, whether to ask the user if they want to update the form or create a new form.
    • getFormStoreUrl

      public String getFormStoreUrl()
      Returns:
      The base URL to the formcycle form store page.
    • getFormStoreIconUrl

      public String getFormStoreIconUrl(StoreUrl store)
    • getFormStoreUrls

      public List<StoreUrl> getFormStoreUrls()
      Returns:
      The base URLs to the formcycle form store pages.
    • getTemplates

      public List<IProjectTemplateViewModel> getTemplates()
    • getImageLink

      public String getImageLink(Projekt poject)
    • delete

      public void delete(Projekt project)
    • getModel

      public IEntitySelectModel<Projekt> getModel()
    • setModel

      public void setModel(IEntitySelectModel<Projekt> model)
    • updateModel

      public void updateModel()
    • onClickOpenFormStore

      public void onClickOpenFormStore(int storeIndex, String storeUrl)
      When the user clicks on the form card to open the form store. Adds the required data that need to be sent to the form store.
    • handleStoreError

      public void handleStoreError()
      Shows a localized error message when an error occurred that is related to the form store.
    • updateProjectTemplates

      @Deprecated public void updateProjectTemplates()
      Deprecated.
    • updateTemplates

      @Deprecated public void updateTemplates()
    • loadProjectTemplates

      @Deprecated public void loadProjectTemplates(String projectScope)
      Parameters:
      projectScope - the project scope to use for loading templates
    • loadTemplates

      @Deprecated public void loadTemplates(String projectScope)
      Parameters:
      projectScope - the project scope to use for loading templats
    • loadPluginTemplates

      @Deprecated public void loadPluginTemplates()
      Deprecated.
    • getPluginProjectTemplates

      @Deprecated public List<IProjectTemplate> getPluginProjectTemplates()
      Deprecated.
      Returns:
      List of IProjectTemplate
    • getProjectTemplates

      @Deprecated public List<Projekt> getProjectTemplates()
      Deprecated.
      Returns:
      List of Projekt-Templates
    • getVersionWarning

      public String getVersionWarning()
    • setVersionWarning

      public void setVersionWarning(String versionWarning)
    • getStoreFormData

      public String getStoreFormData()
      Returns:
      A JSON array with the data of the currently existing forms. Used by the form store to display which forms are already installed.
    • getMissingPluginsWarning

      public String getMissingPluginsWarning()
    • setMissingPluginsWarning

      public void setMissingPluginsWarning(String missingPluginsWarning)
    • getStoreFile

      public ValidatedFormStoreFile getStoreFile()
    • setStoreFile

      public void setStoreFile(ValidatedFormStoreFile storeFile)
    • getProjectImportBean

      public ProjectImportBean getProjectImportBean()
    • setProjectImportBean

      public void setProjectImportBean(ProjectImportBean projectImportBean)
    • getUploadFile

      public File getUploadFile()
    • setUploadFile

      public void setUploadFile(File uploadFile)