com.atlassian.confluence.plugins.contentproperty.index.config
Class OwningPluginAndModuleNamesComparator

java.lang.Object
  extended by com.atlassian.confluence.plugins.contentproperty.index.config.OwningPluginAndModuleNamesComparator
All Implemented Interfaces:
Comparator<ContentPropertyIndexSchemaModuleDescriptor>

public class OwningPluginAndModuleNamesComparator
extends Object
implements Comparator<ContentPropertyIndexSchemaModuleDescriptor>

Allows comparison of ContentPropertyIndexSchemaModuleDescriptor based on their owning plugin names and module names. Plugin names starting with BUNDLED_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
OwningPluginAndModuleNamesComparator()
           
 
Method Summary
 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
 

Constructor Detail

OwningPluginAndModuleNamesComparator

public OwningPluginAndModuleNamesComparator()
Method Detail

compare

public int compare(ContentPropertyIndexSchemaModuleDescriptor left,
                   ContentPropertyIndexSchemaModuleDescriptor right)
Specified by:
compare in interface Comparator<ContentPropertyIndexSchemaModuleDescriptor>


Copyright © 2003–2015 Atlassian. All rights reserved.