Class MobileCardInterventionRule

java.lang.Object
overit.geocallapp.wfm.core.bl.mobilecard.interventionrule.MobileCardInterventionRule
All Implemented Interfaces:
Serializable

public class MobileCardInterventionRule extends Object implements Serializable
Object representing the Mobile Card Rule.
Since:
13.0
See Also:
GCApi:
bo
  • Constructor Details

    • MobileCardInterventionRule

      public MobileCardInterventionRule()
  • Method Details

    • getCode

      public String getCode()
      Returns the Code.
      Returns:
      the Code
    • setCode

      public void setCode(String code)
      Sets the Code.
      Parameters:
      code - the Mobile Card Intervention Rule
    • getDescription

      public LocalizedString getDescription()
      Returns the Description.
      Returns:
      the Description
    • setDescription

      public void setDescription(LocalizedString description)
      Sets the Description.
      Parameters:
      description - the Mobile Card Intervention Rule
    • getStates

      public Set<String> getStates()
      Returns the States.
      Returns:
      the States
    • setStates

      public void setStates(Set<String> states)
      Sets the States.
      Parameters:
      states - the Mobile Card Intervention Rule
    • getUserTypes

      public Set<Long> getUserTypes()
      Returns the User Types.
      Returns:
      the User Types
    • setUserTypes

      public void setUserTypes(Set<Long> userTypes)
      Sets the User Types.
      Parameters:
      userTypes - the Mobile Card Intervention Rule
    • getCards

      public List<MobileCard> getCards()
      Returns the Cards.
      Returns:
      the Cards
    • setCards

      public void setCards(List<MobileCard> cards)
      Sets the Cards.
      Parameters:
      cards - the Mobile Card Intervention Rule
    • getActive

      public Boolean getActive()
      Returns Active field.
      Returns:
      the Active field
    • setActive

      public void setActive(Boolean active)
      Sets the Active field.
      Parameters:
      active - the Mobile Card Intervention Rule
    • clone

      Clones a MobileCardInterventionRule.
      Overrides:
      clone in class Object
    • checkUserTypeAndStatesConfilcts

      public boolean checkUserTypeAndStatesConfilcts(MobileCardInterventionRule rule)
      Check if the pairs (User Types/Intervention States) conflict with those in the rule parameter (only if both rules are Active)
      Parameters:
      rule - to compare with
      Returns:
      true if there are no conflicts