Skip navigation links

OracleVirtual Directory Java API Reference
11g Release 1 (11.1.1)

E10688-02


com.octetstring.vde.chain
Class BasePlugin

java.lang.Object
  extended by com.octetstring.vde.chain.BasePlugin

All Implemented Interfaces:
Plugin

public class BasePlugin
extends java.lang.Object
implements Plugin

Convenience class for only implementing certain parts of the Plugin interface


Constructor Summary
BasePlugin()
           

 

Method Summary
 void add(Chain chain, Credentials creds, Entry entry, Int8 result)
          Moves Through the "add" operation's chain
 boolean available(Chain chain, DirectoryString base)
          Determines if a plugin is available for the current chain
 void bind(Chain chain, Credentials creds, DirectoryString dn, BinarySyntax password, Bool result)
          Moves through the "bind" operation's chain
 void delete(Chain chain, Credentials creds, DirectoryString dn, Int8 results)
          Moves through the "delete" operation's chain
 void destroy()
          Destroys the current plugin
 void get(Chain chain, Credentials creds, DirectoryString base, Int8 scope, Filter filter, Bool typesOnly, java.util.Vector<DirectoryString> attributes, java.util.Vector<EntrySet> result)
          Moves through the "get" operation's chain
 void init(PluginInit initParams, java.lang.String name)
          Passes initialization information to the Plugin
 void modify(Chain chain, Credentials creds, DirectoryString name, java.util.Vector<EntryChange> changeEntries)
          Moves through the "modify" operation's chain
 void postSearchComplete(Chain chain, ChainEntrySet entrySet)
          Run after all entries are returned
 void postSearchEntry(Chain chain, Credentials creds, java.util.Vector<DirectoryString> returnAttribs, Filter filter, Int8 scope, DirectoryString base, Entry entry, ChainEntrySet entrySet)
          Run on each entry after a "get" is performed
 void rename(Chain chain, Credentials creds, DirectoryString oldName, DirectoryString newName, DirectoryString newSuffix, Bool removeOldRdn, Int8 results)
          Moves through the "rename" operation's chain

 

Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

 

Constructor Detail

BasePlugin

public BasePlugin()

Method Detail

add

public void add(Chain chain,
                Credentials creds,
                Entry entry,
                Int8 result)
         throws DirectorySchemaViolation,
                DirectoryException,
                ChainException
Description copied from interface: Plugin
Moves Through the "add" operation's chain
Specified by:
add in interface Plugin
Parameters:
chain - The curren chain
creds - The currently bound user's credentials
entry - The entry being added
result - The result of the add
Throws:
DirectorySchemaViolation
DirectoryException
ChainException

bind

public void bind(Chain chain,
                 Credentials creds,
                 DirectoryString dn,
                 BinarySyntax password,
                 Bool result)
          throws DirectoryException,
                 ChainException
Description copied from interface: Plugin
Moves through the "bind" operation's chain
Specified by:
bind in interface Plugin
Parameters:
chain - The current chain
creds - The currently bound user's credentials
dn - The DN for the user
password - The user's password
result - The result of the bind
Throws:
DirectoryException
ChainException

delete

public void delete(Chain chain,
                   Credentials creds,
                   DirectoryString dn,
                   Int8 results)
            throws DirectoryException,
                   ChainException
Description copied from interface: Plugin
Moves through the "delete" operation's chain
Specified by:
delete in interface Plugin
Parameters:
chain - The current chain
creds - The current user's credentials
dn - The object to delete
results - The LDAP result code
Throws:
DirectoryException
ChainException

get

public void get(Chain chain,
                Credentials creds,
                DirectoryString base,
                Int8 scope,
                Filter filter,
                Bool typesOnly,
                java.util.Vector<DirectoryString> attributes,
                java.util.Vector<EntrySet> result)
         throws DirectoryException,
                ChainException
Description copied from interface: Plugin
Moves through the "get" operation's chain
Specified by:
get in interface Plugin
Parameters:
chain - The current chain
creds - The currently bound user's credentials
base - The base of the search
scope - The scope of the search
filter - The search's filter
typesOnly - Should entry contain values
attributes - List of attributes
result - Final results
Throws:
DirectoryException
ChainException

modify

public void modify(Chain chain,
                   Credentials creds,
                   DirectoryString name,
                   java.util.Vector<EntryChange> changeEntries)
            throws DirectoryException,
                   ChainException
Description copied from interface: Plugin
Moves through the "modify" operation's chain
Specified by:
modify in interface Plugin
Parameters:
chain - The current chain
creds - The currnet user's credentials
name - The name of the object being modified
changeEntries - The group of EntryChange Objects
Throws:
DirectoryException
ChainException

rename

public void rename(Chain chain,
                   Credentials creds,
                   DirectoryString oldName,
                   DirectoryString newName,
                   DirectoryString newSuffix,
                   Bool removeOldRdn,
                   Int8 results)
            throws DirectoryException,
                   ChainException
Description copied from interface: Plugin
Moves through the "rename" operation's chain
Specified by:
rename in interface Plugin
Parameters:
chain - The current Chain
creds - User's credentials
oldName - The old name of the entry
newName - The new name of the entry
newSuffix - The new suffix of the entry
removeOldRdn - Determine if the old RDN is to be removed
results - The results of the rename
Throws:
DirectoryException
ChainException

postSearchEntry

public void postSearchEntry(Chain chain,
                            Credentials creds,
                            java.util.Vector<DirectoryString> returnAttribs,
                            Filter filter,
                            Int8 scope,
                            DirectoryString base,
                            Entry entry,
                            ChainEntrySet entrySet)
                     throws DirectoryException,
                            ChainException
Description copied from interface: Plugin
Run on each entry after a "get" is performed
Specified by:
postSearchEntry in interface Plugin
Parameters:
chain - The current chain
creds - The current user's credentials
returnAttribs - The attributes being returned
filter - The filter
scope - The search scope
base - The search base
entry - The current entry
entrySet - The complete entry set
Throws:
DirectoryException
ChainException

postSearchComplete

public void postSearchComplete(Chain chain,
                               ChainEntrySet entrySet)
                        throws DirectoryException,
                               ChainException
Description copied from interface: Plugin
Run after all entries are returned
Specified by:
postSearchComplete in interface Plugin
Parameters:
chain - The current Chain
entrySet - The complete entry set
Throws:
DirectoryException
ChainException

available

public boolean available(Chain chain,
                         DirectoryString base)
Description copied from interface: Plugin
Determines if a plugin is available for the current chain
Specified by:
available in interface Plugin
Parameters:
chain - The current chain
base - The base DN
Returns:
True or False if available

init

public void init(PluginInit initParams,
                 java.lang.String name)
          throws ChainException
Description copied from interface: Plugin
Passes initialization information to the Plugin
Specified by:
init in interface Plugin
Parameters:
initParams - Hashmap of key/value pairs specified in initial config
name - The name specified in the config for this Plugin
Throws:
ChainException

destroy

public void destroy()
Description copied from interface: Plugin
Destroys the current plugin
Specified by:
destroy in interface Plugin

Skip navigation links

OracleVirtual Directory Java API Reference
11g Release 1 (11.1.1)

E10688-02


Copyright © 2000-2009 Oracle. All Rights Reserved.