Class ConsequenceImpl

    • Constructor Detail

      • ConsequenceImpl

        public ConsequenceImpl()
        Constructor
    • Method Detail

      • getTargetState

        public State getTargetState​(String strStateName)
        Description copied from interface: Consequence
        Get the target state with the given state name
        Specified by:
        getTargetState in interface Consequence
        Parameters:
        strStateName - the name of the state
        Returns:
        the target state or null if not found
      • getTargetStates

        public State[] getTargetStates()
        Get the target states
        Specified by:
        getTargetStates in interface Consequence
        Returns:
        the target states as a Vector
      • addTargetState

        public void addTargetState​(StateSetter stateSetter)
        Description copied from interface: Consequence
        Add a new Target State to the collection
        Specified by:
        addTargetState in interface Consequence
        Parameters:
        stateSetter - object to be added
      • getUnsetState

        public State getUnsetState​(String strStateName)
        Description copied from interface: Consequence
        Get the state to un-set with the given state name
        Specified by:
        getUnsetState in interface Consequence
        Parameters:
        strStateName - the name of the state
        Returns:
        the state to un-set or null if not found
      • getUnsetStates

        public State[] getUnsetStates()
        Get the states to unset
        Specified by:
        getUnsetStates in interface Consequence
        Returns:
        the states to unset as a Vector
      • addUnsetState

        public void addUnsetState​(StateSetter stateSetter)
        Description copied from interface: Consequence
        Add a new Unset State to the collection
        Specified by:
        addUnsetState in interface Consequence
        Parameters:
        stateSetter - object to be added
      • getKill

        public boolean getKill()
        Get the flag that specifies if instance has to be removed
        Specified by:
        getKill in interface Consequence
        Returns:
        true if instance has to be removed
      • setKill

        public void setKill​(boolean kill)
        Set the flag that specifies if instance has to be removed
        Specified by:
        setKill in interface Consequence
        Parameters:
        kill - true if instance has to be removed
      • getNotifiedUsers

        public List<QualifiedUsers> getNotifiedUsers()
        Get all the users that have to be notified
        Specified by:
        getNotifiedUsers in interface Consequence
        Returns:
        QualifiedUsers object containing notified users
      • setNotifiedUsers

        public void setNotifiedUsers​(List<QualifiedUsers> notifiedUsersList)
        Set all the users that have to be notified
        Specified by:
        setNotifiedUsers in interface Consequence
        Parameters:
        notifiedUsersList - object containing notified users
      • getItem

        public String getItem()
        Description copied from interface: Consequence
        Get the item on which the comparison will be processed
        Specified by:
        getItem in interface Consequence
        Returns:
        the item name
      • getOperator

        public String getOperator()
        Description copied from interface: Consequence
        Get the operator used to compare item and value
        Specified by:
        getOperator in interface Consequence
        Returns:
        an operator (ie : =, >, >=, <, <=, !=)
      • getValue

        public String getValue()
        Description copied from interface: Consequence
        Get the value to compare with item
        Specified by:
        getValue in interface Consequence
        Returns:
        the value
      • isVerified

        public boolean isVerified​(String itemValue)
        Check if the consequence is verified or not
        Specified by:
        isVerified in interface Consequence
        Parameters:
        itemValue - - the value of the folder item (specified in xml attribute 'item'
        Returns:
        true if the consequence is verified
      • setItem

        public void setItem​(String string)
        Description copied from interface: Consequence
        Set the item on which the comparison will be processed
        Specified by:
        setItem in interface Consequence
        Parameters:
        string - the item
      • setOperator

        public void setOperator​(String string)
        Description copied from interface: Consequence
        Set the operator used to compare item and value
        Specified by:
        setOperator in interface Consequence
        Parameters:
        string - the operator (ie : =, >, >=, <, <=, !=)
      • setValue

        public void setValue​(String string)
        Description copied from interface: Consequence
        Set the value to compare with item
        Specified by:
        setValue in interface Consequence
        Parameters:
        string - the value
      • setTriggers

        public void setTriggers​(Triggers triggers)
      • addNotifiedUsers

        public void addNotifiedUsers​(QualifiedUsers notifyUsers)
        Description copied from interface: Consequence
        Add a new notifiedUser to the collection
        Specified by:
        addNotifiedUsers in interface Consequence
        Parameters:
        notifyUsers - object to be added