Class NavigationOrphanRemover
java.lang.Object
org.exoplatform.portal.mop.importer.NavigationOrphanRemover
Removes the nodes of a site navigation that none of the navigation
configurations of the site defines, as the import mode removes orphan nodes:
every node with
ImportMode.OVERWRITE, the nodes nested in a default
node with ImportMode.RESTORE_DEFAULTS. The configurations are
imported first without removing any node, so that a configuration doesn't
remove the nodes another configuration of the site defines. As the import
of a fragment, the removal keeps the child nodes of a node that is only in
the path of a fragment attachment point.-
Constructor Summary
ConstructorsConstructorDescriptionNavigationOrphanRemover(org.exoplatform.portal.mop.service.NavigationService navigationService, List<org.exoplatform.portal.config.model.PageNavigation> navigations, org.exoplatform.portal.mop.importer.ImportMode importMode) -
Method Summary
Modifier and TypeMethodDescriptionvoidperform()static booleanremovesOrphans(org.exoplatform.portal.mop.importer.ImportMode importMode)
-
Constructor Details
-
Method Details
-
removesOrphans
public static boolean removesOrphans(org.exoplatform.portal.mop.importer.ImportMode importMode) - Parameters:
importMode- an import mode- Returns:
- true when the import mode removes the orphan nodes of a navigation
-
perform
public void perform()
-