Package org.silverpeas.web.mylinks
Class MyLinksPeasWebController
- java.lang.Object
-
- org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
-
- org.silverpeas.core.web.mvc.webcomponent.WebComponentController<MyLinksPeasWebRequestContext>
-
- org.silverpeas.web.mylinks.MyLinksPeasWebController
-
- All Implemented Interfaces:
Serializable,ComponentSessionController,SessionCloseable
@WebComponentController("myLinksPeas") public class MyLinksPeasWebController extends WebComponentController<MyLinksPeasWebRequestContext>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringMYLINKS_COMPONENT_NAME-
Fields inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
context
-
-
Constructor Summary
Constructors Constructor Description MyLinksPeasWebController(MainSessionController mainSessionCtrl, ComponentContext componentContext)Standard Session Controller Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidbeforeRequestProcessing(MyLinksPeasWebRequestContext context)Permits to perform some common initializations.voiddeleteCategories(MyLinksPeasWebRequestContext context)Removes categories from the persistence.voiddeleteLinks(MyLinksPeasWebRequestContext context)Removes links from the persistence.voideditCategory(MyLinksPeasWebRequestContext context)Gets the form HTML block of a category for a modification.voideditLink(MyLinksPeasWebRequestContext context)Gets the form HTML block of a link for a modification.StringgetComponentName()Return the name of the component (as specified in the xmlComponent)voidhome(MyLinksPeasWebRequestContext context)Prepares the rendering of the home page.voidnewCategory(MyLinksPeasWebRequestContext context)Gets the form HTML block of a category for a creation.voidnewLink(MyLinksPeasWebRequestContext context)Gets the form HTML block of a link for a creation.protected voidonInstantiation(MyLinksPeasWebRequestContext 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.voidupdateCategoryOnly(MyLinksPeasWebRequestContext context)Gets the form HTML block of a link for an update of category of several links.voidviewCategories(MyLinksPeasWebRequestContext context)Views the categories.voidviewComponentInstanceLinks(MyLinksPeasWebRequestContext context)Views the links of a component instance.voidviewLinks(MyLinksPeasWebRequestContext context)Views the links.voidviewResourceLinks(MyLinksPeasWebRequestContext context)Views the links of an object hosted by a component instance.-
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
-
MYLINKS_COMPONENT_NAME
public static final String MYLINKS_COMPONENT_NAME
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MyLinksPeasWebController
public MyLinksPeasWebController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
Standard Session Controller Constructor- Parameters:
mainSessionCtrl- The user's profilecomponentContext- The component's profile
-
-
Method Detail
-
onInstantiation
protected void onInstantiation(MyLinksPeasWebRequestContext 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<MyLinksPeasWebRequestContext>- 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
-
beforeRequestProcessing
protected void beforeRequestProcessing(MyLinksPeasWebRequestContext context)
Description copied from class:WebComponentControllerPermits to perform some common initializations. The method is called just before the method behing the identified path is invoked.- Overrides:
beforeRequestProcessingin classWebComponentController<MyLinksPeasWebRequestContext>- Parameters:
context- the context of the request in relation with the web controller
-
home
@GET @Path("Main") @Homepage @RedirectToInternal("ViewLinks") public void home(MyLinksPeasWebRequestContext context)Prepares the rendering of the home page.- Parameters:
context- the context of the incoming request.
-
viewCategories
@GET @Path("ViewCategories") @RedirectToInternalJsp("viewCategories.jsp") public void viewCategories(MyLinksPeasWebRequestContext context)Views the categories.- Parameters:
context- the context of the incoming request.
-
newCategory
@GET @Path("categories/new/form") @RedirectToInternalJsp("categoryFormBlock.jsp") public void newCategory(MyLinksPeasWebRequestContext context)Gets the form HTML block of a category for a creation.- Parameters:
context- the context of the incoming request.
-
editCategory
@GET @Path("categories/{catId}/form") @RedirectToInternalJsp("categoryFormBlock.jsp") public void editCategory(MyLinksPeasWebRequestContext context)Gets the form HTML block of a category for a modification.- Parameters:
context- the context of the incoming request.
-
deleteCategories
@GET @Path("RemoveCategories") @RedirectToInternal("ViewCategories") public void deleteCategories(MyLinksPeasWebRequestContext context)Removes categories from the persistence.- Parameters:
context- the context of the incoming request.
-
viewLinks
@GET @Path("ViewLinks") @RedirectToInternalJsp("viewLinks.jsp") public void viewLinks(MyLinksPeasWebRequestContext context)Views the links.- Parameters:
context- the context of the incoming request.
-
newLink
@GET @Path("links/new/form") @RedirectToInternalJsp("linkFormBlock.jsp") public void newLink(MyLinksPeasWebRequestContext context)Gets the form HTML block of a link for a creation.- Parameters:
context- the context of the incoming request.
-
updateCategoryOnly
@GET @Path("links/updateCategoryOnly/form") @RedirectToInternal("links/new/form") public void updateCategoryOnly(MyLinksPeasWebRequestContext context)Gets the form HTML block of a link for an update of category of several links.- Parameters:
context- the context of the incoming request.
-
editLink
@GET @Path("links/{linkId}/form") @RedirectToInternalJsp("linkFormBlock.jsp") public void editLink(MyLinksPeasWebRequestContext context)Gets the form HTML block of a link for a modification.- Parameters:
context- the context of the incoming request.
-
deleteLinks
@GET @Path("RemoveLinks") @RedirectToInternal("ViewLinks") public void deleteLinks(MyLinksPeasWebRequestContext context)Removes links from the persistence.- Parameters:
context- the context of the incoming request.
-
viewComponentInstanceLinks
@GET @Path("ComponentLinks") @RedirectToInternal("ViewLinks") public void viewComponentInstanceLinks(MyLinksPeasWebRequestContext context)Views the links of a component instance.- Parameters:
context- the context of the incoming request.
-
viewResourceLinks
@GET @Path("ObjectLinks") @RedirectToInternal("ViewLinks") public void viewResourceLinks(MyLinksPeasWebRequestContext context)Views the links of an object hosted by a component instance.- Parameters:
context- the context of the incoming request.
-
-