Class EntityDocsFolderSortHelper
java.lang.Object
ch.tocco.nice2.rest.documents.impl.resources.EntityDocsFolderSortHelper
The children of an entity model folder are the entity docs folders of the single entities (e.g. one per
classroom). They are created without label, the docs browser shows the default display of their entity instead.
When they are sorted by label, the relation to the entity is added as next sort item, so the database sorts the
folders without label by the default sorting of the entity model.
-
Constructor Summary
ConstructorsConstructorDescriptionEntityDocsFolderSortHelper(EntityDocumentsService entityDocumentsService, SecurityManager securityManager) -
Method Summary
Modifier and TypeMethodDescription@Nullable StringgetChildrenSort(ContentTreeNode parentNode, @Nullable String sort)
-
Constructor Details
-
EntityDocsFolderSortHelper
public EntityDocsFolderSortHelper(EntityDocumentsService entityDocumentsService, SecurityManager securityManager)
-
-
Method Details
-
getChildrenSort
- Returns:
- the sort to load the children of the parent node with; unchanged if the parent is no entity model folder
-