com.silverpeas.subscribe.web
Class SubscribeResource

java.lang.Object
  extended by com.silverpeas.web.RESTWebService
      extended by com.silverpeas.subscribe.web.SubscribeResource

@Service
@RequestScoped
@Authorized
public class SubscribeResource
extends RESTWebService

A REST Web resource representing a given subscription. It is a web service that provides an access to a subscription referenced by its URL.


Nested Class Summary
 
Nested classes/interfaces inherited from class com.silverpeas.web.RESTWebService
RESTWebService.WebProcess<RETURN_VALUE>, RESTWebService.WebTreatment<RETURN_VALUE>
 
Field Summary
 
Fields inherited from class com.silverpeas.web.RESTWebService
RESPONSE_HEADER_ARRAYSIZE, REST_WEB_SERVICES_URI_BASE
 
Constructor Summary
SubscribeResource()
           
 
Method Summary
 String getComponentId()
          Gets the identifier of the component instance to which the requested resource belongs to.
protected  URI identifiedBy(URI uri)
           
 String subscribeToComponent()
           
 String subscribeToTopic(String topicId)
           
 
Methods inherited from class com.silverpeas.web.RESTWebService
getBundle, getBundleLocation, getGreaterUserRole, getHttpRequest, getHttpServletRequest, getHttpServletResponse, getOrganisationController, getUriInfo, getUserDetail, getUserPreferences, getUserRoles, process, validateUserAuthentication, validateUserAuthorization
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SubscribeResource

public SubscribeResource()
Method Detail

subscribeToComponent

public String subscribeToComponent()

subscribeToTopic

public String subscribeToTopic(String topicId)

identifiedBy

protected URI identifiedBy(URI uri)

getComponentId

public String getComponentId()
Description copied from class: RESTWebService
Gets the identifier of the component instance to which the requested resource belongs to.

Specified by:
getComponentId in class RESTWebService
Returns:
the identifier of the Silverpeas component instance.


Copyright © 2016 Silverpeas. All Rights Reserved.