public class PlaceholderBean extends FCContextBean
Modifier and Type | Class and Description |
---|---|
static class |
PlaceholderBean.PlaceHolder |
static class |
PlaceholderBean.PlaceHolderBuilder |
static class |
PlaceholderBean.PlaceholderProjectChangeHandler |
AJSFContext.RedirectOptions, AJSFContext.RedirectOptionsBuilder
systemUC
Constructor and Description |
---|
PlaceholderBean() |
Modifier and Type | Method and Description |
---|---|
void |
clean() |
CurrentProjectBean |
getCurrentProjectBean() |
List<PlaceholderBean.PlaceHolder> |
getForCurrentContext()
All available placeholders, depending on the current context (ie. whether the user is editing a project etc.).
|
List<PlaceholderBean.PlaceHolder> |
getFormPlaceholder(FormVersion fv,
boolean onlyUploads) |
Collection<Projekt> |
getProjects() |
PlaceholderBean.PlaceHolder |
getSelectedPlaceholder() |
Projekt |
getSelectedProject() |
ViewEventBusBean |
getViewEventBusBean() |
void |
init() |
boolean |
isShowProjectSelection()
If the user is editing the workflow of a project, they cannot use placeholders of other projects.
|
void |
setCurrentProjectBean(CurrentProjectBean currentProjectBean) |
void |
setSelectedPlaceholder(PlaceholderBean.PlaceHolder selectedPlaceholder) |
void |
setSelectedProject(Projekt selectedProject) |
void |
setViewEventBusBean(ViewEventBusBean viewEventBusBean) |
getNavigationBean, getSessionBean, isSetupUser, redirectToDashboard, setNavigationBean, setSessionBean, switchMainView, switchMainView, switchSubView, switchSubView
ec, isDetached, isHasDB
destroySessionBean, encodeURL, findBean, findBean, findBean, findBean, findCurrentView, getBeanName, getBeanName, getContext, getCurrentViewBean, getLocaleBean, getRequest, getResponse, getSession, getSession, getSessionAttribute, isMasterServerContext, loadLazy, redirect, redirect, redirect, redirect, redirectToDashboard, redirectToDashboard, setLocaleBean, setSessionAttribute, uc
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
@PostConstruct public void init()
@PreDestroy public void clean()
public ViewEventBusBean getViewEventBusBean()
public void setViewEventBusBean(ViewEventBusBean viewEventBusBean)
public PlaceholderBean.PlaceHolder getSelectedPlaceholder()
public void setSelectedPlaceholder(PlaceholderBean.PlaceHolder selectedPlaceholder)
selectedPlaceholder
- The currently selected placeholder in the placeholder list.public CurrentProjectBean getCurrentProjectBean()
public void setCurrentProjectBean(CurrentProjectBean currentProjectBean)
public Projekt getSelectedProject()
public void setSelectedProject(Projekt selectedProject)
selectedProject
- The project for which form placeholders are shown.public boolean isShowProjectSelection()
public Collection<Projekt> getProjects()
getSelectedProject()
.public List<PlaceholderBean.PlaceHolder> getForCurrentContext()
public List<PlaceholderBean.PlaceHolder> getFormPlaceholder(FormVersion fv, boolean onlyUploads)
fv
- The form version for which to retrieve the form element placeholders.onlyUploads
- Iff true
, only include upload elements.Copyright © 2019 XIMA MEDIA GmbH. All rights reserved.