Class JdbcConnectorWebController
java.lang.Object
org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
org.silverpeas.core.web.mvc.webcomponent.WebComponentController<JdbcConnectorWebRequestContext>
org.silverpeas.components.jdbcconnector.control.JdbcConnectorWebController
- All Implemented Interfaces:
Serializable,org.silverpeas.core.web.mvc.controller.ComponentSessionController,org.silverpeas.core.web.session.SessionCloseable
@WebComponentController("connecteurJDBC")
public class JdbcConnectorWebController
extends org.silverpeas.core.web.mvc.webcomponent.WebComponentController<JdbcConnectorWebRequestContext>
The web controller of the ConnecteurJDBC 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 StringFields inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
context -
Constructor Summary
ConstructorsConstructorDescriptionJdbcConnectorWebController(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 TypeMethodDescriptionvoidvoidvoidhome(JdbcConnectorWebRequestContext context) protected voidvoidvoidvoidportlet(JdbcConnectorWebRequestContext context) voidvoidvoidMethods 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
-
QUERY_RESULT
- See Also:
-
COMPARING_COLUMN
- See Also:
-
COMPARING_OPERATOR
- See Also:
-
COMPARING_VALUE
- See Also:
-
COMPARING_OPERATORS
- See Also:
-
-
Constructor Details
-
JdbcConnectorWebController
public JdbcConnectorWebController(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<JdbcConnectorWebRequestContext>
-
home
@GET @Path("Main") @Homepage @RedirectToInternalJsp("jdbcConnector.jsp") @LowestRoleAccess(READER) public void home(JdbcConnectorWebRequestContext context) -
viewResultSet
@GET @Path("ViewResultSet") @RedirectToInternalJsp("jdbcConnector.jsp") @LowestRoleAccess(READER) public void viewResultSet(JdbcConnectorWebRequestContext context) -
portlet
@GET @Path("portlet") @RedirectToInternalJsp("portlet.jsp") @LowestRoleAccess(READER) public void portlet(JdbcConnectorWebRequestContext context) -
editSQLRequest
@GET @Path("ParameterRequest") @RedirectToInternalJsp("requestParameters.jsp") @LowestRoleAccess(value=PUBLISHER, onError=@RedirectTo("Main")) public void editSQLRequest(JdbcConnectorWebRequestContext context) -
performSQLRequest
@POST @Path("DoRequest") @RedirectToInternalJsp("jdbcConnector.jsp") @LowestRoleAccess(READER) public void performSQLRequest(JdbcConnectorWebRequestContext context) -
editConnection
@GET @Path("ParameterConnection") @RedirectToInternalJsp("connectionParameters.jsp") @LowestRoleAccess(value=ADMIN, onError=@RedirectTo("Main")) public void editConnection(JdbcConnectorWebRequestContext context) -
saveConnection
@POST @Path("UpdateConnection") @RedirectToInternal("{nextView}") @LowestRoleAccess(value=PUBLISHER, onError=@RedirectTo("Main")) public void saveConnection(JdbcConnectorWebRequestContext context) -
saveSQLRequest
@POST @Path("SetSQLRequest") @RedirectToInternal("{nextView}") @LowestRoleAccess(value=PUBLISHER, onError=@RedirectTo("Main")) public void saveSQLRequest(JdbcConnectorWebRequestContext context) -
openRequestEditor
@GET @Path("RequestEditor") @RedirectToInternalJsp("requestEditor.jsp") @LowestRoleAccess(value=PUBLISHER, onError=@RedirectTo("Main")) public void openRequestEditor(JdbcConnectorWebRequestContext context)
-