com.silverpeas.external.webConnections.dao
Class WebConnectionService

java.lang.Object
  extended by com.silverpeas.external.webConnections.dao.WebConnectionService
All Implemented Interfaces:
WebConnectionsInterface

public class WebConnectionService
extends Object
implements WebConnectionsInterface

Author:

Constructor Summary
WebConnectionService()
           
 
Method Summary
 void createWebConnection(ConnectionDetail connection)
          create a new connection
 void deleteWebConnection(String connectionId, String userId)
          delete the connection corresponding to connectionId
 ConnectionDetail getWebConnection(String componentId, String userId)
          get the connection corresponding to componentId and userId
 ConnectionDetail getWebConnectionById(String connectionId, String userId)
          get the connection corresponding to connectionId
 List<ConnectionDetail> listWebConnectionsOfUser(String userId)
          get all connections for the user corresponding to userId
 void updateWebConnection(String connectionId, String login, String password, String userId)
          update the connection corresponding to connectionId, with login and password
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WebConnectionService

public WebConnectionService()
Method Detail

getWebConnection

public ConnectionDetail getWebConnection(String componentId,
                                         String userId)
Description copied from interface: WebConnectionsInterface
get the connection corresponding to componentId and userId

Specified by:
getWebConnection in interface WebConnectionsInterface
Parameters:
componentId - : String
userId - : String
Returns:
connection : ConnectionDetail

getWebConnectionById

public ConnectionDetail getWebConnectionById(String connectionId,
                                             String userId)
Description copied from interface: WebConnectionsInterface
get the connection corresponding to connectionId

Specified by:
getWebConnectionById in interface WebConnectionsInterface
Parameters:
connectionId - : String
userId - : String
Returns:
connection : ConnectionDetail

createWebConnection

public void createWebConnection(ConnectionDetail connection)
Description copied from interface: WebConnectionsInterface
create a new connection

Specified by:
createWebConnection in interface WebConnectionsInterface
Parameters:
connection - : ConnectionDetail

deleteWebConnection

public void deleteWebConnection(String connectionId,
                                String userId)
Description copied from interface: WebConnectionsInterface
delete the connection corresponding to connectionId

Specified by:
deleteWebConnection in interface WebConnectionsInterface
Parameters:
connectionId - : String
userId - : String

updateWebConnection

public void updateWebConnection(String connectionId,
                                String login,
                                String password,
                                String userId)
Description copied from interface: WebConnectionsInterface
update the connection corresponding to connectionId, with login and password

Specified by:
updateWebConnection in interface WebConnectionsInterface
Parameters:
connectionId - : String
login - : String
password - : String
userId - : String

listWebConnectionsOfUser

public List<ConnectionDetail> listWebConnectionsOfUser(String userId)
                                                throws RemoteException
Description copied from interface: WebConnectionsInterface
get all connections for the user corresponding to userId

Specified by:
listWebConnectionsOfUser in interface WebConnectionsInterface
Parameters:
userId - : String
Returns:
a list of ConnectionDetail
Throws:
RemoteException


Copyright © 2016 Silverpeas. All Rights Reserved.