public class MobileDocument extends DocumentObject
Constructor and Description |
---|
MobileDocument(WebContext ctx,
DocumentRef docRef) |
Modifier and Type | Method and Description |
---|---|
Object |
doGet() |
Object |
doHasLiked() |
Object |
doLike() |
Object |
emailToCurrentPrincipal() |
String |
getDisplayPrincipalName() |
String |
getDisplayPrincipalName(Object object)
Return the display name of an expected principal.
|
String |
getDisplayPrincipalName(String name) |
String |
getDownloadURL() |
String |
getDownloadURL(DocumentModel docModel) |
String |
getJSFURLPath() |
String |
getJSFURLPath(DocumentModel docModel) |
String |
getPreviewURL() |
NuxeoPrincipal |
getPrincipal() |
boolean |
hasPreview() |
Object |
redirectToRealURL()
Needed to not break the navigation after a false PUT see NXP-8778 as I'm redirected to this /@put URL
|
doDelete, doHead, doPost, doPut, getAdapter, getCoreSession, getDelete, getDocument, getPut, getTitle, initialize, newDocument, newDocument, newDocument, search, traverse
disptachAdapter, isAdapter
checkGuard, dispose, getActiveAdapter, getContext, getFacets, getLinks, getModule, getName, getNext, getNextSegment, getPath, getPrevious, getTemplate, getTrailingPath, getType, getURL, getView, hasFacet, initialize, isInstanceOf, isRoot, newAdapter, newObject, redirect, setNext, setPrevious, setRoot, toString
public MobileDocument(WebContext ctx, DocumentRef docRef)
public Object redirectToRealURL()
public Object emailToCurrentPrincipal()
public Object doLike()
public Object doHasLiked()
public Object doGet()
doGet
in class DocumentObject
public boolean hasPreview() throws ClientException
ClientException
public NuxeoPrincipal getPrincipal()
public String getJSFURLPath(DocumentModel docModel) throws Exception
Exception
public String getDownloadURL(DocumentModel docModel) throws Exception
Exception
public String getPreviewURL()
public String getDisplayPrincipalName(Object object)
object
- must be of type org.nuxeo.ecm.core.api.NuxeoPrincipalpublic String getDisplayPrincipalName()
Copyright © 2015 Nuxeo SA. All rights reserved.