Class EntityDocsFolderSortHelper

java.lang.Object
ch.tocco.nice2.rest.documents.impl.resources.EntityDocsFolderSortHelper

@Component public class EntityDocsFolderSortHelper extends Object
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 Details

  • Method Details

    • getChildrenSort

      public @Nullable String getChildrenSort(ContentTreeNode parentNode, @Nullable String sort)
      Returns:
      the sort to load the children of the parent node with; unchanged if the parent is no entity model folder