Class RESTContinuationService

java.lang.Object
org.exoplatform.ws.frameworks.cometd.transport.RESTContinuationService
All Implemented Interfaces:
org.exoplatform.services.rest.resource.ResourceContainer

public class RESTContinuationService extends Object implements org.exoplatform.services.rest.resource.ResourceContainer
  • Constructor Details

    • RESTContinuationService

      public RESTContinuationService(ContinuationService continuationService)
  • Method Details

    • getToken

      @RolesAllowed("users") public javax.ws.rs.core.Response getToken(String exoID)
      Parameters:
      exoID - the id of client, which must be the signed-in user's own id.
      Returns:
      userToken for user, not storable by caches; 403 when exoID is another user's id
    • isSubscribed

      @RolesAllowed("users") public javax.ws.rs.core.Response isSubscribed(String exoID, String channel)
      Parameters:
      exoID - the id of client, which must be the signed-in user's own id.
      channel - the id of channel
      Returns:
      true if client subscribed on channel else false, not storable by caches; 403 when exoID is another user's id
    • hasChannel

      @DenyAll public javax.ws.rs.core.Response hasChannel(String channel)
      Parameters:
      channel - the id of channel
      Returns:
      true if channel exist else false, not storable by caches
    • sendMessage

      @DenyAll public javax.ws.rs.core.Response sendMessage(DelegateMessage data)
      Parameters:
      data - content message, clientId, channel.
      Returns:
      Response with status
    • sendBroadcastMessage

      @DenyAll public javax.ws.rs.core.Response sendBroadcastMessage(DelegateMessage data)
      Parameters:
      data - content message, clientId, channel.
      Returns:
      Response with status