Class VLVIndexDescriptor
- java.lang.Object
-
- org.opends.guitools.controlpanel.datamodel.AbstractIndexDescriptor
-
- org.opends.guitools.controlpanel.datamodel.VLVIndexDescriptor
-
- All Implemented Interfaces:
Comparable<AbstractIndexDescriptor>
public class VLVIndexDescriptor extends AbstractIndexDescriptor
The class used to describe the VLV index configuration.
-
-
Constructor Summary
Constructors Constructor Description VLVIndexDescriptor(String name, BackendDescriptor backend, DN baseDN, SearchScope scope, String filter, List<VLVSortOrder> sortOrder)Constructor for the VLVIndexDescriptor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(AbstractIndexDescriptor o)booleanequals(Object o)static BackendVLVIndexCfgDefn.ScopegetBackendVLVIndexScope(SearchScope scope)Returns the equivalentBackendVLVIndexCfgDefn.Scopeto the provided search scope.DNgetBaseDN()Returns the baseDN of the search indexed by the VLV index.StringgetFilter()Returns the filter of the search indexed by the VLV index.SearchScopegetScope()Returns the scope of the search indexed by the VLV index.List<VLVSortOrder>getSortOrder()Returns the sort order list of the VLV index.inthashCode()protected voidrecalculateHashCode()Method used to minimize the times the hashcode is calculated.static SearchScopetoSearchScope(BackendVLVIndexCfgDefn.Scope scope)Convert the providedBackendVLVIndexCfgDefn.ScopetoSearchScope.-
Methods inherited from class org.opends.guitools.controlpanel.datamodel.AbstractIndexDescriptor
getBackend, getName, setBackend
-
-
-
-
Constructor Detail
-
VLVIndexDescriptor
public VLVIndexDescriptor(String name, BackendDescriptor backend, DN baseDN, SearchScope scope, String filter, List<VLVSortOrder> sortOrder)
Constructor for the VLVIndexDescriptor.- Parameters:
name- the name of the index.backend- the backend where the index is defined.baseDN- the baseDN of the search indexed by the VLV index.scope- the scope of the search indexed by the VLV index.filter- the filter or the search indexed by the VLV index.sortOrder- the sort order list of the VLV index.
-
-
Method Detail
-
compareTo
public int compareTo(AbstractIndexDescriptor o)
-
getBaseDN
public DN getBaseDN()
Returns the baseDN of the search indexed by the VLV index.- Returns:
- the baseDN of the search indexed by the VLV index.
-
getFilter
public String getFilter()
Returns the filter of the search indexed by the VLV index.- Returns:
- the filter of the search indexed by the VLV index.
-
getScope
public SearchScope getScope()
Returns the scope of the search indexed by the VLV index.- Returns:
- the scope of the search indexed by the VLV index.
-
getSortOrder
public List<VLVSortOrder> getSortOrder()
Returns the sort order list of the VLV index.- Returns:
- the sort order list of the VLV index.
-
recalculateHashCode
protected void recalculateHashCode()
Description copied from class:AbstractIndexDescriptorMethod used to minimize the times the hashcode is calculated.- Specified by:
recalculateHashCodein classAbstractIndexDescriptor
-
getBackendVLVIndexScope
public static BackendVLVIndexCfgDefn.Scope getBackendVLVIndexScope(SearchScope scope)
Returns the equivalentBackendVLVIndexCfgDefn.Scopeto the provided search scope.- Parameters:
scope- TheSearchScopeto convert.- Returns:
- the equivalent
BackendVLVIndexCfgDefn.Scopeto the provided search scope.
-
toSearchScope
public static SearchScope toSearchScope(BackendVLVIndexCfgDefn.Scope scope)
Convert the providedBackendVLVIndexCfgDefn.ScopetoSearchScope.- Parameters:
scope- The scope to convert.- Returns:
- the provided
BackendVLVIndexCfgDefn.ScopetoSearchScope
-
-