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 String
USER_PANEL_INTERMEDIATE_RECEIVERS_PREFIX
static String
USER_PANEL_RECEIVERS_PREFIX
static String
USER_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 void
archiveRequest(String id, boolean notify)
int
archiveRequests(Set<String> ids)
void
cancelRequest(String id)
void
deleteForm(int formId)
void
deleteRequest(String id, boolean notify)
int
deleteRequests(Set<String> ids)
org.silverpeas.core.web.export.ExportCSVBuilder
export()
List<FormDetail>
getAllForms(boolean withSendInfo)
RequestsByStatus
getAllUserRequests()
RequestsByStatus
getAllValidatorRequests()
Set<String>
getAvailableFormIdsAsReceiver()
List<FormDetail>
getAvailableFormsToSend()
String
getBestProfile()
org.silverpeas.core.admin.component.model.ComponentInstLight
getComponentInstLight()
org.silverpeas.core.contribution.content.form.Form
getCurrentEmptyForm()
FormDetail
getCurrentForm()
int
getCurrentStateFilter()
FormInstanceValidationType
getCurrentValidationTypeFilter()
org.silverpeas.core.contribution.content.form.Form
getEmptyForm(String xmlFormName)
org.silverpeas.core.contribution.content.form.PagesContext
getFormPageContext()
RequestsByStatus
getHomepageValidatorRequests()
Set<String>
getSelectedValidatorRequestIds()
List<org.silverpeas.core.contribution.template.publication.PublicationTemplate>
getTemplates()
String
initSelectionIntermediateReceivers(List<String> userIds, List<String> groupIds)
String
initSelectionReceivers(List<String> userIds, List<String> groupIds)
String
initSelectionSenders(List<String> userIds, List<String> groupIds)
FormInstance
loadRequest(String id, boolean editionMode)
void
publishForm(String formId)
void
resetCurrentForm()
void
saveCurrentForm(List<String> senderUserIds, List<String> senderGroupIds, List<String> intermediateReceiverUserIds, List<String> intermediateReceiverGroupIds, List<String> receiverUserIds, List<String> receiverGroupIds)
void
saveRequest(List<org.apache.commons.fileupload.FileItem> items, boolean draft)
void
setCurrentFilter(int state, FormInstanceValidationType validationType)
FormDetail
setCurrentForm(String id)
void
setCurrentForm(FormDetail form)
void
unpublishForm(String formId)
void
updateValidationStatus(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()
-
-