|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.lucene.search.Filter com.esri.gpt.catalog.lucene.AclFilter
public class AclFilter
A filter that provides access control at a document level.
Constructor Summary | |
---|---|
AclFilter(String fieldName,
String[] userPrincipals)
Constructs with a field name and a list of principal strings associated with the current user. |
Method Summary | |
---|---|
DocIdSet |
getDocIdSet(IndexReader reader)
Applies the filter and returns a DocIdSet of matching documents. |
String |
getFieldName()
Gets the ACL field name. |
long |
getTimeMillis()
Gets the execution time. |
String[] |
getUserPrincipals()
Gets the array of ACL principals associated with the active user. |
protected void |
setTimeMillis(long millis)
Sets the execution time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AclFilter(String fieldName, String[] userPrincipals)
fieldName
- - the ACL field nameuserPrincipals
- the user principal stringsMethod Detail |
---|
public String getFieldName()
public long getTimeMillis()
protected void setTimeMillis(long millis)
millis
- the execution time (in milliseconds)public String[] getUserPrincipals()
public DocIdSet getDocIdSet(IndexReader reader) throws IOException
getDocIdSet
in class Filter
reader
- the index reader
IOException
- if an exception is encountered while reading the index
|
Esri Geoportal Server 1.0
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |