org.cmis.interopserver.services.tie
Class IncidentValidationManager

java.lang.Object
  extended by org.cmis.interopserver.services.base.InteropDmisProxyObject
      extended by org.cmis.interopserver.services.tie.IncidentValidationManager
All Implemented Interfaces:
IncidentValidationManagerMBean

public class IncidentValidationManager
extends org.cmis.interopserver.services.base.InteropDmisProxyObject
implements IncidentValidationManagerMBean

DOCUMENT ME!

Author:
matt hoffman This isn't static because it needs a proxy and operator object

Field Summary
(package private) static IncidentValidationManager singleton
           
 
Method Summary
static java.util.Hashtable getIdNameMappings()
          DOCUMENT ME!
static IncidentValidationManager getInstance()
           
 int getValidationErrorCount()
          DOCUMENT ME!
 java.util.Hashtable getValidCategories()
          DOCUMENT ME!
 java.util.Collection getValidCategoryNames()
          Returns the categories.
 java.util.Collection getValidConfidenceNames()
          DOCUMENT ME!
 java.util.Hashtable getValidConfidences()
          DOCUMENT ME!
 java.util.Collection getValidNotificationLevelNames()
          Returns the notificationLevels.
 java.util.Hashtable getValidNotificationLevels()
          Returns the notificationLevels.
 java.util.Collection getValidPhaseNames()
          DOCUMENT ME!
 java.util.Hashtable getValidPhases()
          DOCUMENT ME!
 java.util.Hashtable getValidSeverities()
          Returns the severities.
 java.util.Collection getValidSeverityNames()
          DOCUMENT ME!
 java.util.Hashtable getValidStatuses()
          DOCUMENT ME!
 java.util.Collection getValidStatusNames()
          DOCUMENT ME!
 java.util.Collection getValidTypeNames()
          DOCUMENT ME!
 java.util.Hashtable getValidTypes()
          DOCUMENT ME!
 java.util.Collection getValuesOrderedByKey(java.util.Hashtable table)
          Given a hashtable, returns an ordered set of values based on key order.
 boolean isValid(java.util.Collection validArray, java.lang.String testString)
          Method isValid.
static void main(java.lang.String[] args)
          DOCUMENT ME!
 void resetValidationErrorCount()
          DOCUMENT ME!
protected  void validateIncident(org.cmis.common.tie.IncidentInfo in)
          DOCUMENT ME!
protected  void validateMailList(org.cmis.interopserver.beans.SimpleCOG[] tssc, org.cmis.interopserver.beans.SimpleCOG[] validCogs)
          This prevents the case where a post is attempted to a list including the posting cog
 
Methods inherited from class org.cmis.interopserver.services.base.InteropDmisProxyObject
getOperator, getProxy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

singleton

static IncidentValidationManager singleton
Method Detail

getInstance

public static IncidentValidationManager getInstance()

getIdNameMappings

public static java.util.Hashtable getIdNameMappings()
DOCUMENT ME!

Returns:

isValid

public boolean isValid(java.util.Collection validArray,
                       java.lang.String testString)
Method isValid. Takes an arraylist of valid values and checks to see if the testString is among them. More lenient than "contains".

Parameters:
validArray -
testString -
Returns:
boolean

getValidCategories

public java.util.Hashtable getValidCategories()
                                       throws java.rmi.RemoteException
DOCUMENT ME!

Returns:
Throws:
java.rmi.RemoteException - DOCUMENT ME!

getValidCategoryNames

public java.util.Collection getValidCategoryNames()
                                           throws java.rmi.RemoteException
Returns the categories.

Returns:
ArrayList
Throws:
java.rmi.RemoteException - DOCUMENT ME!

getValidConfidenceNames

public java.util.Collection getValidConfidenceNames()
                                             throws java.rmi.RemoteException
DOCUMENT ME!

Returns:
DOCUMENT ME!
Throws:
java.rmi.RemoteException - DOCUMENT ME!

getValidConfidences

public java.util.Hashtable getValidConfidences()
                                        throws java.rmi.RemoteException
DOCUMENT ME!

Returns:
DOCUMENT ME!
Throws:
java.rmi.RemoteException - DOCUMENT ME!

getValidNotificationLevelNames

