public class SearchTemplate extends Template
Template
,
CreationTemplate
,
Serialized FormConstructor and Description |
---|
SearchTemplate()
Default constructor for deserialization
|
SearchTemplate(String name,
AttrSet attrSet,
String filter)
Creates a template with an attribute set and a search filter.
|
SearchTemplate(String name,
String[] attributeNames,
String filter)
Creates a template with an array of attributes and a search filter.
|
Modifier and Type | Method and Description |
---|---|
void |
addAttributeName(String attributeName)
Adds the attribute name to the list of attributes to be returned on a
search.
|
void |
addAttributeNames(String[] attributeNames)
Adds the attribute names to the list of attributes to be returned on a
search.
|
Object |
clone()
Returns a copy of the template.
|
String[] |
getAttributeNames()
Gets a list of attribute names defined in the object.
|
String |
getSearchFilter()
Gets the filter expression used to search for objects of this type.
|
void |
removeAttributeName(String attributeName)
Removes the attribute name from the list of attributes to be returned on
a search.
|
void |
removeAttributeNames(String[] attributeNames)
Removes the attribute names from the list of attributes to be returned on
a search.
|
void |
setAttributeNames(String[] attributeNames)
Sets the attributes to be returned on a search.
|
void |
setSearchFilter(String filter)
Sets the filter expression used to search for objects of this type, for
example, "objectclass=inetorgperson" or
"(&(objectclass=inetorgperson)(ou=accounting))"
|
String |
toString()
Render the object.
|
public SearchTemplate()
public SearchTemplate(String name, AttrSet attrSet, String filter)
name
- Template nameattrSet
- set of attributesfilter
- search filterpublic SearchTemplate(String name, String[] attributeNames, String filter)
name
- Template nameattributeNames
- an array of attribute namesfilter
- search filterpublic void setSearchFilter(String filter)
filter
- A UMS search expression (LDAP syntax)public String getSearchFilter()
public void setAttributeNames(String[] attributeNames)
attributeNames
- The attribute names to be returnedpublic void addAttributeName(String attributeName)
attributeName
- The attribute name to be addedpublic void addAttributeNames(String[] attributeNames)
attributeNames
- The attribute names to be addedpublic void removeAttributeName(String attributeName)
attributeName
- The attribute name to be removedpublic void removeAttributeNames(String[] attributeNames)
attributeNames
- The attribute names to be removedpublic String[] getAttributeNames()
public Object clone()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.