Class ModuleRoot

All Implemented Interfaces:
ModuleResource, Resource, Adaptable
Direct Known Subclasses:
APIRoot, AutomationResource, ConnectClientRoot, EasyShare, Main, Main, OAuth2Callback, RootResource, RootResource, SCIMRoot, Test, UserInvitationObject, WOPIRoot

public class ModuleRoot extends DefaultObject implements ModuleResource
Author:
Bogdan Stefanescu
  • Field Details

    • request

      @Context protected javax.servlet.http.HttpServletRequest request
    • sic

      @Context protected com.sun.jersey.server.impl.inject.ServerInjectableProviderContext sic
  • Constructor Details

    • ModuleRoot

      public ModuleRoot()
  • Method Details

    • setContext

      @Context public void setContext(com.sun.jersey.api.core.HttpContext hc)
    • getSkinResource

      public javax.ws.rs.core.Response getSkinResource(String path)
    • getLink

      public String getLink(DocumentModel doc)
      You should override this method to resolve objects to links. This method is usually called by a search view to generate links for object that are listed
      Specified by:
      getLink in interface ModuleResource
      Parameters:
      doc - the document
      Returns:
      the link corresponding to that object
    • handleError

      public Object handleError(Throwable t)
      Specified by:
      handleError in interface ModuleResource