final class JavaLdapSupport
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
JCLASSNAME_ATTR
the javaClassName attribute
|
static java.lang.String |
JCLASSNAMES_ATTR
the javaClassNames attribute
|
static java.lang.String |
JCONTAINER_ATTR
the javaContainer attribute
|
static java.lang.String |
JOBJECT_ATTR
the javaObject attribute
|
static java.lang.String |
JSERIALDATA_ATTR
the javaSerializedData attribute
|
static java.lang.String |
JSERIALIZEDOBJ_ATTR
the javaSerializedObject attribute
|
| Modifier | Constructor and Description |
|---|---|
private |
JavaLdapSupport() |
| Modifier and Type | Method and Description |
|---|---|
(package private) static java.lang.Object |
deserialize(org.apache.directory.api.ldap.model.entry.Entry serverEntry)
Resusitates an object from a serialized attribute in an entry that
conforms to the specifications for representing Java Objects in an LDAP
Directory (RFC 2713).
|
(package private) static void |
serialize(org.apache.directory.api.ldap.model.entry.Entry entry,
java.lang.Object obj,
org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
Serializes an object into an entry using the attributes specified in
RFC 2713 to represent the serialized object.
|
(package private) static byte[] |
serialize(java.lang.Object obj)
Serializes an object into a byte array.
|
public static final java.lang.String JOBJECT_ATTR
public static final java.lang.String JCONTAINER_ATTR
public static final java.lang.String JSERIALIZEDOBJ_ATTR
public static final java.lang.String JCLASSNAME_ATTR
public static final java.lang.String JCLASSNAMES_ATTR
public static final java.lang.String JSERIALDATA_ATTR
static java.lang.Object deserialize(org.apache.directory.api.ldap.model.entry.Entry serverEntry)
throws javax.naming.NamingException
attributes - the entry representing a serialized objectjavax.naming.NamingException - if the object cannot be serializedstatic byte[] serialize(java.lang.Object obj)
throws org.apache.directory.api.ldap.model.exception.LdapException
obj - the object to serializejavax.naming.NamingException - of the object cannot be serializedorg.apache.directory.api.ldap.model.exception.LdapExceptionstatic void serialize(org.apache.directory.api.ldap.model.entry.Entry entry,
java.lang.Object obj,
org.apache.directory.api.ldap.model.schema.SchemaManager schemaManager)
throws org.apache.directory.api.ldap.model.exception.LdapException
entry - the set of attributes representing entryobj - the object to serializejavax.naming.NamingException - if the object cannot be serializedorg.apache.directory.api.ldap.model.exception.LdapException