Class MyDBWebController
java.lang.Object
org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
org.silverpeas.core.web.mvc.webcomponent.WebComponentController<MyDBWebRequestContext>
org.silverpeas.components.mydb.web.MyDBWebController
- All Implemented Interfaces:
Serializable,org.silverpeas.core.web.mvc.controller.ComponentSessionController,org.silverpeas.core.web.session.SessionCloseable
@WebComponentController("myDB")
public class MyDBWebController
extends org.silverpeas.core.web.mvc.webcomponent.WebComponentController<MyDBWebRequestContext>
The web controller of the MyDB application. Like all the web controllers in
Silverpeas, it is both session-scoped and spawn per application instance.
- Author:
- mmoquillon
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
context -
Constructor Summary
ConstructorsConstructorDescriptionMyDBWebController(org.silverpeas.core.web.mvc.controller.MainSessionController controller, org.silverpeas.core.web.mvc.controller.ComponentContext context) Constructs a new Web controller for the specified context and with theMainSessionControllerinstance that is specific to the user behind the access to the underlying application instance. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddNewTableRow(MyDBWebRequestContext context) voiddeleteTableRow(MyDBWebRequestContext context) voideditConnection(MyDBWebRequestContext context) voiderror(MyDBWebRequestContext context) voidfilterTableContent(MyDBWebRequestContext context) voidvoidgetNewTableRowForm(MyDBWebRequestContext context) voidgetTableRowForm(MyDBWebRequestContext context) voidhome(MyDBWebRequestContext context) protected voidonInstantiation(MyDBWebRequestContext context) voidsaveConnection(MyDBWebRequestContext context) voidselectTable(MyDBWebRequestContext context) voidupdateTableRow(MyDBWebRequestContext context) voidviewTableContent(MyDBWebRequestContext context) Methods inherited from class org.silverpeas.core.web.mvc.webcomponent.WebComponentController
beforeRequestProcessingMethods inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, close, getClipboardErrorMessage, getClipboardExceptionError, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, 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 Details
-
MAIN_ARRAY_PANE_NAME
- See Also:
-
FK_ARRAY_PANE_NAME
- See Also:
-
FK_SELECTED
- See Also:
-
TABLE_VIEW
- See Also:
-
USE_LAST_LOADED_ROWS
- See Also:
-
ALL_TABLES
- See Also:
-
COMPARING_COLUMN
- See Also:
-
COMPARING_OPERATOR
- See Also:
-
COMPARING_VALUE
- See Also:
-
COMPARING_OPERATORS
- See Also:
-
ALL_COLUMNS
- See Also:
-
UI_ROW_ID
- See Also:
-
ROW
- See Also:
-
ERROR_MESSAGE
- See Also:
-
-
Constructor Details
-
MyDBWebController
public MyDBWebController(org.silverpeas.core.web.mvc.controller.MainSessionController controller, org.silverpeas.core.web.mvc.controller.ComponentContext context) Constructs a new Web controller for the specified context and with theMainSessionControllerinstance that is specific to the user behind the access to the underlying application instance.- Parameters:
controller- the main session controller for the current user.context- the context identifying among others the targeted application instance.
-
-
Method Details
-
onInstantiation
- Specified by:
onInstantiationin classorg.silverpeas.core.web.mvc.webcomponent.WebComponentController<MyDBWebRequestContext>
-
home
@GET @Path("Main") @Homepage @RedirectToInternal("{nextView}") @LowestRoleAccess(READER) public void home(MyDBWebRequestContext context) -
error
@GET @Path("Error") @RedirectToInternalJsp("error.jsp") @LowestRoleAccess(READER) public void error(MyDBWebRequestContext context) -
viewTableContent
@GET @Path("ViewTable") @RedirectToInternalJsp("mydb.jsp") @LowestRoleAccess(READER) public void viewTableContent(MyDBWebRequestContext context) -
getNewTableRowForm
@GET @Path("NewRow") @RedirectToInternalJsp("rowForm.jsp") @LowestRoleAccess(PUBLISHER) public void getNewTableRowForm(MyDBWebRequestContext context) -
getTableRowForm
@GET @Path("GetRow") @RedirectToInternalJsp("rowForm.jsp") @LowestRoleAccess(PUBLISHER) public void getTableRowForm(MyDBWebRequestContext context) -
getForeignKeyTableViewFrom
@GET @Path("ViewTargetTable") @RedirectToInternalJsp("fkTable.jsp") @LowestRoleAccess(PUBLISHER) public void getForeignKeyTableViewFrom(MyDBWebRequestContext context) -
addNewTableRow
@POST @Path("AddRow") @RedirectToInternalJsp("mydb.jsp") @LowestRoleAccess(PUBLISHER) public void addNewTableRow(MyDBWebRequestContext context) -
updateTableRow
@POST @Path("UpdateRow") @RedirectToInternalJsp("mydb.jsp") @LowestRoleAccess(PUBLISHER) public void updateTableRow(MyDBWebRequestContext context) -
deleteTableRow
@POST @Path("DeleteRow") @RedirectToInternalJsp("mydb.jsp") @LowestRoleAccess(PUBLISHER) public void deleteTableRow(MyDBWebRequestContext context) -
selectTable
@POST @Path("SetTable") @Produces("application/json") @LowestRoleAccess(READER) public void selectTable(MyDBWebRequestContext context) -
filterTableContent
@POST @Path("FilterTable") @RedirectToInternalJsp("mydb.jsp") @LowestRoleAccess(READER) public void filterTableContent(MyDBWebRequestContext context) -
editConnection
@GET @Path("ConnectionSetting") @RedirectToInternalJsp("connectionSettings.jsp") @LowestRoleAccess(value=ADMIN, onError=@RedirectTo("Main")) public void editConnection(MyDBWebRequestContext context) -
saveConnection
@POST @Path("UpdateConnection") @RedirectToInternal("{nextView}") @LowestRoleAccess(value=PUBLISHER, onError=@RedirectTo("Main")) public void saveConnection(MyDBWebRequestContext context)
-