org.silverpeas.look.web
Class AbstractLookResource

java.lang.Object
  extended by com.silverpeas.web.RESTWebService
      extended by org.silverpeas.look.web.AbstractLookResource
Direct Known Subclasses:
DisplayResource

public abstract class AbstractLookResource
extends RESTWebService

Centralizations of look resource processings

Author:
Yohann Chastagnier

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
AbstractLookResource()
           
 
Method Summary
protected  AbstractLookEntity<?> asWebEntity(Object object)
          Not recognized object : error.
protected  LookWebDelegate getLookDelegate()
          Gets the common look services for Web Services
protected  boolean isUserAuthorizedToAccessLookContext()
          Indicates if the requester user is authorized to access the given space
protected  void verifyUserAuthorizedToAccessLookContext()
          Verifies the requester user is authorized to access the given space
 
Methods inherited from class com.silverpeas.web.RESTWebService
getBundle, getBundleLocation, getComponentId, 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

AbstractLookResource

public AbstractLookResource()
Method Detail

asWebEntity

protected AbstractLookEntity<?> asWebEntity(Object object)
Not recognized object : error.

Parameters:
component - the component to convert.
Returns:
the corresponding component entity.

getLookDelegate

protected LookWebDelegate getLookDelegate()
Gets the common look services for Web Services

Returns:

verifyUserAuthorizedToAccessLookContext

protected void verifyUserAuthorizedToAccessLookContext()
Verifies the requester user is authorized to access the given space

Parameters:
spaceId -

isUserAuthorizedToAccessLookContext

protected boolean isUserAuthorizedToAccessLookContext()
Indicates if the requester user is authorized to access the given space

Parameters:
spaceId -


Copyright © 2016 Silverpeas. All Rights Reserved.