public java.util.Collection getValidNotificationLevelNames()
                                                    throws java.rmi.RemoteException
Returns the notificationLevels.

Returns:
ArrayList
Throws:
java.rmi.RemoteException - DOCUMENT ME!

getValidNotificationLevels

public java.util.Hashtable getValidNotificationLevels()
                                               throws java.rmi.RemoteException
Returns the notificationLevels.

Returns:
ArrayList
Throws:
java.rmi.RemoteException - DOCUMENT ME!

getValidPhaseNames

public java.util.Collection getValidPhaseNames()
                                        throws java.rmi.RemoteException
DOCUMENT ME!

Returns:
DOCUMENT ME!
Throws:
java.rmi.RemoteException - DOCUMENT ME!

getValidPhases

public java.util.Hashtable getValidPhases()
                                   throws java.rmi.RemoteException
DOCUMENT ME!

Returns:
DOCUMENT ME!
Throws:
java.rmi.RemoteException - DOCUMENT ME!

getValidSeverities

public java.util.Hashtable getValidSeverities()
                                       throws java.rmi.RemoteException
Returns the severities.

Returns:
ArrayList
Throws:
java.rmi.RemoteException - DOCUMENT ME!

getValidSeverityNames

public java.util.Collection getValidSeverityNames()
                                           throws java.rmi.RemoteException
DOCUMENT ME!

Returns:
DOCUMENT ME!
Throws:
java.rmi.RemoteException - DOCUMENT ME!

getValidStatusNames

public java.util.Collection getValidStatusNames()
                                         throws java.rmi.RemoteException
DOCUMENT ME!

Returns:
DOCUMENT ME!
Throws:
java.rmi.RemoteException - DOCUMENT ME!

getValidStatuses

public java.util.Hashtable getValidStatuses()
                                     throws java.rmi.RemoteException
DOCUMENT ME!

Returns:
DOCUMENT ME!
Throws:
java.rmi.RemoteException - DOCUMENT ME!

getValidTypeNames

public java.util.Collection getValidTypeNames()
                                       throws java.rmi.RemoteException
DOCUMENT ME!

Returns:
DOCUMENT ME!
Throws:
java.rmi.RemoteException - DOCUMENT ME!

getValuesOrderedByKey

public java.util.Collection getValuesOrderedByKey(java.util.Hashtable table)
Given a hashtable, returns an ordered set of values based on key order. Must assume the keys implement Comparable

Returns:
DOCUMENT ME!
Throws:
java.rmi.RemoteException - DOCUMENT ME!

getValidTypes

public java.util.Hashtable getValidTypes()
                                  throws java.rmi.RemoteException
DOCUMENT ME!

Returns:
DOCUMENT ME!
Throws:
java.rmi.RemoteException - DOCUMENT ME!

getValidationErrorCount

public int getValidationErrorCount()
DOCUMENT ME!

Specified by:
getValidationErrorCount in interface IncidentValidationManagerMBean
Returns:
DOCUMENT ME!

main

public static void main(java.lang.String[] args)
DOCUMENT ME!

Parameters:
args - DOCUMENT ME!

resetValidationErrorCount

public void resetValidationErrorCount()
DOCUMENT ME!

Specified by:
resetValidationErrorCount in interface IncidentValidationManagerMBean

validateIncident

protected void validateIncident(org.cmis.common.tie.IncidentInfo in)
                         throws DMISValidationException,
                                java.rmi.RemoteException
DOCUMENT ME!

Parameters:
in - DOCUMENT ME!
Throws:
DMISValidationException - DOCUMENT ME!
java.rmi.RemoteException - DOCUMENT ME!

validateMailList

protected void validateMailList(org.cmis.interopserver.beans.SimpleCOG[] tssc,
                                org.cmis.interopserver.beans.SimpleCOG[] validCogs)
                         throws DMISValidationException,
                                java.rmi.RemoteException,
                                org.cmis.interopserver.services.common.InvalidUserSessionException
This prevents the case where a post is attempted to a list including the posting cog

Parameters:
tssc - DOCUMENT ME!
validCogs - DOCUMENT ME!
Throws:
DMISValidationException - DOCUMENT ME!
java.rmi.RemoteException - DOCUMENT ME!
org.cmis.interopserver.services.common.InvalidUserSessionException - DOCUMENT ME!