psdi.app.recontask.engine

Class TaskFilter

  • java.lang.Object
    • psdi.app.recontask.engine.TaskFilter


  • public class TaskFilter
    extends java.lang.Object
    Defines the reconciliation task filter. A filter is optional for a task, and, if present, only one is permitted. Even if no filter is defined, an instance of this class will be created with a type = "".
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      protected java.util.List tables 
      protected java.util.Map valuesByAttributeCache
      Cache of reconciliation task filter values and operators by attribute for a task filter
    • Constructor Summary

      Constructors 
      Constructor and Description
      TaskFilter(ReconInfo reconInfo, MboRemote reconTaskMbo)
      Constructor for creating a task filter
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      protected java.util.Set getAttributes()
      Retrieves the set of Asset attribute names from cache
      DataSet getLeadingDataSet()
      Returns the leading data set.
      DataSet getSecondaryDataSet()
      Returns the subordinate data set.
      java.util.List getTables() 
      protected MboRemote getTaskFilter(MboRemote reconTaskMbo)
      Retrieve the filter MBO (business object) for the reconciliation task.
      java.lang.String getWhereClause()
      Retrieves the SQL WHERE clause for this reconciliation task based on the task filter, if any and for the given type of process.
      java.lang.String getWhereClause(java.lang.String whereClause)
      Retrieves the SQL WHERE clause for this reconciliation task based on the task filter, if any and for the given type of process.
      boolean isForDataSet(DataSet dataSet) 
      protected void loadTaskFilterClauses(MboRemote reconTaskMbo)
      Retrieves and caches the task filter clause for the given reconciliation task.
      protected java.util.Map parseTaskFilterClauses(MboSetRemote taskFilterClauses)
      Parses the given reconciliation task filter clauses into a TaskFilterClause object.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • valuesByAttributeCache

        protected java.util.Map valuesByAttributeCache
        Cache of reconciliation task filter values and operators by attribute for a task filter
      • tables

        protected java.util.List tables
    • Constructor Detail

      • TaskFilter

        public TaskFilter(ReconInfo reconInfo,
                          MboRemote reconTaskMbo)
                   throws MXException,
                          java.rmi.RemoteException
        Constructor for creating a task filter
        Parameters:
        reconInfo -
        Throws:
        MXException - If fails during reconciliation business object processing
        java.rmi.RemoteException - If fails during reconciliation business object processing
    • Method Detail

      • getLeadingDataSet

        public DataSet getLeadingDataSet()
        Returns the leading data set.
        Returns:
        the leading data set.
      • getSecondaryDataSet

        public DataSet getSecondaryDataSet()
        Returns the subordinate data set.
        Returns:
        the subordinate data set.
      • getAttributes

        protected java.util.Set getAttributes()
                                       throws MXException,
                                              java.rmi.RemoteException
        Retrieves the set of Asset attribute names from cache
        Returns:
        Set The set of attribute names for the reconciliation task filter
        Throws:
        MXException - If fails during reconciliation business object processing
        java.rmi.RemoteException - If fails during reconciliation business object processing
      • getWhereClause

        public java.lang.String getWhereClause()
                                        throws MXException,
                                               java.rmi.RemoteException
        Retrieves the SQL WHERE clause for this reconciliation task based on the task filter, if any and for the given type of process. Valid process types are TYPE_IT_ASSET and TYPE_DEPLOYED_ASSET.
        Parameters:
        processType - The type of assets being processed (authorized IT Assets or Deployed Assets)
        Returns:
        String The SQL WHERE clause based on filter type and process type
        Throws:
        MXException - If fails during reconciliation business object processing
        java.rmi.RemoteException - If fails during reconciliation business object processing
      • getTables

        public java.util.List getTables()
      • isForDataSet

        public boolean isForDataSet(DataSet dataSet)
      • getWhereClause

        public java.lang.String getWhereClause(java.lang.String whereClause)
                                        throws MXException,
                                               java.rmi.RemoteException
        Retrieves the SQL WHERE clause for this reconciliation task based on the task filter, if any and for the given type of process. Valid process types are TYPE_IT_ASSET and TYPE_DEPLOYED_ASSET.
        Parameters:
        whereClause - An existing filtering clause that is to be included in the resulting clause
        processType - The type of assets being processed (authorized IT Assets or Deployed Assets)
        Returns:
        String The SQL WHERE clause based on filter type and process type
        Throws:
        MXException - If fails during reconciliation business object processing
        java.rmi.RemoteException - If fails during reconciliation business object processing
      • getTaskFilter

        protected MboRemote getTaskFilter(MboRemote reconTaskMbo)
                                   throws MXException,
                                          java.rmi.RemoteException
        Retrieve the filter MBO (business object) for the reconciliation task.
        Parameters:
        reconTaskMbo - The Task to find the Filter for
        Returns:
        the Filter MBO
        Throws:
        MXException - If fails during reconciliation business object processing
        java.rmi.RemoteException - If fails during reconciliation business object processing
      • loadTaskFilterClauses

        protected void loadTaskFilterClauses(MboRemote reconTaskMbo)
                                      throws MXException,
                                             java.rmi.RemoteException
        Retrieves and caches the task filter clause for the given reconciliation task.
        Parameters:
        reconTaskMbo - The reconciliation task business object
        Throws:
        MXException - If fails during reconciliation business object processing
        java.rmi.RemoteException - If fails during reconciliation business object processing
      • parseTaskFilterClauses

        protected java.util.Map parseTaskFilterClauses(MboSetRemote taskFilterClauses)
                                                throws MXException,
                                                       java.rmi.RemoteException
        Parses the given reconciliation task filter clauses into a TaskFilterClause object.
        Parameters:
        taskFilterClauses - The set of task filter clauses to be parsed
        Returns:
        Map The cache of attribute names with associated values and comparison operators
        Throws:
        MXException - If fails during reconciliation business object processing
        java.rmi.RemoteException - If fails during reconciliation business object processing