public class CaseChangeEntryHandler extends AbstractSearchEntryHandler
Modifier and Type | Class and Description |
---|---|
static class |
CaseChangeEntryHandler.CaseChange
Enum to define the type of case change.
|
Modifier and Type | Field and Description |
---|---|
private CaseChangeEntryHandler.CaseChange |
attributeNameCaseChange
Type of case modification to make to the attribute names.
|
private String[] |
attributeNames
Attribute names to modify.
|
private CaseChangeEntryHandler.CaseChange |
attributeValueCaseChange
Type of case modification to make to the attributes values.
|
private CaseChangeEntryHandler.CaseChange |
dnCaseChange
Type of case modification to make to the entry DN.
|
private static int |
HASH_CODE_SEED
hash code seed.
|
logger
Constructor and Description |
---|
CaseChangeEntryHandler() |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
CaseChangeEntryHandler.CaseChange |
getAttributeNameCaseChange()
Returns the attribute name case change.
|
String[] |
getAttributeNames()
Returns the attribute names.
|
CaseChangeEntryHandler.CaseChange |
getAttributeValueCaseChange()
Returns the attribute value case change.
|
CaseChangeEntryHandler.CaseChange |
getDnCaseChange()
Returns the DN case change.
|
protected String |
handleAttributeName(Connection conn,
SearchRequest request,
String name)
Returns the supplied attribute name unaltered.
|
protected void |
handleAttributes(Connection conn,
SearchRequest request,
SearchEntry entry)
Handle the attributes of a search entry.
|
protected byte[] |
handleAttributeValue(Connection conn,
SearchRequest request,
byte[] value)
Returns the supplied attribute value unaltered.
|
protected String |
handleAttributeValue(Connection conn,
SearchRequest request,
String value)
Returns the supplied attribute value unaltered.
|
protected String |
handleDn(Connection conn,
SearchRequest request,
SearchEntry entry)
Handle the dn of a search entry.
|
int |
hashCode() |
void |
setAttributeNameCaseChange(CaseChangeEntryHandler.CaseChange cc)
Sets the attribute name case change.
|
void |
setAttributeNames(String... names)
Sets the attribute names.
|
void |
setAttributeValueCaseChange(CaseChangeEntryHandler.CaseChange cc)
Sets the attribute value case change.
|
void |
setDnCaseChange(CaseChangeEntryHandler.CaseChange cc)
Sets the DN case change.
|
String |
toString() |
handle, handleAttribute, initializeRequest
private static final int HASH_CODE_SEED
private CaseChangeEntryHandler.CaseChange dnCaseChange
private CaseChangeEntryHandler.CaseChange attributeNameCaseChange
private CaseChangeEntryHandler.CaseChange attributeValueCaseChange
private String[] attributeNames
public CaseChangeEntryHandler.CaseChange getDnCaseChange()
public void setDnCaseChange(CaseChangeEntryHandler.CaseChange cc)
cc
- case changepublic CaseChangeEntryHandler.CaseChange getAttributeNameCaseChange()
public void setAttributeNameCaseChange(CaseChangeEntryHandler.CaseChange cc)
cc
- case changepublic CaseChangeEntryHandler.CaseChange getAttributeValueCaseChange()
public void setAttributeValueCaseChange(CaseChangeEntryHandler.CaseChange cc)
cc
- case changepublic String[] getAttributeNames()
public void setAttributeNames(String... names)
names
- of the attributesprotected String handleDn(Connection conn, SearchRequest request, SearchEntry entry)
AbstractSearchEntryHandler
handleDn
in class AbstractSearchEntryHandler
conn
- the search was performed onrequest
- used to find the search entryentry
- search entry to extract the dn fromprotected void handleAttributes(Connection conn, SearchRequest request, SearchEntry entry) throws LdapException
AbstractSearchEntryHandler
handleAttributes
in class AbstractSearchEntryHandler
conn
- the search was performed onrequest
- used to find the search entryentry
- search entry to extract the attributes fromLdapException
- if the LDAP returns an errorprotected String handleAttributeName(Connection conn, SearchRequest request, String name)
AbstractSearchEntryHandler
handleAttributeName
in class AbstractSearchEntryHandler
conn
- the search was performed onrequest
- used to find the search entryname
- to handleprotected String handleAttributeValue(Connection conn, SearchRequest request, String value)
AbstractSearchEntryHandler
handleAttributeValue
in class AbstractSearchEntryHandler
conn
- the search was performed onrequest
- used to find the search entryvalue
- to handleprotected byte[] handleAttributeValue(Connection conn, SearchRequest request, byte[] value)
AbstractSearchEntryHandler
handleAttributeValue
in class AbstractSearchEntryHandler
conn
- the search was performed onrequest
- used to find the search entryvalue
- to handlepublic boolean equals(Object o)
equals
in class AbstractSearchEntryHandler
public int hashCode()
hashCode
in class AbstractSearchEntryHandler
Copyright © 2003-2019 Virginia Tech. All Rights Reserved.