org.silverpeas.look.web
Class AbstractLookResource
java.lang.Object
com.silverpeas.web.RESTWebService
org.silverpeas.look.web.AbstractLookResource
- Direct Known Subclasses:
- DisplayResource
public abstract class AbstractLookResource
- extends RESTWebService
Centralizations of look resource processings
- Author:
- Yohann Chastagnier
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 |
AbstractLookResource
public AbstractLookResource()
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.