Class WebConnectionsSessionController
- java.lang.Object
-
- org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
-
- org.silverpeas.web.external.webconnections.control.WebConnectionsSessionController
-
- All Implemented Interfaces:
Serializable
,ComponentSessionController
,SessionCloseable
public class WebConnectionsSessionController extends AbstractComponentSessionController
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.silverpeas.core.web.mvc.controller.AbstractComponentSessionController
context
-
-
Constructor Summary
Constructors Constructor Description WebConnectionsSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
Standard Session Controller Constructeur
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createConnection(ConnectionDetail connection)
create a new connectionvoid
deleteConnection(String connectionId)
delete the connection corresponding to connectionIdConnectionDetail
getConnection(String componentId)
get the connection for the componentIdConnectionDetail
getConnectionById(String connectionId)
get the connection corresponding to connectionIdList<ConnectionDetail>
getConnectionsByUser()
get all the connections for the current uservoid
updateConnection(String connectionId, String login, String password)
update the connection (corresponding to connectionId) with the login and the password-
Methods 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
-
-
-
-
Constructor Detail
-
WebConnectionsSessionController
public WebConnectionsSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
Standard Session Controller Constructeur- Parameters:
mainSessionCtrl
- The user's profilecomponentContext
- The component's profile
-
-
Method Detail
-
getConnection
public ConnectionDetail getConnection(String componentId)
get the connection for the componentId- Parameters:
componentId
- : String- Returns:
- connection : ConnectionDetail
-
getConnectionById
public ConnectionDetail getConnectionById(String connectionId)
get the connection corresponding to connectionId- Parameters:
connectionId
- : String- Returns:
- the connection : ConnectionDetail
-
updateConnection
public void updateConnection(String connectionId, String login, String password)
update the connection (corresponding to connectionId) with the login and the password- Parameters:
connectionId
- : Stringlogin
- : Stringpassword
- : String
-
deleteConnection
public void deleteConnection(String connectionId)
delete the connection corresponding to connectionId- Parameters:
connectionId
- : String
-
createConnection
public void createConnection(ConnectionDetail connection)
create a new connection- Parameters:
connection
- : ConnectionDetail
-
getConnectionsByUser
public List<ConnectionDetail> getConnectionsByUser() throws RemoteException
get all the connections for the current user- Returns:
- a list of ConnectionDetail
- Throws:
RemoteException
-
-