Class LocalTriggerManager.ScriptCPHasAttributesBean

    • Constructor Detail

      • ScriptCPHasAttributesBean

        public ScriptCPHasAttributesBean​(int userId,
                                         mks.ci.cp.api.CPHasAttributes cpha,
                                         java.sql.Connection c)
    • Method Detail

      • getAttributeValue

        public java.lang.Object getAttributeValue​(java.lang.String attributeName)
                                           throws mks.frame.triggers.TriggerException
        Returns the value of the specified attribute. The actual value returned is always a java object:
        • integer: Java `Integer' object
        • double: Java `Double' object
        • logical: Java `Boolean' object
        • date: Java `Date' object
        • string: Java `String' object
        • user: Java `String' name of the user
        • pick: Java `String' name of the picked entry
        • cpid: Java `String' object
        • cpidlist: Java `Set' of `String' objects which are the CPIDs
        • type: Java `imChangePackageType' bean object
        Parameters:
        attributeName - the name of the attribute.
        Returns:
        an Object representing the value of the attribute with the given name.
        Throws:
        mks.frame.triggers.TriggerException - if the attribute name is not associated with the change package entry.
      • getAttributeDisplayValue

        public java.lang.String getAttributeDisplayValue​(java.lang.String attributeName)
                                                  throws mks.frame.triggers.TriggerException
        Returns the display value of the specified attribute.
        Returns:
        a String representation of the value of the attribute with the given name.
        Throws:
        mks.frame.triggers.TriggerException - if the attribute name is not associated with the change package entry.