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 String
WBE_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 String
getComponentName()
Return the name of the component (as specified in the xmlComponent)void
home(DragAndDropWebEditorRequestContext context)
String
load(DragAndDropWebEditorRequestContext context)
protected void
onInstantiation(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> T
process(DragAndDropWebEditorRequestContext context, Function<DragAndDropWebEditorFileEditionContext,T> supplier)
String
resetTemporaryContent(DragAndDropWebEditorRequestContext context)
void
result(DragAndDropWebEditorRequestContext context)
void
sendToMe(DragAndDropWebEditorRequestContext context)
String
store(DragAndDropWebEditorRequestContext context)
String
storeThumbnail(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:WebComponentController
This 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:
onInstantiation
in classWebComponentController<DragAndDropWebEditorRequestContext>
- Parameters:
context
- the web request context.
-
getComponentName
public String getComponentName()
Description copied from interface:ComponentSessionController
Return the name of the component (as specified in the xmlComponent)- Specified by:
getComponentName
in interfaceComponentSessionController
- Overrides:
getComponentName
in 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)
-
-