Class TypeAdapterHelper
- java.lang.Object
-
- org.nuxeo.ecm.automation.core.impl.adapters.helper.TypeAdapterHelper
-
public class TypeAdapterHelper extends Object
Helper for type adapters- Since:
- 9.1
-
-
Constructor Summary
Constructors Constructor Description TypeAdapterHelper()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static DocumentModel
createDocumentModel(OperationContext ctx, String value)
Create a document model from its pathstatic DocumentModel
createDocumentModel(OperationContext ctx, DocumentRef docRef)
Create a document model from its referencestatic DocumentRef
createDocumentRef(String value)
Create document reference from an id or a path.static DocumentRef
createDocumentRef(OperationContext ctx, String value)
Create a document reference from its pathstatic Object
createDocumentRefOrExpression(String value)
Create a document reference from an expression, an id or a path.
-
-
-
Constructor Detail
-
TypeAdapterHelper
public TypeAdapterHelper()
-
-
Method Detail
-
createDocumentRef
public static DocumentRef createDocumentRef(String value)
Create document reference from an id or a path.- Returns:
- the document reference
-
createDocumentRefOrExpression
public static Object createDocumentRefOrExpression(String value)
Create a document reference from an expression, an id or a path.- Returns:
- the document reference
-
createDocumentRef
public static DocumentRef createDocumentRef(OperationContext ctx, String value) throws TypeAdaptException
Create a document reference from its path- Parameters:
ctx
- the operation contextvalue
- the document path- Returns:
- the document reference
- Throws:
TypeAdaptException
-
createDocumentModel
public static DocumentModel createDocumentModel(OperationContext ctx, String value) throws TypeAdaptException
Create a document model from its path- Parameters:
ctx
- the operation contextvalue
- the document path- Returns:
- the document model
- Throws:
TypeAdaptException
-
createDocumentModel
public static DocumentModel createDocumentModel(OperationContext ctx, DocumentRef docRef) throws TypeAdaptException
Create a document model from its reference- Parameters:
ctx
- the operation contextdocRef
- the document reference- Returns:
- the document model
- Throws:
TypeAdaptException
-
-