Class FormsOnlineSessionController
- java.lang.Object
-
- org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
-
- org.silverpeas.components.formsonline.control.FormsOnlineSessionController
-
- All Implemented Interfaces:
Serializable,org.silverpeas.core.web.mvc.controller.ComponentSessionController,org.silverpeas.core.web.session.SessionCloseable
public class FormsOnlineSessionController extends org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringUSER_PANEL_INTERMEDIATE_RECEIVERS_PREFIXstatic StringUSER_PANEL_RECEIVERS_PREFIXstatic StringUSER_PANEL_SENDERS_PREFIX
-
Constructor Summary
Constructors Constructor Description FormsOnlineSessionController(org.silverpeas.core.web.mvc.controller.MainSessionController mainSessionCtrl, org.silverpeas.core.web.mvc.controller.ComponentContext componentContext)Standard Session Controller Constructeur
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidarchiveRequest(String id, boolean notify)intarchiveRequests(Set<String> ids)voidcancelRequest(String id)voiddeleteForm(int formId)voiddeleteRequest(String id, boolean notify)intdeleteRequests(Set<String> ids)org.silverpeas.core.web.export.ExportCSVBuilderexport()List<FormDetail>getAllForms(boolean withSendInfo)RequestsByStatusgetAllUserRequests()RequestsByStatusgetAllValidatorRequests()Set<String>getAvailableFormIdsAsReceiver()List<FormDetail>getAvailableFormsToSend()StringgetBestProfile()org.silverpeas.core.admin.component.model.ComponentInstLightgetComponentInstLight()org.silverpeas.core.contribution.content.form.FormgetCurrentEmptyForm()FormDetailgetCurrentForm()intgetCurrentStateFilter()FormInstanceValidationTypegetCurrentValidationTypeFilter()org.silverpeas.core.contribution.content.form.FormgetEmptyForm(String xmlFormName)org.silverpeas.core.contribution.content.form.PagesContextgetFormPageContext()RequestsByStatusgetHomepageValidatorRequests()Set<String>getSelectedValidatorRequestIds()List<org.silverpeas.core.contribution.template.publication.PublicationTemplate>getTemplates()StringinitSelectionIntermediateReceivers(List<String> userIds, List<String> groupIds)StringinitSelectionReceivers(List<String> userIds, List<String> groupIds)StringinitSelectionSenders(List<String> userIds, List<String> groupIds)FormInstanceloadRequest(String id, boolean editionMode)voidpublishForm(String formId)voidresetCurrentForm()voidsaveCurrentForm(List<String> senderUserIds, List<String> senderGroupIds, List<String> intermediateReceiverUserIds, List<String> intermediateReceiverGroupIds, List<String> receiverUserIds, List<String> receiverGroupIds)voidsaveRequest(List<org.apache.commons.fileupload.FileItem> items, boolean draft)voidsetCurrentFilter(int state, FormInstanceValidationType validationType)FormDetailsetCurrentForm(String id)voidsetCurrentForm(FormDetail form)voidunpublishForm(String formId)voidupdateValidationStatus(String requestId, String decision, String comments, boolean follower)-
Methods inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, close, getClipboardErrorMessage, getClipboardExceptionError, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getHighestSilverpeasUserRole, getIcon, getLanguage, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getSettings, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoles, getZoneId, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setAppModeMaintenance, setClipboardSelectedElement, setComponentRootName, setSpaceModeMaintenance
-
-
-
-
Field Detail
-
USER_PANEL_SENDERS_PREFIX
public static final String USER_PANEL_SENDERS_PREFIX
- See Also:
- Constant Field Values
-
USER_PANEL_RECEIVERS_PREFIX
public static final String USER_PANEL_RECEIVERS_PREFIX
- See Also:
- Constant Field Values
-
USER_PANEL_INTERMEDIATE_RECEIVERS_PREFIX
public static final String USER_PANEL_INTERMEDIATE_RECEIVERS_PREFIX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
FormsOnlineSessionController
public FormsOnlineSessionController(org.silverpeas.core.web.mvc.controller.MainSessionController mainSessionCtrl, org.silverpeas.core.web.mvc.controller.ComponentContext componentContext)Standard Session Controller Constructeur- Parameters:
mainSessionCtrl- The user's profilecomponentContext- The component's profile
-
-
Method Detail
-
getAllForms
public List<FormDetail> getAllForms(boolean withSendInfo) throws FormsOnlineException
- Throws:
FormsOnlineException
-
setCurrentForm
public void setCurrentForm(FormDetail form)
-
resetCurrentForm
public void resetCurrentForm()
-
setCurrentForm
public FormDetail setCurrentForm(String id) throws FormsOnlineException
- Throws:
FormsOnlineException
-
getCurrentForm
public FormDetail getCurrentForm()
-
setCurrentFilter
public void setCurrentFilter(int state, FormInstanceValidationType validationType)
-
getCurrentStateFilter
public int getCurrentStateFilter()
-
getCurrentValidationTypeFilter
public FormInstanceValidationType getCurrentValidationTypeFilter()
-
saveCurrentForm
public void saveCurrentForm(List<String> senderUserIds, List<String> senderGroupIds, List<String> intermediateReceiverUserIds, List<String> intermediateReceiverGroupIds, List<String> receiverUserIds, List<String> receiverGroupIds) throws FormsOnlineException
- Throws:
FormsOnlineException
-
deleteForm
public void deleteForm(int formId) throws FormsOnlineException- Throws:
FormsOnlineException
-
initSelectionSenders
public String initSelectionSenders(List<String> userIds, List<String> groupIds)
-
initSelectionReceivers
public String initSelectionReceivers(List<String> userIds, List<String> groupIds)
-
initSelectionIntermediateReceivers
public String initSelectionIntermediateReceivers(List<String> userIds, List<String> groupIds)
-
publishForm
public void publishForm(String formId) throws FormsOnlineException
- Throws:
FormsOnlineException
-
unpublishForm
public void unpublishForm(String formId) throws FormsOnlineException
- Throws:
FormsOnlineException
-
getAvailableFormsToSend
public List<FormDetail> getAvailableFormsToSend() throws FormsOnlineException
- Throws:
FormsOnlineException
-
saveRequest
public void saveRequest(List<org.apache.commons.fileupload.FileItem> items, boolean draft) throws FormsOnlineException
- Throws:
FormsOnlineException
-
getAvailableFormIdsAsReceiver
public Set<String> getAvailableFormIdsAsReceiver() throws FormsOnlineException
- Throws:
FormsOnlineException
-
loadRequest
public FormInstance loadRequest(String id, boolean editionMode) throws FormsOnlineException
- Throws:
FormsOnlineException
-
updateValidationStatus
public void updateValidationStatus(String requestId, String decision, String comments, boolean follower) throws FormsOnlineException
- Throws:
FormsOnlineException
-
cancelRequest
public void cancelRequest(String id) throws FormsOnlineException
- Throws:
FormsOnlineException
-
archiveRequest
public void archiveRequest(String id, boolean notify) throws FormsOnlineException
- Throws:
FormsOnlineException
-
archiveRequests
public int archiveRequests(Set<String> ids) throws FormsOnlineException
- Throws:
FormsOnlineException
-
deleteRequest
public void deleteRequest(String id, boolean notify) throws FormsOnlineException
- Throws:
FormsOnlineException
-
deleteRequests
public int deleteRequests(Set<String> ids) throws FormsOnlineException
- Throws:
FormsOnlineException
-
getTemplates
public List<org.silverpeas.core.contribution.template.publication.PublicationTemplate> getTemplates()
-
getAllUserRequests
public RequestsByStatus getAllUserRequests() throws FormsOnlineException
- Throws:
FormsOnlineException
-
getHomepageValidatorRequests
public RequestsByStatus getHomepageValidatorRequests() throws FormsOnlineException
- Throws:
FormsOnlineException
-
getAllValidatorRequests
public RequestsByStatus getAllValidatorRequests() throws FormsOnlineException
- Throws:
FormsOnlineException
-
getCurrentEmptyForm
public org.silverpeas.core.contribution.content.form.Form getCurrentEmptyForm() throws org.silverpeas.core.SilverpeasException- Throws:
org.silverpeas.core.SilverpeasException
-
getEmptyForm
public org.silverpeas.core.contribution.content.form.Form getEmptyForm(String xmlFormName) throws org.silverpeas.core.SilverpeasException
- Throws:
org.silverpeas.core.SilverpeasException
-
export
public org.silverpeas.core.web.export.ExportCSVBuilder export() throws org.silverpeas.core.SilverpeasException- Throws:
org.silverpeas.core.SilverpeasException
-
getComponentInstLight
public org.silverpeas.core.admin.component.model.ComponentInstLight getComponentInstLight()
-
getBestProfile
public String getBestProfile()
-
getFormPageContext
public org.silverpeas.core.contribution.content.form.PagesContext getFormPageContext()
-
-