public interface ServiceFacade
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
GLOBAL_ROOT_PATH
The root path to identify the global "network"
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
externalRedirectCallback(java.lang.Long externalOperationId,
RequestInfo request)
Handles a request callback for a custom operation of type external redirect
|
ResponseInfo |
handleInboundSms(RequestInfo request)
Handles an inbound SMS request, returning the response which should be returned to the gateway
|
void |
invalidateSession(java.lang.String remoteAddress,
java.lang.String token)
Invalidates the given session, under the given remote address, if it exists
|
InvocationResult |
invoke(InvocationData data)
Invokes a service method according to the given
InvocationData |
boolean |
isLoggedIn(java.lang.String remoteAddress,
java.lang.String sessionToken)
Returns whether there is a logged user with the given remote address and session token
|
Pair<UserAuthVO,java.lang.String> |
login(RequestData requestData,
java.lang.String channel,
UserLocatorVO locator,
java.lang.String password)
Attempts to login the user, returning the authenticated user and the generated session identifier if succeeded, or throwing a LoginException
|
java.lang.String |
resolveNewNetworkUrl(java.lang.String remoteAddress,
java.lang.String sessionToken,
java.lang.Long networkId)
Returns the url a global admin can use to switch to the given network, validating that there is a global admin logged in
|
RequestData |
resolveRequestData(java.lang.String remoteAddress,
java.lang.String rootUrl,
java.lang.String uri)
Returns the route data about a given request URI.
|
static final java.lang.String GLOBAL_ROOT_PATH
java.lang.String externalRedirectCallback(java.lang.Long externalOperationId,
RequestInfo request)
throws FrameworkException
FrameworkExceptionResponseInfo handleInboundSms(RequestInfo request)
void invalidateSession(java.lang.String remoteAddress,
java.lang.String token)
throws FrameworkException
FrameworkExceptionInvocationResult invoke(InvocationData data) throws FrameworkException, IllegalInvocationException
InvocationDataboolean isLoggedIn(java.lang.String remoteAddress,
java.lang.String sessionToken)
throws FrameworkException
FrameworkExceptionPair<UserAuthVO,java.lang.String> login(RequestData requestData, java.lang.String channel, UserLocatorVO locator, java.lang.String password) throws FrameworkException, LoginException, RemoteAddressBlockedException
LoginException - When the given user locator / password combination is invalidRemoteAddressBlockedException - When the remote address has been temporarily blocked to login by exceeding the number of invalid tries
attemptsFrameworkExceptionjava.lang.String resolveNewNetworkUrl(java.lang.String remoteAddress,
java.lang.String sessionToken,
java.lang.Long networkId)
throws FrameworkException
FrameworkExceptionRequestData resolveRequestData(java.lang.String remoteAddress, java.lang.String rootUrl, java.lang.String uri) throws FrameworkException
FrameworkException