LDAP Classes
Implements Java LDAP

com.novell.ldap.extensions
Class LDAPRestoreRequest

java.lang.Object
  extended bycom.novell.ldap.LDAPExtendedOperation
      extended bycom.novell.ldap.extensions.LDAPRestoreRequest
All Implemented Interfaces:
java.lang.Cloneable, java.io.Externalizable, java.io.Serializable

public class LDAPRestoreRequest
extends LDAPExtendedOperation

This class provides an LDAP interface for object based restore of eDirectory objects.

The information need for restore includes such items as object DN, data buffer length, string containing the number of chunks and each chunk elements representing the size of each chunk, data blob in byte[]. The API support restoring of both non-encrypted and encrypted objects.

To send this request to eDirectory, you must create an instance of this class and then call the extendedOperation method with this object as the required LDAPExtendedOperation parameter.


The getLDAPRestoreRequest extension uses the following OID:
   2.16.840.1.113719.1.27.100.98


The requestValue has the following format:

requestValue ::=
        objectDN ::= LDAPDN
        passwd ::= OCTET STRING
        bufferLength ::= INTEGER
        retunedBuffer::= OCTET STRING
        dataChunkSizes ::=
                 SEQUENCE {
                         noOfChunks INTEGER
                          SET of [
                                  SEQUENCE of {eacChunksize INTEGER}]
                 }

See Also:
Serialized Form

Constructor Summary
LDAPRestoreRequest(java.lang.String objectDN, byte[] passwd, int bufferLength, java.lang.String chunkSizesString, byte[] returnedBuffer)
          Constructs an extended operations object which contains the ber encoded restore data.
 
Methods inherited from class com.novell.ldap.LDAPExtendedOperation
clone, getID, getValue, readDSML, readExternal, setID, setValue, toString, writeDSML, writeExternal
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LDAPRestoreRequest

public LDAPRestoreRequest(java.lang.String objectDN,
                          byte[] passwd,
                          int bufferLength,
                          java.lang.String chunkSizesString,
                          byte[] returnedBuffer)
                   throws LDAPException
Constructs an extended operations object which contains the ber encoded restore data.

Parameters:
objectDN - The object DN to restore
passwd - The encrypted password required for the object to be backed up
bufferLength - The length of backed up data
chunkSizesString - The String containing number of chunks and each chunk elements representing chunk sizes
returnedBuffer - The actual data in byte[]

Throws:
LDAPException - A general exception which includes an error message and an LDAP error code.

LDAP Classes
Implements Java LDAP

Copyright © 2002 Novell, Inc. All Rights Reserved.
Novell, Inc.
1800 South Novell Place
Provo, Ut 84606
Phone: (801) 861-5000