Class WebConnectionService
- java.lang.Object
-
- org.silverpeas.core.web.external.webconnections.dao.WebConnectionService
-
- All Implemented Interfaces:
ComponentInstanceDeletion
,WebConnectionsInterface
@Service @Singleton public class WebConnectionService extends Object implements WebConnectionsInterface, ComponentInstanceDeletion
- Author:
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
WebConnectionService()
Hidden constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
createWebConnection(ConnectionDetail connection)
create a new connectionvoid
delete(String componentInstanceId)
Deletes the resources belonging to the specified component instance.void
deleteWebConnection(String connectionId, String userId)
delete the connection corresponding to connectionIdConnectionDetail
getWebConnection(String componentId, String userId)
get the connection corresponding to componentId and userIdConnectionDetail
getWebConnectionById(String connectionId, String userId)
get the connection corresponding to connectionIdList<ConnectionDetail>
listWebConnectionsOfUser(String userId)
get all connections for the user corresponding to userIdvoid
updateWebConnection(String connectionId, String login, String password, String userId)
update the connection corresponding to connectionId, with login and password
-
-
-
Method Detail
-
delete
public void delete(String componentInstanceId)
Description copied from interface:ComponentInstanceDeletion
Deletes the resources belonging to the specified component instance. This method is invoked by Silverpeas when a component instance is being deleted.- Specified by:
delete
in interfaceComponentInstanceDeletion
- Parameters:
componentInstanceId
- the unique identifier of a component instance.
-
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 interfaceWebConnectionsInterface
- Parameters:
componentId
- : StringuserId
- : 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 interfaceWebConnectionsInterface
- Parameters:
connectionId
- : StringuserId
- : String- Returns:
- connection : ConnectionDetail
-
createWebConnection
public void createWebConnection(ConnectionDetail connection)
Description copied from interface:WebConnectionsInterface
create a new connection- Specified by:
createWebConnection
in interfaceWebConnectionsInterface
- 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 interfaceWebConnectionsInterface
- Parameters:
connectionId
- : StringuserId
- : 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 interfaceWebConnectionsInterface
- Parameters:
connectionId
- : Stringlogin
- : Stringpassword
- : StringuserId
- : 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 interfaceWebConnectionsInterface
- Parameters:
userId
- : String- Returns:
- a list of ConnectionDetail
- Throws:
RemoteException
-
-