com.atlassian.confluence.search.lucene.extractor
Class ContentPermissionsExtractor

java.lang.Object
  extended by com.atlassian.confluence.search.lucene.extractor.ContentPermissionsExtractor
All Implemented Interfaces:
com.atlassian.bonnie.search.Extractor

public class ContentPermissionsExtractor
extends Object
implements com.atlassian.bonnie.search.Extractor

Extracts the content permissions set on a searchable object. If the searchable object is an attachment or comment extract the permissions from the containing content object. At the moment, content permissions are only set on Pages. Hence this class only handles permissions for Page objects.


Field Summary
static String PERMISSION_SETS_FIELD
           
 
Constructor Summary
ContentPermissionsExtractor()
           
 
Method Summary
 void addFields(org.apache.lucene.document.Document document, StringBuffer stringBuffer, com.atlassian.bonnie.Searchable searchable)
           
 void setInheritedContentPermissionManager(InheritedContentPermissionManager inheritedContentPermissionManager)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PERMISSION_SETS_FIELD

public static final String PERMISSION_SETS_FIELD
See Also:
Constant Field Values
Constructor Detail

ContentPermissionsExtractor

public ContentPermissionsExtractor()
Method Detail

addFields

public void addFields(org.apache.lucene.document.Document document,
                      StringBuffer stringBuffer,
                      com.atlassian.bonnie.Searchable searchable)
Specified by:
addFields in interface com.atlassian.bonnie.search.Extractor

setInheritedContentPermissionManager

public void setInheritedContentPermissionManager(InheritedContentPermissionManager inheritedContentPermissionManager)


Copyright © 2003-2011 Atlassian. All Rights Reserved.