-
Method Summary
Create an entity's document folder.
Get or create an entity's document folder.
void
Remove the related entity from the ContentTreeNode
void
Set a related entity for the ContentTreeNode
Methods inherited from interface ch.tocco.nice2.dms.api.entitydocs.EntityDocumentsService
addTimestampToFilename, createEntityDocumentsInvoker, getDetailDocumentFileName, getDetailDocumentForField, getEntityDocumentsFolder, getEntityModelFolder, getEntityModelFolder, getRelatedEntity, getRelatedEntityRelationName, getSystemDomain, isEntityDetailDocument, isEntityDetailDocument, isEntityDocument, isEntityDocument, isEntityDocumentFolder, isEntityDocumentFolder, isEntityModelFolder, isEntityRootFolder, isRelationToRelatedEntity
-
Method Details
-
setRelatedEntity
Set a related entity for the ContentTreeNode
- Parameters:
contentTreeNode
- ContentTreeNode
entity
- a reference entity (there needs to exist a relation rel[Entity model name] from the ContentTreeNode)
- Throws:
EntityDocumentsException
-
removeRelatedEntity
Remove the related entity from the ContentTreeNode
- Parameters:
contentTreeNode
- ContentTreeNode
- Throws:
EntityDocumentsException
-
getOrCreateEntityDocumentsFolder
Get or create an entity's document folder. It also creates potential required sub-folders (e.g. language folders for
multi-language entities).
- Parameters:
entity
- the entity
- Returns:
- entity's document folder
- Throws:
EntityDocumentsException
-
-
createEntityDocumentsFolder
Create an entity's document folder. It also creates potential required sub-folders (e.g. language folders for
multi-language entities).
- Parameters:
entity
- the entity
parentFolder
- the parent folder, i.e. the model's folder
- Returns:
- entity's document folder
- Throws:
EntityDocumentsException
- See Also:
-