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 String
buildQuery
(DocumentModel documentModel) buildUnrestrictedRunner
(String docId, Long pageIndex) doGet()
getFileName
(DocumentModel doc) javax.ws.rs.core.Response
getFileStream
(String shareId, String fileId) getFolderListing
(String shareId, String folderId, Long pageIndex) protected String
getShareListing
(String shareId, Long pageIndex) static boolean
isSharedDocument
(CoreSession session, DocumentModel sharedDoc, DocumentModel doc) Returnstrue
if the givendoc
is either: A member of the givensharedDoc
collection. A descendant of a foldersish member of the givensharedDoc
collection. A descendant of the givensharedDoc
folderish document.protected boolean
isShareValid
(DocumentModel docShare) protected javax.ws.rs.core.Response
notFound()
void
sendNotification
(String notification, DocumentModel docShare, Map<String, Object> mail) Methods inherited from class org.nuxeo.ecm.webengine.model.impl.ModuleRoot
getLink, getSkinResource, handleError, setContext
Methods inherited from class org.nuxeo.ecm.webengine.model.impl.DefaultObject
disptachAdapter, isAdapter
Methods 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, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.nuxeo.runtime.model.Adaptable
getAdapter
Methods 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