Class OwningPluginAndModuleNamesComparator
- java.lang.Object
-
- com.atlassian.confluence.plugins.contentproperty.index.config.OwningPluginAndModuleNamesComparator
-
- All Implemented Interfaces:
Comparator<ContentPropertyIndexSchemaModuleDescriptor>
public class OwningPluginAndModuleNamesComparator extends Object implements Comparator<ContentPropertyIndexSchemaModuleDescriptor>
Allows comparison ofContentPropertyIndexSchemaModuleDescriptor
based on their owning plugin names and module names. Plugin names starting withBUNDLED_PLUGINS_PACKAGE_PREFIX
prefix will be privileged over other names, because otherwise index schema defined in bundled plugins might be discarded in case of schema collision.- Since:
- 5.7
- See Also:
ContentPropertyIndexSchemaManagerImpl
-
-
Constructor Summary
Constructors Constructor Description OwningPluginAndModuleNamesComparator()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compare(ContentPropertyIndexSchemaModuleDescriptor left, ContentPropertyIndexSchemaModuleDescriptor right)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
-
-
-
Method Detail
-
compare
public int compare(ContentPropertyIndexSchemaModuleDescriptor left, ContentPropertyIndexSchemaModuleDescriptor right)
- Specified by:
compare
in interfaceComparator<ContentPropertyIndexSchemaModuleDescriptor>
-
-