Class TypeAdapterHelper
java.lang.Object
org.nuxeo.ecm.automation.core.impl.adapters.helper.TypeAdapterHelper
Helper for type adapters
- Since:
- 9.1
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic DocumentModel
Creates a document model from its absolute reference.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
Create a document reference from an expression, an id or a path.
-
Constructor Details
-
TypeAdapterHelper
public TypeAdapterHelper()
-
-
Method Details
-
createDocumentRef
Create document reference from an id or a path.- Returns:
- the document reference
-
createDocumentRefOrExpression
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
-
createDocumentModel
Creates a document model from its absolute reference.- Since:
- 2023.5
-