public class MobileDocument extends DocumentObject
doc
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) |
protected boolean |
getHasBlob() |
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 doHasLiked()
public Object doGet()
doGet
in class DocumentObject
protected boolean getHasBlob()
public boolean hasPreview()
public NuxeoPrincipal getPrincipal()
public String getJSFURLPath(DocumentModel docModel)
public String getDownloadURL()
public String getDownloadURL(DocumentModel docModel)
public String getJSFURLPath()
public String getPreviewURL()
public String getDisplayPrincipalName(String name)
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.