psdi.iface.proc

Class RulesCacheImpl

  • java.lang.Object
    • psdi.iface.proc.RulesCacheImpl
  • All Implemented Interfaces:
    MaximoCache


    public class RulesCacheImpl
    extends java.lang.Object
    implements MaximoCache
    Represents the set of RulesCache.
    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String NAME
      Name to be registered in the cashe to reload
    • Constructor Summary

      Constructors 
      Constructor and Description
      RulesCacheImpl() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      java.lang.String getName()
      Return name to be registered in the cashe to reload
      java.util.List getProcessingRules(java.lang.String useWith, java.lang.String entityName, java.lang.String objStructName, java.lang.String hpath)
      Returns a boolean that indicates whether any Rules enabled for a given Object Structure name and Map of MaxIfaceProcInfo.
      java.util.List getTableProcsMboIn(java.lang.String ifacename, java.lang.String mosname, java.lang.String hpath)
      Return Inbound MBO Rules of the Given Table
      java.util.List getTableProcsObjIn(java.lang.String ifacename, java.lang.String mosname, java.lang.String hpath)
      Return Inbound Object Rules of the Given Table
      java.util.List getTableProcsOut(java.lang.String ifacename, java.lang.String mosname, java.lang.String hpath)
      Return Outbound Rules of the Given Table
      boolean hasInboundMboRules(java.lang.String ifacename)
      Evaluates does Interface has Inbound MBO Rules
      boolean hasInboundMboRules(java.lang.String ifacename, java.lang.String mosname)
      Evaluates does Interface has Inbound MBO Rules
      boolean hasInboundObjectRules(java.lang.String ifacename)
      Evaluates does Interface has Inbound Object Rules
      boolean hasInboundObjectRules(java.lang.String ifacename, java.lang.String mosname)
      Evaluates does Interface has Inbound Object Rules
      boolean hasMigrationObjectRules(java.lang.String mosname)
      Evaluates does Migration Manager Object has processing rules
      boolean hasMigrationPackageRules(java.lang.String packageName)
      Evaluates does Migration Manager Object has processing rules
      boolean hasMigrationPackageRulesForObject(java.lang.String packageName, java.lang.String mosname)
      Evaluates does Migration Manager Object has processing rules
      boolean hasOutboundRules(java.lang.String ifacename)
      Evaluates does Interface has Outbound Rules
      boolean hasOutboundRules(java.lang.String ifacename, java.lang.String mosname)
      Evaluates does Interface has Outbound Rules
      void init()
      Init Method
      boolean isAnyInBoundMBORulesEnabled(java.lang.String ifacename)
      Returns a boolean that indicates whether any Inbound MBO Rules enabled for a given Enterprise Service name.
      boolean isAnyInBoundObjectRulesEnabled(java.lang.String ifacename)
      Returns a boolean that indicates whether any Inbound Object Rules enabled for a given Enterprise Service name.
      boolean isAnyOutBoundRulesEnabled(java.lang.String ifacename)
      Returns a boolean that indicates whether any Outbound Rules enabled for a given Publish Channel name.
      void refresh()
      Refresh the Cache
      void reload()
      Default Reload method
      void reload(java.lang.String key)
      Reload method
      • Methods inherited from class java.lang.Object

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

      • NAME

        public static final java.lang.String NAME
        Name to be registered in the cashe to reload
        See Also:
        Constant Field Values
    • Constructor Detail

      • RulesCacheImpl

        public RulesCacheImpl()
    • Method Detail

      • getName

        public java.lang.String getName()
        Return name to be registered in the cashe to reload
        Specified by:
        getName in interface MaximoCache
        Returns:
        Throws:
        MXException - MAXIMO exception
      • hasOutboundRules

        public boolean hasOutboundRules(java.lang.String ifacename)
        Evaluates does Interface has Outbound Rules
        Parameters:
        ifacename - Service/ Channel name
        Returns:
        TRUE/FALSE based on the Rules
      • hasOutboundRules

        public boolean hasOutboundRules(java.lang.String ifacename,
                                        java.lang.String mosname)
        Evaluates does Interface has Outbound Rules
        Parameters:
        ifacename - Channel name
        mosname - Object Structure name
        Returns:
        TRUE/FALSE based on the Rules
      • hasInboundMboRules

        public boolean hasInboundMboRules(java.lang.String ifacename)
        Evaluates does Interface has Inbound MBO Rules
        Parameters:
        ifacename - Service name
        Returns:
        TRUE/FALSE based on the Rules
      • hasInboundMboRules

        public boolean hasInboundMboRules(java.lang.String ifacename,
                                          java.lang.String mosname)
        Evaluates does Interface has Inbound MBO Rules
        Parameters:
        ifacename - Service name
        mosname - Object Structure name
        Returns:
        TRUE/FALSE based on the Rules
      • hasInboundObjectRules

        public boolean hasInboundObjectRules(java.lang.String ifacename)
        Evaluates does Interface has Inbound Object Rules
        Parameters:
        ifacename - Service/ Channel name
        Returns:
        TRUE/FALSE based on the Rules
      • hasInboundObjectRules

        public boolean hasInboundObjectRules(java.lang.String ifacename,
                                             java.lang.String mosname)
        Evaluates does Interface has Inbound Object Rules
        Parameters:
        ifacename - Service/ Channel name
        mosname - Object Structure name
        Returns:
        TRUE/FALSE based on the Rules
      • hasMigrationObjectRules

        public boolean hasMigrationObjectRules(java.lang.String mosname)
        Evaluates does Migration Manager Object has processing rules
        Parameters:
        mosname - Oject Structure name
        Returns:
        TRUE/FALSE based on the Rules
      • hasMigrationPackageRules

        public boolean hasMigrationPackageRules(java.lang.String packageName)
        Evaluates does Migration Manager Object has processing rules
        Parameters:
        packageName - Package name
        Returns:
        TRUE/FALSE based on the Rules
      • hasMigrationPackageRulesForObject

        public boolean hasMigrationPackageRulesForObject(java.lang.String packageName,
                                                         java.lang.String mosname)
        Evaluates does Migration Manager Object has processing rules
        Parameters:
        packageName - Package name
        mosname - Oject Structure name
        Returns:
        TRUE/FALSE based on the Rules
      • getTableProcsObjIn

        public java.util.List getTableProcsObjIn(java.lang.String ifacename,
                                                 java.lang.String mosname,
                                                 java.lang.String hpath)
        Return Inbound Object Rules of the Given Table
        Parameters:
        ifacename - Service/ Channel name
        mosname - Object Structure name
        hpath - Location path
        Returns:
        List of all rules for given table
      • getTableProcsMboIn

        public java.util.List getTableProcsMboIn(java.lang.String ifacename,
                                                 java.lang.String mosname,
                                                 java.lang.String hpath)
        Return Inbound MBO Rules of the Given Table
        Parameters:
        ifacename - Service/ Channel name
        mosname - Object Structure name
        hpath - Location path
        Returns:
        List of all rules for given table
      • getTableProcsOut

        public java.util.List getTableProcsOut(java.lang.String ifacename,
                                               java.lang.String mosname,
                                               java.lang.String hpath)
        Return Outbound Rules of the Given Table
        Parameters:
        ifacename - Service/ Channel name
        mosname - Object Structure name
        hpath - Location path
        Returns:
        List of all rules for given table
      • getProcessingRules

        public java.util.List getProcessingRules(java.lang.String useWith,
                                                 java.lang.String entityName,
                                                 java.lang.String objStructName,
                                                 java.lang.String hpath)
        Returns a boolean that indicates whether any Rules enabled for a given Object Structure name and Map of MaxIfaceProcInfo.
        Parameters:
        useWith - use with indentifier
        entityName - entity Name
        objStructName - object Structure Name
        hpath - x-path
        Returns:
        boolean Returns whether any rules enabled.
      • isAnyOutBoundRulesEnabled

        public boolean isAnyOutBoundRulesEnabled(java.lang.String ifacename)
                                          throws MXException
        Returns a boolean that indicates whether any Outbound Rules enabled for a given Publish Channel name. Throws MXException if the publish Channel name is not a valid Publish Channel.
        Parameters:
        ifacename - Publish Channel name
        Returns:
        boolean Returns whether the publish channel has any outbound rules enabled.
        Throws:
        MXException - Throws MXApplicationException
      • isAnyInBoundMBORulesEnabled

        public boolean isAnyInBoundMBORulesEnabled(java.lang.String ifacename)
                                            throws MXException
        Returns a boolean that indicates whether any Inbound MBO Rules enabled for a given Enterprise Service name. Throws MXException if the Service name is not a valid Service.
        Parameters:
        ifacename - Enterprise Service name
        Returns:
        boolean Returns whether the Enterprise Service has any inbound MBO rules enabled.
        Throws:
        MXException - Throws MXApplicationException
      • isAnyInBoundObjectRulesEnabled

        public boolean isAnyInBoundObjectRulesEnabled(java.lang.String ifacename)
                                               throws MXException
        Returns a boolean that indicates whether any Inbound Object Rules enabled for a given Enterprise Service name. Throws MXException if the Service name is not a valid Service.
        Parameters:
        ifacename - Enterprise Service name
        Returns:
        boolean Returns whether the Enterprise Service has any Inbound Object Rules enabled.
        Throws:
        MXException - Throws MXApplicationException