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()
ProjectInviteData
getInvData()
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()
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()
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()
sends mails and/or creates processesvoid
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, addMsgToComponent, addMsgToComponent, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsg, addWarnMsgFromString, addWarnMsgFromString, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, addWarnMsgToComponent, cleanErrorMsg, getErrorMessage, getNewErrorMsg, getNewErrorMsg, getNewErrorMsg, getNewInfoMsg, getNewInfoMsg, getNewMsg, getNewWarnMsg, getNewWarnMsg
-
-
-
-
Method Detail
-
save
public void save()
saves all changed data to invData and updates database- Overrides:
save
in classAProjectDetailsBean
-
send
public void send()
sends mails and/or creates processes
-
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
-
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
-
onChangeDatasource
public void onChangeDatasource() throws IOException
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
public String getConfirmText()
Confirm Text of how many processes will be build- Returns:
- Confirm Text
-
getMaxInvMessage
public String getMaxInvMessage()
Message of how many invitations are allowed to send- Returns:
- Max invitation message
-
getNumEntriesMessage
public String 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, 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
-
generateAllFormElements
public List<String> generateAllFormElements()
Liefert Liste mit allen Upload-Element der aktuell aktiven Formularversion- Returns:
List
of all form elements
-
addNewParameter
public ParameterModel addNewParameter()
-
addNewParameter
public void addNewParameter(IParameterModel model)
-
removeParameter
public void removeParameter(int idx)
-
tryToInit
public void tryToInit(int idx)
-
getPointofMail
public int getPointofMail()
-
isInvitationsUnlimited
public boolean isInvitationsUnlimited()
-
getMaxInvitations
public int getMaxInvitations()
-
setMaxInvitations
public void setMaxInvitations(int maxInvitations)
-
getAllData
public List<Datenquelle> getAllData()
-
setAllData
public void setAllData(List<Datenquelle> allData)
-
isDsUnavailable
public boolean isDsUnavailable()
-
setDsUnavailable
public void setDsUnavailable(boolean dsUnavailable)
-
getAllMails
public int getAllMails()
-
setAllMails
public void setAllMails(int allMails)
-
getViewEventBusBean
public ViewEventBusBean getViewEventBusBean()
-
setViewEventBusBean
public void setViewEventBusBean(ViewEventBusBean viewEventBusBean)
-
isParamsAreMandatory
public boolean isParamsAreMandatory()
-
setParamsAreMandatory
public void setParamsAreMandatory(boolean paramsAreMandatory)
-
getParameter
public List<IParameterModel> getParameter()
-
setParameter
public void setParameter(List<IParameterModel> parameter)
-
getViewBean
public ViewBean getViewBean()
-
setViewBean
public void setViewBean(ViewBean viewBean)
-
getMaxNumberRows
public int getMaxNumberRows()
-
setMaxNumberRows
public void setMaxNumberRows(int maxNumberRows)
-
isDatasourceSelected
public boolean isDatasourceSelected()
-
setDatasourceSelected
public void setDatasourceSelected(boolean datasourceSelected)
-
setInvData
public void setInvData(ProjectInviteData invData)
-
getInvData
public ProjectInviteData getInvData()
-
getDatasourceModel
public InviteDatasourceModel getDatasourceModel()
-
setDatasourceModel
public void setDatasourceModel(InviteDatasourceModel datasourceModel)
-
init
protected void init(IEntityContext ec, Projekt entity)
- Overrides:
init
in classAEntityDetailsBean<Projekt>
-
update
@Deprecated public void update()
Deprecated.
-
-