Class EasyShare

All Implemented Interfaces:
ModuleResource, Resource, Adaptable

@Path("/easyshare") @Produces("text/html;charset=UTF-8") public class EasyShare extends ModuleRoot
The root entry for the WebEngine module.
Author:
mikeobrebski
  • Constructor Details

    • EasyShare

      public EasyShare()
  • Method Details

    • isSharedDocument

      public static boolean isSharedDocument(CoreSession session, DocumentModel sharedDoc, DocumentModel doc)
      Returns true if the given doc is either:
      • A member of the given sharedDoc collection.
      • A descendant of a foldersish member of the given sharedDoc collection.
      • A descendant of the given sharedDoc folderish document.
    • doGet

      @GET public Template doGet()
    • buildUnrestrictedRunner

      public EasyShareUnrestrictedRunner buildUnrestrictedRunner(String docId, Long pageIndex)
    • buildQuery

      protected static String buildQuery(DocumentModel documentModel)
    • isShareValid

      protected boolean isShareValid(DocumentModel docShare)
    • notFound

      protected jakarta.ws.rs.core.Response notFound()
    • getFolderListing

      @Path("{shareId}/{folderId}") @GET public jakarta.ws.rs.core.Response getFolderListing(@PathParam("shareId") String shareId, @PathParam("folderId") String folderId, @DefaultValue("0") @QueryParam("p") Long pageIndex)
    • getShareListing

      @Path("{shareId}") @GET public jakarta.ws.rs.core.Response getShareListing(@PathParam("shareId") String shareId, @DefaultValue("0") @QueryParam("p") Long pageIndex)
    • getFileName

      public String getFileName(DocumentModel doc) throws NuxeoException
      Throws:
      NuxeoException
    • getFileStream

      @GET @Path("{shareId}/{fileId}/{fileName}") public jakarta.ws.rs.core.Response getFileStream(@PathParam("shareId") String shareId, @PathParam("fileId") String fileId) throws NuxeoException
      Throws:
      NuxeoException
    • sendNotification

      public void sendNotification(String notification, DocumentModel docShare, Map<String,Object> mail)
    • getIpAddr

      protected String getIpAddr()