public class TypeAdapterHelper extends Object
Constructor and Description |
---|
TypeAdapterHelper() |
Modifier and Type | Method and Description |
---|---|
static DocumentModel |
createDocumentModel(OperationContext ctx,
DocumentRef docRef)
Create a document model from its reference
|
static DocumentModel |
createDocumentModel(OperationContext ctx,
String value)
Create a document model from its path
|
static DocumentRef |
createDocumentRef(OperationContext ctx,
String value)
Create a document reference from its path
|
static DocumentRef |
createDocumentRef(String value)
Create document reference from an id or a path.
|
static Object |
createDocumentRefOrExpression(String value)
Create a document reference from an expression, an id or a path.
|
public TypeAdapterHelper()
public static DocumentRef createDocumentRef(String value)
public static Object createDocumentRefOrExpression(String value)
public static DocumentRef createDocumentRef(OperationContext ctx, String value) throws TypeAdaptException
ctx
- the operation contextvalue
- the document pathTypeAdaptException
public static DocumentModel createDocumentModel(OperationContext ctx, String value) throws TypeAdaptException
ctx
- the operation contextvalue
- the document pathTypeAdaptException
public static DocumentModel createDocumentModel(OperationContext ctx, DocumentRef docRef) throws TypeAdaptException
ctx
- the operation contextdocRef
- the document referenceTypeAdaptException
Copyright © 2018 Nuxeo. All rights reserved.