public class LDAPGenericObject extends Object
| Constructor and Description |
|---|
LDAPGenericObject(ConfigValueObject config)
Creates a new instance of LdapGenericObject
|
LDAPGenericObject(ConfigValueObject config,
Attributes attribs) |
LDAPGenericObject(ConfigValueObject config,
LdapContext context,
String name,
String base)
Creates a new instance of LDAPGenericObject
|
LDAPGenericObject(ConfigValueObject config,
LdapContext context,
String name,
String base,
String hybrisTypeCode)
Creates a new instance of LDAPGenericObject
|
LDAPGenericObject(LdapContext context,
String name,
String base)
Creates a new instance of LDAPGenericObject
|
LDAPGenericObject(LdapContext context,
String name,
String base,
String hybrisTypeCode)
Creates a new instance of LDAPGenericObject
|
LDAPGenericObject(SearchResult searchResult,
String base) |
| Modifier and Type | Method and Description |
|---|---|
String |
getAbsoluteName()
Retrieves the absolute name of object, which is a combination of the base name and the relative name
|
List |
getAttribute(String key)
Retrieves a single named attribute as a List of Strings
|
Hashtable<String,List> |
getAttributes()
Retrieves the attributes of the object as a HashTable containing Lists for each attribute.
|
String |
getBase()
Retrieves the base name of the object.
|
String |
getDN() |
String |
getHybrisTypeCode() |
String |
getName()
Retrieves the object's name relative to the base
|
String |
getValue() |
void |
setAttribute(Attribute attribute)
Add a attribute with its values to the generic object
|
void |
setAttribute(String key,
List values)
Add a attribute with its values to the generic object
|
void |
setAttribute(String key,
NamingEnumeration enumerationValues)
Add a attribute with its values to the generic object
|
void |
setAttributes(Attributes attributes)
Add attributes with their values to the generic object
|
void |
setHybrisTypeCode(String code) |
public LDAPGenericObject(ConfigValueObject config) throws NamingException
NamingExceptionpublic LDAPGenericObject(ConfigValueObject config, Attributes attribs) throws NamingException
NamingExceptionpublic LDAPGenericObject(SearchResult searchResult, String base) throws NamingException
searchResult - base - NamingExceptionpublic LDAPGenericObject(LdapContext context, String name, String base)
context - The javax.naming.ldap.LdapContext containig the requested dataname - the name of the object relative to the basebase - the base name of the objectpublic LDAPGenericObject(ConfigValueObject config, LdapContext context, String name, String base)
context - The javax.naming.ldap.LdapContext containig the requested dataname - the name of the object relative to the basebase - the base name of the objectpublic LDAPGenericObject(LdapContext context, String name, String base, String hybrisTypeCode)
context - The javax.naming.ldap.LdapContext containig the requested dataname - the name of the object relative to the basebase - the base name of the objecthybrisTypeCode - the code of the type which is mapped to the objectClass of the corresponding ldap valuepublic LDAPGenericObject(ConfigValueObject config, LdapContext context, String name, String base, String hybrisTypeCode)
context - The javax.naming.ldap.LdapContext containig the requested dataname - the name of the object relative to the basebase - the base name of the objecthybrisTypeCode - the code of the type which is mapped to the objectClass of the corresponding ldap valuepublic String getName()
public String getBase()
public String getAbsoluteName()
public Hashtable<String,List> getAttributes()
public List getAttribute(String key)
key - the name of attribute, eg. "cn"public void setAttribute(String key, List values)
key - The name of the attributevalues - the List containing the values of the attribute represented as Stringspublic void setAttribute(String key, NamingEnumeration enumerationValues) throws NamingException
key - The name of the attributeenumerationValues - the NamingEnumeration containing the values of the attribute represented as StringsNamingException - if a naming exception is encountered while attempting to retrieve the elements. See
javax.naming.NamingException and its subclasses for the possible naming exceptions.public void setAttribute(Attribute attribute) throws NamingException
attribute - The javax.naming.directory.Attribute to add to the generic objectNamingException - if a naming exception is encountered while attempting to retrieve the elements. See
javax.naming.NamingException and its subclasses for the possible naming exceptions.public void setAttributes(Attributes attributes) throws NamingException
attributes - The javax.naming.directory.Attributes to add to the generic objectNamingException - if a naming exception is encountered while attempting to retrieve the elements. See
javax.naming.NamingException and its subclasses for the possible naming exceptions.public void setHybrisTypeCode(String code)
public String getHybrisTypeCode()
public String getValue()
public String getDN()
Copyright © 2017 SAP SE. All Rights Reserved.