com.silverpeas.external.webConnections.control
Class WebConnectionsSessionController

java.lang.Object
  extended by com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
      extended by com.silverpeas.external.webConnections.control.WebConnectionsSessionController
All Implemented Interfaces:
ComponentSessionController

public class WebConnectionsSessionController
extends AbstractComponentSessionController


Field Summary
 
Fields inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
CHARACTER_ENCODING, context
 
Constructor Summary
WebConnectionsSessionController(MainSessionController mainSessionCtrl, ComponentContext componentContext)
          Standard Session Controller Constructeur
 
Method Summary
 void createConnection(ConnectionDetail connection)
          create a new connection
 void deleteConnection(String connectionId)
          delete the connection corresponding to connectionId
 ConnectionDetail getConnection(String componentId)
          get the connection for the componentId
 ConnectionDetail getConnectionById(String connectionId)
          get the connection corresponding to connectionId
 List<ConnectionDetail> getConnectionsByUser()
          get all the connections for the current user
 void updateConnection(String connectionId, String login, String password)
          update the connection (corresponding to connectionId) with the login and the password
 
Methods inherited from class com.stratelia.silverpeas.peasCore.AbstractComponentSessionController
addClipboardSelection, clipboardPasteDone, close, getAlertUser, getClipboardCount, getClipboardErrorMessage, getClipboardExceptionError, getClipboardName, getClipboardObjects, getClipboardSelectedObjects, getClipboardSize, getComponentAccessController, getComponentId, getComponentLabel, getComponentName, getComponentParameters, getComponentParameterValue, getComponentParameterValue, getComponentRootName, getComponentUrl, getFavoriteSpace, getGenericPanel, getHighestSilverpeasUserRole, getIcon, getLanguage, getLastResults, getLook, getMultilang, getOrganisationController, getPersonalization, getRSSUrl, getSelection, getServerNameAndPort, getSettings, getSilverpeasUserRoles, getSpaceId, getSpaceLabel, getString, getSubscriptionContext, getUrlEncodedParameter, getUserAccessLevel, getUserAvailComponentIds, getUserAvailSpaceIds, getUserDetail, getUserDetail, getUserId, getUserManageableGroupIds, getUserManageableSpaceIds, getUserRoleLevel, getUserRoles, isAppInMaintenance, isGroupManager, isPasswordChangeAllowed, isSpaceInMaintenance, removeClipboardElement, setAppModeMaintenance, setClipboardError, setClipboardSelectedElement, setComponentRootName, setFavoriteSpaceToMainSessionController, setGenericPanel, setIconFileName, setLastResults, setMultilangFileName, setResourceFileName, setSpaceModeMaintenance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebConnectionsSessionController

public WebConnectionsSessionController(MainSessionController mainSessionCtrl,
                                       ComponentContext componentContext)
Standard Session Controller Constructeur

Parameters:
mainSessionCtrl - The user's profile
componentContext - The component's profile
See Also:
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 - : String
login - : String
password - : 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


Copyright © 2016 Silverpeas. All Rights Reserved.