Package de.xima.fc.gui.bean.project
Class ProjectInviteBean
-
- All Implemented Interfaces:
Serializable
@Named @ViewScoped public class ProjectInviteBean extends AProjectDetailsBean
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class de.xima.fc.gui.bean.AEntityDetailsBean
entity
-
-
Constructor Summary
Constructors Constructor Description ProjectInviteBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description ParameterModel
addNewParameter()
void
addNewParameter(IParameterModel model)
void
closePlaceholders()
remove context Placeholders on close dialogFormEingangDatei
createEmptyFeDatei(Vorgang process)
creates an empty FeDatei with default valuesVorgang
createEmptyProcess(Projekt project, IFormRequestContext reqCtx, IEntityContext ec)
creates an empty process and saves it in vorgang databaseList<String>
generateAllFormElements()
Liefert Liste mit allen Upload-Element der aktuell aktiven FormularversionList<Datenquelle>
getAllData()
int
getAllMails()
List<Status>
getAllStats()
String
getConfirmText()
Confirm Text of how many processes will be buildInviteDatasourceModel
getDatasourceModel()
List<org.apache.commons.lang3.tuple.Pair<String,String>>
getInfoMessages()
ProjectInviteData
getInvData()
IMailServerData
getMailServerData()
int
getMaxInvitations()
String
getMaxInvMessage()
Message of how many invitations are allowed to sendint
getMaxNumberRows()
String
getNumEntriesMessage()
Message of how many entries are available in the datasourceList<IParameterModel>
getParameter()
int
getPointofMail()
ViewBean
getViewBean()
ViewEventBusBean
getViewEventBusBean()
String
getWarnAnonymousNotAllowedMessage()
protected void
init(IEntityContext ec, Projekt entity)
int
initializeMaxNumberRows()
void
initMaps()
Initialize mapping of form element and values to write intovoid
initPlaceholders()
add context Placeholders on open dialogboolean
isDatasourceSelected()
boolean
isDsUnavailable()
boolean
isInvitationsUnlimited()
boolean
isParamsAreMandatory()
boolean
isShowInfoPanel()
void
onChangeDatasource()
Updates all variables that are dependent on the selected datasourceList<String>
readFormElements()
reads all form elements and saves the valuable onesvoid
removeParameter(int idx)
void
save()
saves all changed data to invData and updates databasevoid
send()
Creates a new form record for each data row.void
setAllMails(int allMails)
void
setAllStats(List<Status> allStats)
void
setDatasourceModel(InviteDatasourceModel datasourceModel)
void
setDatasourceSelected(boolean datasourceSelected)
void
setDsUnavailable(boolean dsUnavailable)
void
setInvData(ProjectInviteData invData)
void
setMaxInvitations(int maxInvitations)
void
setMaxNumberRows(int maxNumberRows)
void
setParameter(List<IParameterModel> parameter)
void
setParamsAreMandatory(boolean paramsAreMandatory)
void
setViewBean(ViewBean viewBean)
void
setViewEventBusBean(ViewEventBusBean viewEventBusBean)
void
tryToInit(int idx)
void
update()
Deprecated.-
Methods inherited from class de.xima.fc.gui.bean.project.AProjectDetailsBean
getCurrentProjectBean, getDao, getProject, getSessionBean, initLazy, reloadProject, setCurrentProjectBean, setEntity, setEntity, setProject, setProject, setSessionBean
-
Methods inherited from class de.xima.fc.gui.bean.AEntityDetailsBean
getEntity
-
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
-
-
-
-
Method Detail
-
addNewParameter
public ParameterModel addNewParameter()
-
addNewParameter
public void addNewParameter(IParameterModel model)
-
closePlaceholders
public void closePlaceholders()
remove context Placeholders on close dialog
-
createEmptyFeDatei
public FormEingangDatei createEmptyFeDatei(Vorgang process)
creates an empty FeDatei with default values- Parameters:
process
- the process zo create anFormEingang
for- Returns:
- empty FeDatei with default values
-
createEmptyProcess
public Vorgang createEmptyProcess(Projekt project, IFormRequestContext reqCtx, IEntityContext ec)
creates an empty process and saves it in vorgang database- Parameters:
project
- the project to create the process forreqCtx
- the request-contextec
- the entity-context- Returns:
- empty Process with default values
-
generateAllFormElements
public List<String> generateAllFormElements()
Liefert Liste mit allen Upload-Element der aktuell aktiven Formularversion- Returns:
List
of all form elements
-
getAllData
public List<Datenquelle> getAllData()
-
getAllMails
public int getAllMails()
-
setAllMails
public void setAllMails(int allMails)
-
getConfirmText
public String getConfirmText()
Confirm Text of how many processes will be build- Returns:
- Confirm Text
-
getDatasourceModel
public InviteDatasourceModel getDatasourceModel()
-
setDatasourceModel
public void setDatasourceModel(InviteDatasourceModel datasourceModel)
-
getInvData
public ProjectInviteData getInvData()
-
setInvData
public void setInvData(ProjectInviteData invData)
-
getMailServerData
public IMailServerData getMailServerData()
-
getMaxInvMessage
public String getMaxInvMessage()
Message of how many invitations are allowed to send- Returns:
- Max invitation message
-
getMaxInvitations
public int getMaxInvitations()
-
setMaxInvitations
public void setMaxInvitations(int maxInvitations)
-
getMaxNumberRows
public int getMaxNumberRows()
-
setMaxNumberRows
public void setMaxNumberRows(int maxNumberRows)
-
getNumEntriesMessage
public String getNumEntriesMessage()
Message of how many entries are available in the datasource- Returns:
- Max invitation message
-
getParameter
public List<IParameterModel> getParameter()
-
setParameter
public void setParameter(List<IParameterModel> parameter)
-
getPointofMail
public int getPointofMail()
-
getViewBean
public ViewBean getViewBean()
-
setViewBean
public void setViewBean(ViewBean viewBean)
-
getViewEventBusBean
public ViewEventBusBean getViewEventBusBean()
-
setViewEventBusBean
public void setViewEventBusBean(ViewEventBusBean viewEventBusBean)
-
getWarnAnonymousNotAllowedMessage
public String getWarnAnonymousNotAllowedMessage()
-
initMaps
public void initMaps()
Initialize mapping of form element and values to write into
-
initPlaceholders
public void initPlaceholders()
add context Placeholders on open dialog
-
initializeMaxNumberRows
public int initializeMaxNumberRows()
-
isDatasourceSelected
public boolean isDatasourceSelected()
-
setDatasourceSelected
public void setDatasourceSelected(boolean datasourceSelected)
-
isDsUnavailable
public boolean isDsUnavailable()
-
setDsUnavailable
public void setDsUnavailable(boolean dsUnavailable)
-
isInvitationsUnlimited
public boolean isInvitationsUnlimited()
-
isParamsAreMandatory
public boolean isParamsAreMandatory()
-
setParamsAreMandatory
public void setParamsAreMandatory(boolean paramsAreMandatory)
-
isShowInfoPanel
public boolean isShowInfoPanel()
-
onChangeDatasource
public void onChangeDatasource() throws IOException
Updates all variables that are dependent on the selected datasource- Throws:
IOException
- on errors during parsing the datasource
-
readFormElements
public List<String> readFormElements() throws ContextBuilderException, com.alibaba.fastjson.JSONException, IOException
reads all form elements and saves the valuable ones- Returns:
- form Elements of current form
- Throws:
ContextBuilderException
- on errors during building the request or render-contextcom.alibaba.fastjson.JSONException
- on errors during building the x-formIOException
- on errors during building the x-form
-
removeParameter
public void removeParameter(int idx)
-
save
public void save()
saves all changed data to invData and updates database- Overrides:
save
in classAProjectDetailsBean
-
send
public void send()
Creates a new form record for each data row. Optionally, sends emails and prefills form data when configured in the UI.
-
tryToInit
public void tryToInit(int idx)
-
update
@Deprecated public void update()
Deprecated.
-
init
protected void init(IEntityContext ec, Projekt entity)
- Overrides:
init
in classAEntityDetailsBean<Projekt>
-
-