Package de.xima.fc.gui.bean.project
Class ProjectInviteBean
- All Implemented Interfaces:
Serializable
- See Also:
-
Field Summary
Fields inherited from class de.xima.fc.gui.bean.AEntityDetailsBean
entity
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNewParameter
(IParameterModel model) void
remove context Placeholders on close dialogcreateEmptyFeDatei
(Vorgang process) creates an empty FeDatei with default valuescreateEmptyProcess
(Projekt project, IFormRequestContext reqCtx, IEntityContext ec) creates an empty process and saves it in vorgang databaseLiefert Liste mit allen Upload-Element der aktuell aktiven Formularversionint
Confirm Text of how many processes will be buildint
Message of how many invitations are allowed to sendint
Message of how many entries are available in the datasourceint
protected void
init
(IEntityContext ec, Projekt entity) int
void
initMaps()
Initialize mapping of form element and values to write intovoid
add context Placeholders on open dialogboolean
boolean
boolean
boolean
boolean
void
Updates all variables that are dependent on the selected datasourcereads 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
setAllData
(List<Datenquelle> allData) 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, 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
-
Constructor Details
-
ProjectInviteBean
public ProjectInviteBean()
-
-
Method Details
-
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. -
createEmptyProcess
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
-
createEmptyFeDatei
creates an empty FeDatei with default values- Parameters:
process
- the process zo create anFormEingang
for- Returns:
- empty FeDatei with default values
-
onChangeDatasource
Updates all variables that are dependent on the selected datasource- Throws:
IOException
- on errors during parsing the datasource
-
initializeMaxNumberRows
public int initializeMaxNumberRows() -
initMaps
public void initMaps()Initialize mapping of form element and values to write into -
getConfirmText
Confirm Text of how many processes will be build- Returns:
- Confirm Text
-
getMaxInvMessage
Message of how many invitations are allowed to send- Returns:
- Max invitation message
-
getNumEntriesMessage
Message of how many entries are available in the datasource- Returns:
- Max invitation message
-
closePlaceholders
public void closePlaceholders()remove context Placeholders on close dialog -
initPlaceholders
public void initPlaceholders()add context Placeholders on open dialog -
readFormElements
public List<String> readFormElements() throws ContextBuilderException, com.alibaba.fastjson.JSONException, IOExceptionreads 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
-
generateAllFormElements
Liefert Liste mit allen Upload-Element der aktuell aktiven Formularversion- Returns:
List
of all form elements
-
addNewParameter
-
addNewParameter
-
removeParameter
public void removeParameter(int idx) -
tryToInit
public void tryToInit(int idx) -
getPointofMail
public int getPointofMail() -
isInvitationsUnlimited
public boolean isInvitationsUnlimited() -
getAllStats
-
setAllStats
-
getMaxInvitations
public int getMaxInvitations() -
setMaxInvitations
public void setMaxInvitations(int maxInvitations) -
getAllData
-
setAllData
-
getAllMails
public int getAllMails() -
setAllMails
public void setAllMails(int allMails) -
getViewEventBusBean
-
setViewEventBusBean
-
isParamsAreMandatory
public boolean isParamsAreMandatory() -
setParamsAreMandatory
public void setParamsAreMandatory(boolean paramsAreMandatory) -
getParameter
-
setParameter
-
getViewBean
-
setViewBean
-
getMaxNumberRows
public int getMaxNumberRows() -
setMaxNumberRows
public void setMaxNumberRows(int maxNumberRows) -
isDatasourceSelected
public boolean isDatasourceSelected() -
setDatasourceSelected
public void setDatasourceSelected(boolean datasourceSelected) -
setInvData
-
getInvData
-
getDatasourceModel
-
setDatasourceModel
-
getInfoMessages
-
getWarnAnonymousNotAllowedMessage
-
isShowInfoPanel
public boolean isShowInfoPanel() -
getMailServerData
-
init
- Overrides:
init
in classAEntityDetailsBean<Projekt>
-
update
Deprecated.
-