com.ca.directory.jxplorer.broker
Class CBGraphicsOps

java.lang.Object
  |
  +--com.ca.commons.jndi.BasicOps
        |
        +--com.ca.commons.jndi.AdvancedOps
              |
              +--com.ca.commons.naming.DXOps
                    |
                    +--com.ca.directory.jxplorer.broker.CBGraphicsOps

public class CBGraphicsOps
extends DXOps

A wrapper for BasicOps that overrides log() and error() in an application specific way.


Field Summary
 boolean errorWhileQuietFlag
           
 java.lang.Exception quietException
           
 boolean quietMode
           
 
Fields inherited from class com.ca.commons.jndi.AdvancedOps
parser
 
Fields inherited from class com.ca.commons.jndi.BasicOps
ALWAYSLOG, CHANGELOG, connectionData, ctx, DONTLOG, ldapVersion, VERBOSELOG
 
Constructor Summary
CBGraphicsOps(javax.naming.directory.DirContext ctx)
          Initialise with the directory context.
 
Method Summary
 void close()
          overload this method for progress tracker.
 boolean error(java.lang.String msg, java.lang.Exception e)
          This override passes errors to CBUtility.error.
 void inc()
          overload this method for progress tracker.
 void log(java.lang.String msg, int logLevel)
          This override passes errors to CBUtility.log.
 boolean modifyAttributes(javax.naming.Name dn, javax.naming.directory.ModificationItem[] modList)
          This override passes a confirmation message to CBError.confirm after a successful modify.
 void open(java.lang.String heading, java.lang.String operationName)
          overload this method for progress tracker.
 void pop()
          overload this method for progress tracker.
 javax.naming.NamingEnumeration push(javax.naming.NamingEnumeration elements)
          overload this method for progress tracker.
 void setQuietMode(boolean status)
          Sets quiet error mode on or off, and clears any stored 'quietException'.
 
Methods inherited from class com.ca.commons.naming.DXOps
addEntry, modifyEntry, postParse, postParse, postParseNameClassPairs, postParseString, preParse, updateEntry
 
Methods inherited from class com.ca.commons.jndi.AdvancedOps
copyTree, deleteTree, getInstance, moveTree, recCopyTree, recDeleteTree, recMoveTree
 
Methods inherited from class com.ca.commons.jndi.BasicOps
addAttribute, addAttributes, addObject, copyObject, deleteAttribute, deleteAttributes, deleteObject, exists, getBaseNameParser, getContext, getLdapVersion, getSchema, list, modifyAttributes, openContext, openContext, openContext, openContext, openContext, openContext, read, read, renameObject, searchBaseObject, searchBaseObject, searchOneLevel, searchOneLevel, searchSubTree, searchSubTree, setConnectionData, updateAttribute, updateAttributes, updateObject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

quietMode

public boolean quietMode

errorWhileQuietFlag

public boolean errorWhileQuietFlag

quietException

public java.lang.Exception quietException
Constructor Detail

CBGraphicsOps

public CBGraphicsOps(javax.naming.directory.DirContext ctx)
Initialise with the directory context.

Method Detail

setQuietMode

public void setQuietMode(boolean status)
Sets quiet error mode on or off, and clears any stored 'quietException'.


error

public boolean error(java.lang.String msg,
                     java.lang.Exception e)
This override passes errors to CBUtility.error.

Overrides:
error in class BasicOps
Parameters:
msg - User friendly error message
e - The exception
Returns:
returns false (always) for easy chaining.

log

public void log(java.lang.String msg,
                int logLevel)
This override passes errors to CBUtility.log.

Overrides:
log in class BasicOps
Parameters:
msg - log Message

modifyAttributes

public boolean modifyAttributes(javax.naming.Name dn,
                                javax.naming.directory.ModificationItem[] modList)
This override passes a confirmation message to CBError.confirm after a successful modify.

Overrides:
modifyAttributes in class BasicOps
Parameters:
dn - distinguished name of object to modify
modList - a list of ModificationItems
Returns:
the success status of the operation

open

public void open(java.lang.String heading,
                 java.lang.String operationName)
overload this method for progress tracker.

Overrides:
open in class AdvancedOps

close

public void close()
overload this method for progress tracker.

Overrides:
close in class AdvancedOps

pop

public void pop()
overload this method for progress tracker.

Overrides:
pop in class AdvancedOps

push

public javax.naming.NamingEnumeration push(javax.naming.NamingEnumeration elements)
overload this method for progress tracker. Note that elements is passed to allow determination of the number of objects - but the Enumeration must be returned without being reset, so be carefull when using it...

Overrides:
push in class AdvancedOps

inc

public void inc()
overload this method for progress tracker.

Overrides:
inc in class AdvancedOps