Package org.silverpeas.core.webapi.wopi
Class AbstractWopiFileResource
- java.lang.Object
-
- org.silverpeas.core.webapi.wopi.AbstractWopiFileResource
-
- All Implemented Interfaces:
SilverpeasWebResource
,ProtectedWebResource
,WebAuthenticationValidation
,WebAuthorizationValidation
,WopiProtectedWebResource
- Direct Known Subclasses:
WopiFileResource
public abstract class AbstractWopiFileResource extends Object implements WopiProtectedWebResource
- Author:
- silveryocha
-
-
Field Summary
-
Fields inherited from interface org.silverpeas.core.web.SilverpeasWebResource
BASE_PATH
-
-
Constructor Summary
Constructors Constructor Description AbstractWopiFileResource()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected WopiFileEditionContext
getEditionContext()
protected WopiFileEditionManager
getEditionManager()
org.silverpeas.core.webapi.wopi.WopiRequestContext
getSilverpeasContext()
Gets the context of Silverpeas linked to the current request.protected void
initContext()
protected javax.ws.rs.core.Response
process(Supplier<javax.ws.rs.core.Response> supplier)
Processes the given supplier after authorization checking-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.silverpeas.core.webapi.base.ProtectedWebResource
validateUserAuthorization
-
Methods inherited from interface org.silverpeas.core.webapi.wopi.WopiProtectedWebResource
getComponentId, getHttpRequest, getUri, validateUserAuthentication
-
-
-
-
Method Detail
-
initContext
@PostConstruct protected void initContext()
-
getSilverpeasContext
public org.silverpeas.core.webapi.wopi.WopiRequestContext getSilverpeasContext()
Description copied from interface:WebAuthenticationValidation
Gets the context of Silverpeas linked to the current request. This context must be initialized before the functional request processing.- Specified by:
getSilverpeasContext
in interfaceWebAuthenticationValidation
- Specified by:
getSilverpeasContext
in interfaceWebAuthorizationValidation
- Specified by:
getSilverpeasContext
in interfaceWopiProtectedWebResource
- Returns:
SilverpeasRequestContext
instance.
-
process
protected javax.ws.rs.core.Response process(Supplier<javax.ws.rs.core.Response> supplier)
Processes the given supplier after authorization checking- Parameters:
supplier
- the supplier of response.- Returns:
- the response given by supplier.
-
getEditionContext
protected WopiFileEditionContext getEditionContext()
-
getEditionManager
protected WopiFileEditionManager getEditionManager()
-
-