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 String
MYLINKS_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 void
beforeRequestProcessing(MyLinksPeasWebRequestContext context)
Permits to perform some common initializations.void
deleteCategories(MyLinksPeasWebRequestContext context)
Removes categories from the persistence.void
deleteLinks(MyLinksPeasWebRequestContext context)
Removes links from the persistence.void
editCategory(MyLinksPeasWebRequestContext context)
Gets the form HTML block of a category for a modification.void
editLink(MyLinksPeasWebRequestContext context)
Gets the form HTML block of a link for a modification.String
getComponentName()
Return the name of the component (as specified in the xmlComponent)void
home(MyLinksPeasWebRequestContext context)
Prepares the rendering of the home page.void
newCategory(MyLinksPeasWebRequestContext context)
Gets the form HTML block of a category for a creation.void
newLink(MyLinksPeasWebRequestContext context)
Gets the form HTML block of a link for a creation.protected void
onInstantiation(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.void
updateCategoryOnly(MyLinksPeasWebRequestContext context)
Gets the form HTML block of a link for an update of category of several links.void
viewCategories(MyLinksPeasWebRequestContext context)
Views the categories.void
viewComponentInstanceLinks(MyLinksPeasWebRequestContext context)
Views the links of a component instance.void
viewLinks(MyLinksPeasWebRequestContext context)
Views the links.void
viewResourceLinks(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: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<MyLinksPeasWebRequestContext>
- 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
-
beforeRequestProcessing
protected void beforeRequestProcessing(MyLinksPeasWebRequestContext context)
Description copied from class:WebComponentController
Permits to perform some common initializations. The method is called just before the method behing the identified path is invoked.- Overrides:
beforeRequestProcessing
in 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.
-
-