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 TypeMethodDescriptionvoidclose()voidcontinueWithImport(boolean update) voidgetFormStoreIconUrl(StoreUrl store) getImageLink(Projekt poject) getModel()Deprecated.Deprecated.usegetTemplates()voidShows a localized error message when an error occurred that is related to the form store.booleanbooleanbooleanbooleanvoidDeprecated.usegetTemplates()voidloadProjectTemplates(String projectScope) Deprecated.voidloadTemplates(String projectScope) Deprecated.voidloadTemplates(String projectScope, boolean entities, boolean plugins) Method to load the templatesvoidonClickOpenFormStore(int storeIndex, String storeUrl) When the user clicks on the form card to open the form store.booleanvoidsetMissingPluginsWarning(String missingPluginsWarning) voidsetModel(IEntitySelectModel<Projekt> model) voidsetProjectImportBean(ProjectImportBean projectImportBean) voidsetStoreFile(ValidatedFormStoreFile storeFile) voidsetUploadFile(File uploadFile) voidsetVersionWarning(String versionWarning) voidvoidDeprecated.use #updateTemplates()voidDeprecated.voidRemote 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, switchSubViewMethods inherited from class de.xima.fc.gui.bean.ABackendJSFContext
ec, findEntityContext, isDetached, isHasDBMethods 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, ucMethods 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, msgMethods 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:
 ListofIProjectTemplate
 - 
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()