public interface DocumentRoutingPersister
DocumentRoute
instance, persisting new DocumentRoute
instances and creating DocumentRoute
model from DocumentRoute
instance.Modifier and Type | Field and Description |
---|---|
static String |
DocumentRouteInstanceRootName
The name of the document in which will be create
|
Modifier and Type | Method and Description |
---|---|
DocumentModel |
createDocumentRouteInstanceFromDocumentRouteModel(DocumentModel model,
CoreSession session)
Creates a blank
DocumentRoute instance from a model. |
String |
getNewModelName(DocumentModel instance)
Return the new name of a model when it is created from an instance.
|
DocumentModel |
getOrCreateRootOfDocumentRouteInstanceStructure(CoreSession session)
Will get, and create if it does not exists the root document in which
DocumentRoute structure will be created. |
DocumentModel |
getParentFolderForDocumentRouteInstance(DocumentModel document,
CoreSession session)
Get or create the parent folder for a
DocumentRoute route
instance. |
DocumentModel |
getParentFolderForDocumentRouteModels(CoreSession session)
Gets or creates the parent folder for a
DocumentRoute route
instance. |
DocumentModel |
getParentFolderForNewModel(CoreSession session,
DocumentModel instance)
Returns a folder in which new model, created from an instance of route
will be stored.
|
DocumentModel |
saveDocumentRouteInstanceAsNewModel(DocumentModel routeInstance,
DocumentModel parentFolder,
String newName,
CoreSession session) |
static final String DocumentRouteInstanceRootName
DocumentModel getParentFolderForDocumentRouteInstance(DocumentModel document, CoreSession session)
DocumentRoute
route
instance.document
- The DocumentRoute
model from which the instance
will be created. Its metadata may be used when creating the
parent.DocumentRoute
will be
persisted.DocumentModel createDocumentRouteInstanceFromDocumentRouteModel(DocumentModel model, CoreSession session)
DocumentRoute
instance from a model.model
- the modelDocumentRoute
DocumentModel saveDocumentRouteInstanceAsNewModel(DocumentModel routeInstance, DocumentModel parentFolder, String newName, CoreSession session)
routeInstance
- parentFolder
- DocumentModel getOrCreateRootOfDocumentRouteInstanceStructure(CoreSession session)
DocumentRoute
structure will be created.session
- The session use to get or create the document.DocumentRoute
structure.DocumentModel getParentFolderForNewModel(CoreSession session, DocumentModel instance)
session
- the session of the userinstance
- the instance that will be persisted as new model.String getNewModelName(DocumentModel instance)
DocumentRoutingService#saveRouteAsNewModel(DocumentRoute, String,
CoreSession)
DocumentModel getParentFolderForDocumentRouteModels(CoreSession session)
DocumentRoute
route
instance.DocumentRoute
will be
persisted.Copyright © 2013 Nuxeo SA. All Rights Reserved.