org.openrdf.sesame.sailimpl.omm.security
Class StatementFilterIterator

java.lang.Object
  extended byorg.openrdf.sesame.sailimpl.omm.security.StatementFilterIterator
All Implemented Interfaces:
StatementIterator

public class StatementFilterIterator
extends Object
implements StatementIterator

StatementFilterIterator.java

Title: Knowledge Control System

Company: OntoText Lab. Sirma AI.

Version:
1.0 Filters the Statements according to the access control permissions and the given right.
Author:
borislav popov

Constructor Summary
StatementFilterIterator(StatementIterator sti, SecurityServices service, Right right)
           
 
Method Summary
 void close()
          Closes the iterator and frees any resources that it uses (e.g.
 boolean hasNext()
          Checks whether there are any more statements available.
 Statement next()
          Gets the next statement.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatementFilterIterator

public StatementFilterIterator(StatementIterator sti,
                               SecurityServices service,
                               Right right)
                        throws NullParameterException
Method Detail

hasNext

public boolean hasNext()
Description copied from interface: StatementIterator
Checks whether there are any more statements available.

Specified by:
hasNext in interface StatementIterator
Returns:
true if there are more statements available, false otherwise.

next

public Statement next()
Description copied from interface: StatementIterator
Gets the next statement.

Specified by:
next in interface StatementIterator
Returns:
the next statement.

close

public void close()
Description copied from interface: StatementIterator
Closes the iterator and frees any resources that it uses (e.g. connections to databases). Every StatementIterator should be properly closed when it has returned all of its statements, or when it is no longer needed.

Specified by:
close in interface StatementIterator


Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.