com.silverpeas.delegatednews.web
Class ListDelegatedNewsResource

java.lang.Object
  extended by com.silverpeas.web.RESTWebService
      extended by com.silverpeas.delegatednews.web.ListDelegatedNewsResource

@Service
@RequestScoped
@Authorized
public class ListDelegatedNewsResource
extends com.silverpeas.web.RESTWebService

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


Nested Class Summary
 
Nested classes/interfaces inherited from class com.silverpeas.web.RESTWebService
com.silverpeas.web.RESTWebService.WebProcess<RETURN_VALUE>, com.silverpeas.web.RESTWebService.WebTreatment<RETURN_VALUE>
 
Field Summary
 
Fields inherited from class com.silverpeas.web.RESTWebService
RESPONSE_HEADER_ARRAYSIZE, REST_WEB_SERVICES_URI_BASE
 
Constructor Summary
ListDelegatedNewsResource()
           
 
Method Summary
 String getComponentId()
           
protected  DelegatedNewsService getDelegatedNewsService()
          Gets a business service on delegatedNews.
 DelegatedNewsEntity[] updateDelegatedNews(DelegatedNewsEntity[] newDelegatedNews)
          Updates order or delete the delegatedNews from the JSON representation.
 
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

ListDelegatedNewsResource

public ListDelegatedNewsResource()
Method Detail

getDelegatedNewsService

protected DelegatedNewsService getDelegatedNewsService()
Gets a business service on delegatedNews.

Returns:
a delegatedNews service instance.

getComponentId

public String getComponentId()
Specified by:
getComponentId in class com.silverpeas.web.RESTWebService

updateDelegatedNews

public DelegatedNewsEntity[] updateDelegatedNews(DelegatedNewsEntity[] newDelegatedNews)
Updates order or delete the delegatedNews from the JSON representation. If the user isn't authentified, a 401 HTTP code is returned. If the user isn't authorized to save the delegated news, a 403 is returned. If a problem occurs when processing the request, a 503 HTTP code is returned.

Parameters:
newDelegatedNews - an array of delegated news to update order or to delete
Returns:
the new list of delegated news after update or delete


Copyright © 2016 Silverpeas. All Rights Reserved.