Class GcLdapSearchAttribute
java.lang.Object
edu.internet2.middleware.grouperClient.api.GcLdapSearchAttribute
Generate an ldap call and get results. Note, you can only call the result methods once
since the enumeration will be done.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddMatchingAttribute
(String attributeName, String attributeValue) add a matching attributeaddReturningAttribute
(String returningAttribute) add an attribute to returnassignLdapName
(String theName) assign the nameassignSearchScope
(String theScope) assign the sarch scopevoid
copyFrom
(GcLdapSearchAttribute gcLdapSearchAttribute) copy from the argument to this objectvoid
execute()
execute the callstatic GcLdapSearchAttribute
executeHelper
(GcLdapSearchAttribute input, String url) execute the callgetMatchingAttribute
(String matchingAttributeName) get a matching attribute valueretrieve attribute listboolean
retrieveResultAttributeStringMatch
(String valueToMatch) see if the attribute value matches a certain valuetoString()
void
validate()
-
Constructor Details
-
GcLdapSearchAttribute
public GcLdapSearchAttribute()
-
-
Method Details
-
copyFrom
copy from the argument to this object- Parameters:
gcLdapSearchAttribute
-
-
retrieveResultAttributeString
- Returns:
- string
-
retrieveResultAttributeStringMatch
see if the attribute value matches a certain value- Parameters:
valueToMatch
-- Returns:
- true if matches this value
-
retrieveResultAttributeStringList
retrieve attribute list- Returns:
- the attributes
-
getMatchingAttribute
get a matching attribute value- Parameters:
matchingAttributeName
-- Returns:
- the attribute
-
addMatchingAttribute
add a matching attribute- Parameters:
attributeName
-attributeValue
-- Returns:
- this for chaining
-
addReturningAttribute
add an attribute to return- Parameters:
returningAttribute
-- Returns:
- the ldap call for chaining
-
validate
public void validate() -
execute
public void execute()execute the call -
executeHelper
execute the call- Parameters:
input
- fields from the inputurl
-- Returns:
- the instance to copy from
-
toString
-
assignLdapName
assign the name- Parameters:
theName
-- Returns:
- this for chaining
-
assignSearchScope
assign the sarch scope- Parameters:
theScope
-- Returns:
- searchScope
-