|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Title: User Management 60
This interface provides the possibility for values to be used as a search
filter when calling IPrincipalFactory.getPrincipalSearchFilter(boolean,String)
NOTE: For consistency reasons no leading or trailing spaces are allowed in
namespaces, attribute names and String values.
Copyright: Copyright (c) 2002
| Field Summary | |
static int |
SEARCHMETHOD_AND
Constant used to define the search operation. |
static int |
SEARCHMETHOD_OR
Constant used to define the search operation. |
static java.lang.String |
VERSIONSTRING
|
| Method Summary | |
void |
clear()
Removes all search attributes, namespaces and values. |
java.lang.String |
getDisplayName()
Gets the display name to match. |
com.sap.security.api.persistence.ISearchElement |
getElementAt(int i)
Deprecated. use getSearchElementAt(int) instead |
int |
getElementSize()
Get the number of elements to search |
int |
getMaxSearchResultSize()
Gets the max size of the search result |
java.lang.String[] |
getSearchAttributeNames(java.lang.String namespace)
Get the attribute names of the set search attributes |
java.lang.String[] |
getSearchAttributes(java.lang.String namespace,
java.lang.String attributeName)
Get the values to match the search for the given namespace and attribute |
ISearchAttribute |
getSearchElementAt(int i)
Get the ISearchAttribute at a specific position in the list of search elements. |
int |
getSearchMethod()
Get the used search method. |
java.lang.String[] |
getSearchNamespaces()
Get the namespaces of the set search attributes |
int |
getSearchOperator(java.lang.String namespace,
java.lang.String attributeName,
java.lang.Object attribute)
Get the search operator of a specific criteria ISearchAttribute |
java.lang.String |
getSearchPrincipalType()
Get the type of the principals to search. |
boolean |
isEmpty()
Tests if this search filter has no components. |
void |
setDirectChild(java.lang.String principalID,
int mode,
boolean caseSensitive)
Set the id of a direct child to match in the principal search. |
void |
setDisplayName(java.lang.String displayname,
int mode,
boolean caseSensitive)
Set the displayname attribute value to match in the principal search. |
void |
setMaxSearchResultSize(int resultsize)
Set the maxium size of the search result. |
void |
setSearchAttribute(java.lang.String namespace,
java.lang.String attribute,
java.lang.String value,
int mode,
boolean caseSensitive)
Set the value of a attribute to match in the principal search. |
void |
setSearchMethod(int searchMethod)
Set the search method. |
| Field Detail |
public static final java.lang.String VERSIONSTRING
public static final int SEARCHMETHOD_AND
public static final int SEARCHMETHOD_OR
| Method Detail |
public void setSearchMethod(int searchMethod)
searchMethod - The search method
public void setDirectChild(java.lang.String principalID,
int mode,
boolean caseSensitive)
principalID - The unique id of the direct childmode. - Use constants defined in
ISearchAttributecaseSensitive - The case sensitivity
public void setSearchAttribute(java.lang.String namespace,
java.lang.String attribute,
java.lang.String value,
int mode,
boolean caseSensitive)
namespace - The namespace of the attributeattribute - The name of the attributevalue - The value to matchmode. - Use constants defined in
ISearchAttributecaseSensitive - The case sensitivitypublic java.lang.String getSearchPrincipalType()
public java.lang.String[] getSearchNamespaces()
public java.lang.String[] getSearchAttributeNames(java.lang.String namespace)
namespace - The namespace of the attributes
public java.lang.String[] getSearchAttributes(java.lang.String namespace,
java.lang.String attributeName)
namespace - The namespace of the attributeattributeName - The attribute's name
public int getSearchOperator(java.lang.String namespace,
java.lang.String attributeName,
java.lang.Object attribute)
ISearchAttributenamespace - The namespace of the attributeattributeName - The attribute's nameattribute - The value to match in the searchISearchAttributepublic int getSearchMethod()
public void clear()
public boolean isEmpty()
true if and only if this search filter
has no search criteria specified, that is, the search filter is in its
initial state; false otherwisepublic int getElementSize()
public com.sap.security.api.persistence.ISearchElement getElementAt(int i)
getSearchElementAt(int) instead
i - The index of the element in the listpublic ISearchAttribute getSearchElementAt(int i)
i - The index of the element in the listpublic java.lang.String getDisplayName()
public void setDisplayName(java.lang.String displayname,
int mode,
boolean caseSensitive)
NOTE: This method can only be used, if no other search attributes are set yet and vice versa.
displayname - The value which is searched in the displayname field of principalsmode - The search mode ISearchAttributecaseSensitive - Set case sensitivitypublic void setMaxSearchResultSize(int resultsize)
NOTE: This method can only be used, if only one search attribute is specified
resultsize. - The value which is used to limit the search result.public int getMaxSearchResultSize()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||