public class LDAPGenericObject
extends java.lang.Object
| Constructor and Description |
|---|
LDAPGenericObject(ConfigValueObject config)
Creates a new instance of LdapGenericObject
|
LDAPGenericObject(ConfigValueObject config,
javax.naming.directory.Attributes attribs) |
LDAPGenericObject(ConfigValueObject config,
javax.naming.ldap.LdapContext context,
java.lang.String name,
java.lang.String base)
Creates a new instance of LDAPGenericObject
|
LDAPGenericObject(ConfigValueObject config,
javax.naming.ldap.LdapContext context,
java.lang.String name,
java.lang.String base,
java.lang.String hybrisTypeCode)
Creates a new instance of LDAPGenericObject
|
LDAPGenericObject(javax.naming.ldap.LdapContext context,
java.lang.String name,
java.lang.String base)
Creates a new instance of LDAPGenericObject
|
LDAPGenericObject(javax.naming.ldap.LdapContext context,
java.lang.String name,
java.lang.String base,
java.lang.String hybrisTypeCode)
Creates a new instance of LDAPGenericObject
|
LDAPGenericObject(javax.naming.directory.SearchResult searchResult,
java.lang.String base) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getAbsoluteName()
Retrieves the absolute name of object, which is a combination of the base name and the relative name
|
java.util.List |
getAttribute(java.lang.String key)
Retrieves a single named attribute as a List of Strings
|
java.util.Hashtable<java.lang.String,java.util.List> |
getAttributes()
Retrieves the attributes of the object as a HashTable containing Lists for each attribute.
|
java.lang.String |
getBase()
Retrieves the base name of the object.
|
java.lang.String |
getDN() |
java.lang.String |
getHybrisTypeCode() |
java.lang.String |
getName()
Retrieves the object's name relative to the base
|
java.lang.String |
getValue() |
void |
setAttribute(javax.naming.directory.Attribute attribute)
Add a attribute with its values to the generic object
|
void |
setAttribute(java.lang.String key,
java.util.List values)
Add a attribute with its values to the generic object
|
void |
setAttribute(java.lang.String key,
javax.naming.NamingEnumeration enumerationValues)
Add a attribute with its values to the generic object
|
void |
setAttributes(javax.naming.directory.Attributes attributes)
Add attributes with their values to the generic object
|
void |
setHybrisTypeCode(java.lang.String code) |
public LDAPGenericObject(ConfigValueObject config) throws javax.naming.NamingException
javax.naming.NamingExceptionpublic LDAPGenericObject(ConfigValueObject config, javax.naming.directory.Attributes attribs) throws javax.naming.NamingException
javax.naming.NamingExceptionpublic LDAPGenericObject(javax.naming.directory.SearchResult searchResult,
java.lang.String base)
throws javax.naming.NamingException
searchResult - base - javax.naming.NamingExceptionpublic LDAPGenericObject(javax.naming.ldap.LdapContext context,
java.lang.String name,
java.lang.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, javax.naming.ldap.LdapContext context, java.lang.String name, java.lang.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(javax.naming.ldap.LdapContext context,
java.lang.String name,
java.lang.String base,
java.lang.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, javax.naming.ldap.LdapContext context, java.lang.String name, java.lang.String base, java.lang.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 java.lang.String getName()
public java.lang.String getBase()
public java.lang.String getAbsoluteName()
public java.util.Hashtable<java.lang.String,java.util.List> getAttributes()
public java.util.List getAttribute(java.lang.String key)
key - the name of attribute, eg. "cn"public void setAttribute(java.lang.String key,
java.util.List values)
key - The name of the attributevalues - the List containing the values of the attribute represented as Stringspublic void setAttribute(java.lang.String key,
javax.naming.NamingEnumeration enumerationValues)
throws javax.naming.NamingException
key - The name of the attributeenumerationValues - the NamingEnumeration containing the values of the attribute represented as Stringsjavax.naming.NamingException - 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(javax.naming.directory.Attribute attribute)
throws javax.naming.NamingException
attribute - The javax.naming.directory.Attribute to add to the generic objectjavax.naming.NamingException - 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(javax.naming.directory.Attributes attributes)
throws javax.naming.NamingException
attributes - The javax.naming.directory.Attributes to add to the generic objectjavax.naming.NamingException - 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(java.lang.String code)
public java.lang.String getHybrisTypeCode()
public java.lang.String getValue()
public java.lang.String getDN()
Copyright © 2018 SAP SE. All Rights Reserved.