Class DocumentTemplateWebController
- java.lang.Object
-
- org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
-
- org.silverpeas.core.web.mvc.webcomponent.WebComponentController<DocumentTemplateWebRequestContext>
-
- org.silverpeas.web.documenttemplate.DocumentTemplateWebController
-
- All Implemented Interfaces:
Serializable
,ComponentSessionController
,SessionCloseable
@WebComponentController("documentTemplates") public class DocumentTemplateWebController extends WebComponentController<DocumentTemplateWebRequestContext>
- Author:
- silveryocha
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static String
DOC_TEMPLATE_COMPONENT_NAME
-
Fields inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
context
-
-
Constructor Summary
Constructors Constructor Description DocumentTemplateWebController(MainSessionController controller, ComponentContext context)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createDocumentTemplate(DocumentTemplateWebRequestContext context)
void
deleteDocumentTemplates(DocumentTemplateWebRequestContext context)
String
getComponentName()
Return the name of the component (as specified in the xmlComponent)void
home(DocumentTemplateWebRequestContext context)
void
modifyDocumentTemplate(DocumentTemplateWebRequestContext context)
void
newDocumentTemplate(DocumentTemplateWebRequestContext context)
protected void
onInstantiation(DocumentTemplateWebRequestContext 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.void
refreshDocumentTemplates(DocumentTemplateWebRequestContext context)
void
sortDocumentTemplates(DocumentTemplateWebRequestContext context)
void
updateDocumentTemplate(DocumentTemplateWebRequestContext 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
-
DOC_TEMPLATE_COMPONENT_NAME
public static final String DOC_TEMPLATE_COMPONENT_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
DocumentTemplateWebController
public DocumentTemplateWebController(MainSessionController controller, ComponentContext context)
-
-
Method Detail
-
onInstantiation
protected void onInstantiation(DocumentTemplateWebRequestContext 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<DocumentTemplateWebRequestContext>
- 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("documentTemplates.jsp") @LowestRoleAccess(ADMIN) public void home(DocumentTemplateWebRequestContext context)
-
newDocumentTemplate
@GET @Path("new") @RedirectToInternalJsp("documentTemplateSaveFragment.jsp") @LowestRoleAccess(ADMIN) public void newDocumentTemplate(DocumentTemplateWebRequestContext context)
-
createDocumentTemplate
@POST @Path("create") @Produces("application/json") @LowestRoleAccess(ADMIN) public void createDocumentTemplate(DocumentTemplateWebRequestContext context)
-
modifyDocumentTemplate
@GET @Path("modify/{id}") @RedirectToInternalJsp("documentTemplateSaveFragment.jsp") @LowestRoleAccess(ADMIN) public void modifyDocumentTemplate(DocumentTemplateWebRequestContext context)
-
updateDocumentTemplate
@POST @Path("update/{id}") @Produces("application/json") @LowestRoleAccess(ADMIN) public void updateDocumentTemplate(DocumentTemplateWebRequestContext context)
-
deleteDocumentTemplates
@POST @Path("deleteSelected") @Produces("application/json") @LowestRoleAccess(ADMIN) public void deleteDocumentTemplates(DocumentTemplateWebRequestContext context)
-
refreshDocumentTemplates
@GET @Path("refreshList") @Produces("application/json") @LowestRoleAccess(ADMIN) public void refreshDocumentTemplates(DocumentTemplateWebRequestContext context)
-
sortDocumentTemplates
@POST @Path("sort") @Produces("application/json") @LowestRoleAccess(ADMIN) public void sortDocumentTemplates(DocumentTemplateWebRequestContext context)
-
-