com.silverpeas.external.webConnections.model
Interface WebConnectionsInterface

All Known Implementing Classes:
WebConnectionService

public interface WebConnectionsInterface


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
 

Method Detail

getWebConnection

ConnectionDetail getWebConnection(String componentId,
                                  String userId)
get the connection corresponding to componentId and userId

Parameters:
componentId - : String
userId - : String
Returns:
connection : ConnectionDetail

getWebConnectionById

ConnectionDetail getWebConnectionById(String connectionId,
                                      String userId)
get the connection corresponding to connectionId

Parameters:
connectionId - : String
userId - : String
Returns:
connection : ConnectionDetail

createWebConnection

void createWebConnection(ConnectionDetail connection)
create a new connection

Parameters:
connection - : ConnectionDetail

deleteWebConnection

void deleteWebConnection(String connectionId,
                         String userId)
delete the connection corresponding to connectionId

Parameters:
connectionId - : String
userId - : String

updateWebConnection

void updateWebConnection(String connectionId,
                         String login,
                         String password,
                         String userId)
update the connection corresponding to connectionId, with login and password

Parameters:
connectionId - : String
login - : String
password - : String
userId - : String

listWebConnectionsOfUser

List<ConnectionDetail> listWebConnectionsOfUser(String userId)
                                                throws RemoteException
get all connections for the user corresponding to userId

Parameters:
userId - : String
Returns:
a list of ConnectionDetail
Throws:
RemoteException


Copyright © 2016 Silverpeas. All Rights Reserved.