Class SessionService
java.lang.Object
com.symphony.bdk.core.service.session.SessionService
- All Implemented Interfaces:
OboService<OboSessionService>
,OboSessionService
@API(status=STABLE)
public class SessionService
extends Object
implements OboSessionService, OboService<OboSessionService>
Service class for exposing endpoints to get user session information.
-
Constructor Summary
ConstructorDescriptionSessionService
(SessionApi sessionApi, AuthSession authSession, RetryWithRecoveryBuilder<?> retryBuilder) SessionService
(SessionApi sessionApi, RetryWithRecoveryBuilder<?> retryBuilder) -
Method Summary
Modifier and TypeMethodDescriptionprotected <T> T
executeAndRetry
(String name, SupplierWithApiException<T> supplier) Retrieves theUserV2
session from the pod using anAuthSession
holder.obo
(AuthSession oboSession) Returns a new service instance with OBO-enabled endpoints from a given OBO session.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.symphony.bdk.core.service.OboService
checkAuthSession
-
Constructor Details
-
SessionService
public SessionService(SessionApi sessionApi, AuthSession authSession, RetryWithRecoveryBuilder<?> retryBuilder) -
SessionService
-
-
Method Details
-
obo
Description copied from interface:OboService
Returns a new service instance with OBO-enabled endpoints from a given OBO session.- Specified by:
obo
in interfaceOboService<OboSessionService>
- Parameters:
oboSession
- the OBO session- Returns:
- the instance of the service class with OBO-enabled endpoints
-
getSession
Retrieves theUserV2
session from the pod using anAuthSession
holder.- Specified by:
getSession
in interfaceOboSessionService
- Returns:
- User session info.
-
executeAndRetry
-