Package de.xima.fc.gui.bean.project
Class ProjectTemplateBean
- All Implemented Interfaces:
Serializable
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Nested Class Summary
Nested ClassesNested 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 -
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
void
continueWithImport
(boolean update) void
getFormStoreIconUrl
(StoreUrl store) getImageLink
(Projekt poject) getModel()
Deprecated.Deprecated.usegetTemplates()
void
Shows a localized error message when an error occurred that is related to the form store.boolean
boolean
boolean
boolean
void
Deprecated.usegetTemplates()
void
loadProjectTemplates
(String projectScope) Deprecated.void
loadTemplates
(String projectScope) Deprecated.void
loadTemplates
(String projectScope, boolean entities, boolean plugins) Method to load the templatesvoid
onClickOpenFormStore
(int storeIndex, String storeUrl) When the user clicks on the form card to open the form store.boolean
void
setMissingPluginsWarning
(String missingPluginsWarning) void
setModel
(IEntitySelectModel<Projekt> model) void
setProjectImportBean
(ProjectImportBean projectImportBean) void
setStoreFile
(ValidatedFormStoreFile storeFile) void
setUploadFile
(File uploadFile) void
setVersionWarning
(String versionWarning) void
void
Deprecated.use #updateTemplates()
void
Deprecated.void
Remote command listener when a file from the form store is uploaded.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, 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, addMsgs, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, errorMsg, errorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg, msg
Methods inherited from class de.xima.fc.gui.common.utils.msg.I18nUtils
getFacesContext, getLocale, rbValue, rbValue, rbValue, rbValueOrDefault, rbValueOrDefault
-
Constructor Details
-
ProjectTemplateBean
public ProjectTemplateBean()
-
-
Method Details
-
loadTemplates
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() -
close
- 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
- Returns:
- The base URL to the formcycle form store page.
-
getFormStoreIconUrl
-
getFormStoreUrls
- Returns:
- The base URLs to the formcycle form store pages.
-
getTemplates
-
getImageLink
-
delete
-
getModel
-
setModel
-
updateModel
public void updateModel() -
onClickOpenFormStore
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.use #updateTemplates()
-
updateTemplates
Deprecated. -
loadProjectTemplates
Deprecated.- Parameters:
projectScope
- the project scope to use for loading templates
-
loadTemplates
Deprecated.- Parameters:
projectScope
- the project scope to use for loading templats
-
loadPluginTemplates
Deprecated.usegetTemplates()
-
getPluginProjectTemplates
Deprecated.usegetTemplates()
- Returns:
List
ofIProjectTemplate
-
getProjectTemplates
Deprecated.usegetTemplates()
-
getVersionWarning
-
setVersionWarning
-
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
-
setMissingPluginsWarning
-
getStoreFile
-
setStoreFile
-
getProjectImportBean
-
setProjectImportBean
-
getUploadFile
-
setUploadFile
-
getTemplates()