public abstract class BaseNuxeoArtifactDocAdapter extends BaseNuxeoArtifact
Modifier and Type | Field and Description |
---|---|
protected DocumentModel |
doc |
protected static ThreadLocal<CoreSession> |
localCoreSession |
protected static org.apache.commons.logging.Log |
log |
associatedDocuments
Modifier | Constructor and Description |
---|---|
protected |
BaseNuxeoArtifactDocAdapter(DocumentModel doc) |
Modifier and Type | Method and Description |
---|---|
protected static String |
computeDocumentName(String name) |
protected CoreSession |
getCoreSession() |
DocumentModel |
getDoc() |
String |
getHierarchyPath() |
protected <T> T |
getParentNuxeoArtifact(Class<T> artifactClass) |
protected static String |
getRootPath(CoreSession session,
String basePath,
String suffix) |
int |
hashCode() |
static void |
releaseLocalCoreSession() |
protected <T> T |
safeGet(Class<T> typ,
String xPath,
Object defaultValue) |
protected String |
safeGet(String xPath) |
protected String |
safeGet(String xPath,
String defaultValue) |
static void |
setLocalCoreSession(CoreSession session) |
getAssociatedDocuments, getId
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getArtifactType, getVersion
protected static final org.apache.commons.logging.Log log
protected final DocumentModel doc
protected static final ThreadLocal<CoreSession> localCoreSession
protected BaseNuxeoArtifactDocAdapter(DocumentModel doc)
public static void setLocalCoreSession(CoreSession session)
public static void releaseLocalCoreSession()
protected static String computeDocumentName(String name)
protected static String getRootPath(CoreSession session, String basePath, String suffix)
public DocumentModel getDoc()
protected CoreSession getCoreSession()
protected <T> T getParentNuxeoArtifact(Class<T> artifactClass)
public String getHierarchyPath()
Copyright © 2018 Nuxeo. All rights reserved.