|
SAP NetWeaver 7.20 (SP01) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sap.security.api.PrincipalIterator
public class 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)
iterator - the original iterator, which was returned by UME objectstype - the type which should be returned by the next()-method
public PrincipalIterator(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(Iterator iterator,
int type,
AttributeList attributeList,
String searchCriteria,
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(Iterator iterator)
iterator - the original iterator, which was returned by UME objects| 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| Access Rights |
|---|
| SC | DC |
|---|---|
[sap.com] ENGINEAPI
|
[sap.com] com.sap.security.api.sda
|
[sap.com] ENGFACADE
|
[sap.com] tc/je/usermanagement/api
|
[sap.com] CORE-TOOLS
|
[sap.com] com.sap.engine.client.lib
|
|
SAP NetWeaver 7.20 (SP01) Composition Environment | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||