com.atlassian.confluence.search.contentnames.lucene.mappers
Class ContentTypeCategoryMapper
java.lang.Object
com.atlassian.confluence.search.contentnames.lucene.mappers.ContentTypeCategoryMapper
- All Implemented Interfaces:
- CategoryMapper
public class ContentTypeCategoryMapper
- extends Object
- implements CategoryMapper
Class that maps docId's to categories based on their content type.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContentTypeCategoryMapper
public ContentTypeCategoryMapper(byte[] contentTypeFieldCache)
getCategory
public Category getCategory(int docId,
Set<Category> categories)
- Description copied from interface:
CategoryMapper
- Returns the
Category
that this docId belongs to. It
must be one of ones specified in the passed in set of categories.
- Specified by:
getCategory
in interface CategoryMapper
- Parameters:
docId
- the id to find a category forcategories
- confines category mapping to those categories contained in this set
- Returns:
- the category for this docId. If a category is found that does not belong in the specified categories, or
no category was found for this docId, then null is returned.
Copyright © 2003-2012 Atlassian. All Rights Reserved.