Package org.nuxeo.easyshare
Class EasyShare
- All Implemented Interfaces:
ModuleResource,Resource,Adaptable
The root entry for the WebEngine module.
- Author:
- mikeobrebski
-
Field Summary
Fields inherited from class org.nuxeo.ecm.webengine.model.impl.ModuleRoot
request, sic -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static StringbuildQuery(DocumentModel documentModel) buildUnrestrictedRunner(String docId, Long pageIndex) doGet()getFileName(DocumentModel doc) javax.ws.rs.core.ResponsegetFileStream(String shareId, String fileId) getFolderListing(String shareId, String folderId, Long pageIndex) protected StringgetShareListing(String shareId, Long pageIndex) static booleanisSharedDocument(CoreSession session, DocumentModel sharedDoc, DocumentModel doc) Returnstrueif the givendocis either: A member of the givensharedDoccollection. A descendant of a foldersish member of the givensharedDoccollection. A descendant of the givensharedDocfolderish document.protected booleanisShareValid(DocumentModel docShare) protected javax.ws.rs.core.ResponsenotFound()voidsendNotification(String notification, DocumentModel docShare, Map<String, Object> mail) Methods inherited from class org.nuxeo.ecm.webengine.model.impl.ModuleRoot
getLink, getSkinResource, handleError, setContextMethods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultObject
disptachAdapter, isAdapterMethods inherited from class org.nuxeo.ecm.webengine.model.impl.AbstractResource
checkGuard, dispose, getActiveAdapter, getAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.nuxeo.runtime.model.Adaptable
getAdapterMethods inherited from interface org.nuxeo.ecm.webengine.model.Resource
checkGuard, dispose, getActiveAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, isAdapter, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot
-
Constructor Details
-
EasyShare
public EasyShare()
-
-
Method Details
-
doGet
-
buildUnrestrictedRunner
-
buildQuery
-
notFound
protected javax.ws.rs.core.Response notFound() -
getFolderListing
-
getFileName
- Throws:
NuxeoException
-
getFileStream
- Throws:
NuxeoException
-
sendNotification
-
getIpAddr