psdi.app.rcncmprule

Class ReconCompRule

  • All Implemented Interfaces:
    java.rmi.Remote, ReconCompRuleRemote, ReconRuleRemote, MboConstants, MboRemote, MaxRemoteProxy


    public class ReconCompRule
    extends ReconRule
    implements ReconCompRuleRemote
    MBO representing a single Reconciliation Comparison Rule. A Comparison rule is comprised of one optional Comparison Filter (ReconCompFilter) and one or more Rule Clauses (ReconRuleClause).
    See Also:
    psdi.app.reconrules.ReconRule, psdi.app.reconrules.ReconRuleClause, psdi.app.reconrules.ReconCompClause, psdi.app.reconrules.ReconCompFilter, psdi.app.reconrules.ReconCompFltrAst, psdi.app.reconrules.ReconCompFltrDPA
    • Constructor Detail

      • ReconCompRule

        public ReconCompRule(MboSet ms)
                      throws java.rmi.RemoteException
        Default Constructor.
        Parameters:
        ms -
        Throws:
        java.rmi.RemoteException
    • Method Detail

      • init

        public void init()
                  throws MXException
        Default initialization routine. set FULLCICOMPARE field to be editable
        Overrides:
        init in class Mbo
        Throws:
        MXException
      • canDelete

        public void canDelete()
                       throws MXException,
                              java.rmi.RemoteException
        Overwitten for ReconCompRule. Delete is not allowed:
        • If the ReconCompRule is currently associated with a Task.
        Overrides:
        canDelete in class Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • delete

        public void delete(long modifier)
                    throws MXException,
                           java.rmi.RemoteException
        Delete this ReconCompRule and any references to it.
        Specified by:
        delete in interface MboRemote
        Overrides:
        delete in class Mbo
        Parameters:
        modifier - the 'accessModifier' flag
        Throws:
        MXException
        java.rmi.RemoteException
        See Also:
        Mbo.delete(long)
      • save

        public void save()
                  throws MXException,
                         java.rmi.RemoteException
        A RECONCOMPRULE must have either Matches Found Clause or Attributes Equality Clause, not both. If Asset Filter Clauses exist, validate its Expression. If Deployed Asset Filter Clauses exist, validate its Expression. If Matches Found Clauses exist, validate its Expression. Also, Matches Found must have atleast one Asset Filter Clause or one Deployed Asset Filter. If Attributes Equalitry Clauses exist, validate its Expression.
        Overrides:
        save in class Mbo
        Throws:
        java.rmi.RemoteException
        MXException
      • buildAssetFilterExpression

        public void buildAssetFilterExpression()
                                        throws java.rmi.RemoteException,
                                               MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • buildDPAFilterExpression

        public void buildDPAFilterExpression()
                                      throws java.rmi.RemoteException,
                                             MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • buildMatchesFoundExpression

        public void buildMatchesFoundExpression()
                                         throws java.rmi.RemoteException,
                                                MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • buildAttributesEqualityExpression

        public void buildAttributesEqualityExpression()
                                               throws java.rmi.RemoteException,
                                                      MXException
        Throws:
        java.rmi.RemoteException
        MXException
      • resetRuleNames

        public void resetRuleNames()
                            throws MXException,
                                   java.rmi.RemoteException
        Reset the rulename in Comparison Rules clauses (RECONCOMPFLTRAST, RECONCOMPFLTRDPA, RECONRCDCLAUSE, RECONATTRCLAUSE) to the current value. When a Comparison Rule is duplicated, its clauses still have the old name. So, need to reset it to current value
        Throws:
        MXException
        java.rmi.RemoteException
      • resetRuleName

        public void resetRuleName(java.lang.String relationshipName)
                           throws MXException,
                                  java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException
      • duplicate

        public MboRemote duplicate()
                            throws MXException,
                                   java.rmi.RemoteException
        Duplicate the current Comparison Rule.
        Specified by:
        duplicate in interface MboRemote
        Overrides:
        duplicate in class Mbo
        Returns:
        MboRemote The newly created Reconciliation ReconCompRule Mbo
        Throws:
        MXException
        java.rmi.RemoteException
      • compAppValidate

        public void compAppValidate()
                             throws MXException,
                                    java.rmi.RemoteException
        This method will be called from save() in order to catch generic fields validation exception for RECONCOMPFLTRAST, RECONCOMPFLTRDPA, RECONRCDCLAUSE, and RECONATTRCLAUSE. The UI tab name of the MboSet will be wraped with the exception.
        Throws:
        MXException
        java.rmi.RemoteException
      • validateSet

        public void validateSet(java.lang.String relationshipName)
                         throws MXException,
                                java.rmi.RemoteException
        Throws:
        MXException
        java.rmi.RemoteException