Package de.xima.fc.gui.bean.project
Class ProjectTemplateBean
-
- All Implemented Interfaces:
Serializable
@Named @ViewScoped public class ProjectTemplateBean extends FCContextBean
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
ProjectTemplateBean.EntitySelectModelImpl
-
Nested classes/interfaces inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
AJSFContext.RedirectOptions, AJSFContext.RedirectOptionsBuilder
-
-
Field Summary
-
Fields inherited from class de.xima.fc.gui.bean.FCContextBean
systemUC
-
-
Constructor Summary
Constructors Constructor Description ProjectTemplateBean()
-
Method Summary
-
Methods inherited from class de.xima.fc.gui.bean.FCContextBean
getNavigationBean, getSessionBean, isSetupUser, redirectToDashboard, setNavigationBean, setSessionBean, switchMainView, switchMainView, switchSubView, switchSubView
-
Methods inherited from class de.xima.fc.gui.bean.ABackendJSFContext
ec, findEntityContext, isDetached, isHasDB
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.AJSFContext
destroySessionBean, encodeURL, findBean, findBean, findBean, findBean, findBean, findBean, findBean, findCurrentView, findUserContext, getBeanName, getBeanName, getContext, getCurrentViewBean, getLocaleBean, getRequest, getResponse, getSession, getSession, getSessionAttribute, isMasterServerContext, loadLazy, redirect, redirect, redirect, redirect, redirectToDashboard, redirectToDashboard, setLocaleBean, setSessionAttribute, uc
-
Methods inherited from class de.xima.fc.gui.common.utils.msg.MessageUtils
addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsg, addErrorMsgFromString, addErrorMsgFromString, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addErrorMsgToComponent, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsg, addInfoMsgFromString, addInfoMsgFromString, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addInfoMsgToComponent, addMsg, addMsg, addMsg, addMsg, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg
-
-
-
-
Method Detail
-
loadTemplates
public void loadTemplates(String projectScope, boolean entities, boolean plugins)
Method to load the templates
-
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()
-
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.
-
getFormStoreUrls
public List<StoreUrl> getFormStoreUrls()
- Returns:
- The base URLs to the FORMCYCLE form store pages.
-
getTemplates
public List<IProjectTemplateViewModel> getTemplates()
-
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.
-
updateProjectTemplates
@Deprecated public void updateProjectTemplates()
Deprecated.use #updateTemplates()
-
updateTemplates
@Deprecated public void updateTemplates()
Deprecated.
-
loadProjectTemplates
@Deprecated public void loadProjectTemplates(String projectScope)
Deprecated.- Parameters:
projectScope
- the project scope to use for loading templats
-
loadTemplates
@Deprecated public void loadTemplates(String projectScope)
Deprecated.- Parameters:
projectScope
- the project scope to use for loading templats
-
loadPluginTemplates
@Deprecated public void loadPluginTemplates()
Deprecated.usegetTemplates()
-
getPluginProjectTemplates
@Deprecated public List<IProjectTemplate> getPluginProjectTemplates()
Deprecated.usegetTemplates()
- Returns:
List
ofIProjectTemplate
-
getProjectTemplates
@Deprecated public List<Projekt> getProjectTemplates()
Deprecated.usegetTemplates()
-
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)
-
-