|
SAP NetWeaver 2004S SPS 09 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.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 String |
mPrincipalType
|
protected String |
mSearchCriteria
|
protected int |
mSearchMode
|
protected int |
mType
|
protected static String |
VERSIONSTRING
|
| Constructor Summary | |
protected |
PrincipalIterator()
|
|
PrincipalIterator(Iterator iterator)
Constructor of PrincipalIterator. |
|
PrincipalIterator(Iterator iterator,
int type)
Constructor of PrincipalIterator where the return type can be expicitely specified. |
|
PrincipalIterator(Iterator iterator,
int type,
AttributeList attributeList)
Constructor of PrincipalIterator where the return type can be expicitely specified. |
|
PrincipalIterator(Iterator iterator,
int type,
AttributeList attributeList,
String searchCriteria,
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()
|
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 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 String mSearchCriteria
protected String mPrincipalType
protected int mSearchMode
protected boolean mCaseSensitivity
| Constructor Detail |
protected PrincipalIterator()
public PrincipalIterator(Iterator iterator,
int type)
public PrincipalIterator(Iterator iterator,
int type,
AttributeList attributeList)
public PrincipalIterator(Iterator iterator,
int type,
AttributeList attributeList,
String searchCriteria,
String principalType,
int mode,
boolean caseSensitive)
public PrincipalIterator(Iterator iterator)
| Method Detail |
protected void init()
public boolean hasNext()
hasNext in interface Iteratorpublic Object next()
next in interface IteratorNoSuchElementException - if there are no more objects to return.public void remove()
remove in interface IteratorUnsupportedOperationException
|
SAP NetWeaver 2004S SPS 09 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||