|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--com.sap.security.api.PrincipalIterator
Class PrincipalIterator is used to change the return type of iterators returned by this API (e.g. IUser.getRoles(...)) The following return types are available:
PrincipalIterator.ITERATOR_TYPE_PRINCIPALS(default) Returns IPrincipal objects
PrincipalIterator.ITERATOR_TYPE_UNIQUEIDS_CHECKEDReturns unique ids (String) of existing principals
PrincipalIterator.ITERATOR_TYPE_UNIQUEIDS_NOT_CHECKEDReturns unique ids (String) of principals without checking their existence
Iterator it = user.getRoles(true);
PrincipalIterator pIterator = new PrincipalIterator(it, PrincipalIterator.ITERATOR_TYPE_PRINCIPALS);
while (pIterator.hasNext())
{
IPrincipal principal = (IPrincipal)pIterator.next();
}
| Field Summary | |
static int |
ITERATOR_TYPE_PRINCIPALS
|
static int |
ITERATOR_TYPE_UNIQUEIDS_CHECKED
|
static int |
ITERATOR_TYPE_UNIQUEIDS_NOT_CHECKED
|
protected AttributeList |
mAttributeList
|
protected boolean |
mCaseSensitivity
|
protected java.lang.String |
mPrincipalType
|
protected java.lang.String |
mSearchCriteria
|
protected int |
mSearchMode
|
protected int |
mType
|
protected static java.lang.String |
VERSIONSTRING
|
| Constructor Summary | |
protected |
PrincipalIterator()
|
|
PrincipalIterator(java.util.Iterator iterator)
Constructor of PrincipalIterator. |
|
PrincipalIterator(java.util.Iterator iterator,
int type)
Constructor of PrincipalIterator where the return type can be expicitely specified. |
|
PrincipalIterator(java.util.Iterator iterator,
int type,
AttributeList attributeList)
Constructor of PrincipalIterator where the return type can be expicitely specified. |
|
PrincipalIterator(java.util.Iterator iterator,
int type,
AttributeList attributeList,
java.lang.String searchCriteria,
java.lang.String principalType,
int mode,
boolean caseSensitive)
Constructor of PrincipalIterator where the return type can be expicitely specified. |
| Method Summary | |
boolean |
hasNext()
Checks whether there are more objects. |
protected void |
init()
|
java.lang.Object |
next()
Returns the next object. |
void |
remove()
This method is not supported. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static final java.lang.String VERSIONSTRING
public static final int ITERATOR_TYPE_UNIQUEIDS_CHECKED
public static final int ITERATOR_TYPE_UNIQUEIDS_NOT_CHECKED
public static final int ITERATOR_TYPE_PRINCIPALS
protected AttributeList mAttributeList
protected int mType
protected java.lang.String mSearchCriteria
protected java.lang.String mPrincipalType
protected int mSearchMode
protected boolean mCaseSensitivity
| Constructor Detail |
protected PrincipalIterator()
public PrincipalIterator(java.util.Iterator iterator,
int type)
iterator - the original iterator, which was returned by UME objectstype - the type which should be returned by the next()-method
public PrincipalIterator(java.util.Iterator iterator,
int type,
AttributeList attributeList)
iterator - the original iterator, which was returned by UME objectstype - the type which should be returned by the next()-methodattributeList - the attributes which are read and returned during the existence check
public PrincipalIterator(java.util.Iterator iterator,
int type,
AttributeList attributeList,
java.lang.String searchCriteria,
java.lang.String principalType,
int mode,
boolean caseSensitive)
iterator - the original iterator, which was returned by UME objectstype - the type which should be returned by the next()-methodattributeList - the attributes which are read and returned during the existence checksearchCriteria - simple search criteria to filter the elementsprincipalType - the principal types that should be returnedmode - the search mode defined in ISearchAttributecaseSensitive - The case sensitivitypublic PrincipalIterator(java.util.Iterator iterator)
iterator - the original iterator, which was returned by UME objects| Method Detail |
protected void init()
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorjava.util.NoSuchElementException - if there are no more objects to return.public void remove()
remove in interface java.util.IteratorUnsupportedOperationException -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||