Package org.silverpeas.web.ddwe
Class DragAndDropWebEditorController
- java.lang.Object
-
- org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
-
- org.silverpeas.core.web.mvc.webcomponent.WebComponentController<DragAndDropWebEditorRequestContext>
-
- org.silverpeas.web.ddwe.DragAndDropWebEditorController
-
- All Implemented Interfaces:
Serializable,ComponentSessionController,SessionCloseable
@WebComponentController("ddwe") public class DragAndDropWebEditorController extends WebComponentController<DragAndDropWebEditorRequestContext>
Handles the Drag&Drop Web Editor.- Author:
- silveryocha
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringWBE_COMPONENT_NAME-
Fields inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
context
-
-
Constructor Summary
Constructors Constructor Description DragAndDropWebEditorController(MainSessionController controller, ComponentContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetComponentName()Return the name of the component (as specified in the xmlComponent)voidhome(DragAndDropWebEditorRequestContext context)Stringload(DragAndDropWebEditorRequestContext context)protected voidonInstantiation(DragAndDropWebEditorRequestContext context)This method is called one times just after the web controller is instantiated and just before the call of the HTTP web controller method.protected <T> Tprocess(DragAndDropWebEditorRequestContext context, Function<DragAndDropWebEditorFileEditionContext,T> supplier)StringresetTemporaryContent(DragAndDropWebEditorRequestContext context)voidresult(DragAndDropWebEditorRequestContext context)voidsendToMe(DragAndDropWebEditorRequestContext context)Stringstore(DragAndDropWebEditorRequestContext context)StringstoreThumbnail(DragAndDropWebEditorRequestContext context)-
Methods inherited from class org.silverpeas.core.web.mvc.webcomponent.WebComponentController
beforeRequestProcessing
-
Methods inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, close, getClipboardErrorMessage, getClipboardExceptionError, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, 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
-
WBE_COMPONENT_NAME
public static final String WBE_COMPONENT_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DragAndDropWebEditorController
public DragAndDropWebEditorController(MainSessionController controller, ComponentContext context)
-
-
Method Detail
-
onInstantiation
protected void onInstantiation(DragAndDropWebEditorRequestContext context)
Description copied from class:WebComponentControllerThis method is called one times just after the web controller is instantiated and just before the call of the HTTP web controller method.- Specified by:
onInstantiationin classWebComponentController<DragAndDropWebEditorRequestContext>- Parameters:
context- the web request context.
-
getComponentName
public String getComponentName()
Description copied from interface:ComponentSessionControllerReturn the name of the component (as specified in the xmlComponent)- Specified by:
getComponentNamein interfaceComponentSessionController- Overrides:
getComponentNamein classAbstractComponentSessionController
-
home
@GET @Path("Main") @Homepage @RedirectToInternalJsp("editor.jsp") public void home(DragAndDropWebEditorRequestContext context)
-
resetTemporaryContent
@POST @Path("rstTmpContent") @Produces("application/json") public String resetTemporaryContent(DragAndDropWebEditorRequestContext context)
-
store
@POST @Path("store") @Produces("application/json") public String store(DragAndDropWebEditorRequestContext context)
-
storeThumbnail
@POST @Path("thumbnail") @Produces("application/json") public String storeThumbnail(DragAndDropWebEditorRequestContext context)
-
load
@GET @Path("load") @Produces("application/json") public String load(DragAndDropWebEditorRequestContext context)
-
result
@GET @Path("result") @RedirectToInternalJsp("result.jsp") public void result(DragAndDropWebEditorRequestContext context)
-
sendToMe
@GET @Path("sendToMe") @Produces("application/json") public void sendToMe(DragAndDropWebEditorRequestContext context)
-
process
protected <T> T process(DragAndDropWebEditorRequestContext context, Function<DragAndDropWebEditorFileEditionContext,T> supplier)
-
-