java.lang.Object
overit.geocall.model.DynO
overit.geocallapp.wfm.bundler.bl.configuration.bundling.rule.header.BOBundlingRuleHeader
All Implemented Interfaces:
ConstraintValidator<DynO.Valid,DynO>, Serializable, Comparable<BOBundlingRuleHeader>, overit.geocall.timezone.model.TimeZoned

public class BOBundlingRuleHeader extends DynO implements Comparable<BOBundlingRuleHeader>
Business object representing a bundling rule header.
Since:
10.1
See Also:
GCApi:
bo
  • Field Details

    • DEFAULT_MIN_BUNDLE_SIZE

      public static final int DEFAULT_MIN_BUNDLE_SIZE
      See Also:
    • DEFAULT_MAX_BUNDLE_SIZE

      public static final int DEFAULT_MAX_BUNDLE_SIZE
      See Also:
  • Constructor Details

    • BOBundlingRuleHeader

      public BOBundlingRuleHeader()
  • Method Details

    • getId

      public Long getId()
      Returns the bundling rule id.
      Returns:
      the bundling rule id
    • setId

      public void setId(Long id)
      Sets the bundling rule id.
      Parameters:
      id - the bundling rule id
    • getCode

      public String getCode()
      Returns the bundling rule code.
      Returns:
      the code
    • setCode

      public void setCode(String code)
      Sets the bundling rule code.
      Parameters:
      code - the code
    • getDescription

      public LocalizedString getDescription()
      Returns the bundling rule description.
      Returns:
      the description
    • setDescription

      public void setDescription(LocalizedString description)
      Sets the bundling rule description.
      Parameters:
      description - the description
    • getPriority

      public Long getPriority()
      Returns the bundling rule priority.
      Returns:
      the priority
    • setPriority

      public void setPriority(Long priority)
      Sets the bundling rule priority.
      Parameters:
      priority - the priority
    • getActive

      public Boolean getActive()
      Checks if the bundling rule is active.
      Returns:
      true if the bundling rule is active, false otherwise
    • setActive

      public void setActive(Boolean active)
      Sets the bundling rule to active.
      Parameters:
      active - true if the bundling rule must be active, false otherwise
    • isActive

      public boolean isActive()
      Checks if the bundling rule is active.
      Returns:
      true if the bundling rule is active, false otherwise
    • getManualExecution

      public Boolean getManualExecution()
      Checks if the bundling rule execution is manual.
      Returns:
      true if the bundling rule execution is manual, false otherwise
    • setManualExecution

      public void setManualExecution(Boolean manualExecution)
      Sets the bundling rule execution to manual.
      Parameters:
      manualExecution - true if the bundling rule execution can be manual, false otherwise
    • isManualExecution

      public boolean isManualExecution()
      Checks if the bundling rule execution is manual.
      Returns:
      true if the bundling rule execution is manual, false otherwise
    • getAutomaticExecution

      public Boolean getAutomaticExecution()
      Checks if the bundling rule execution is automatic.
      Returns:
      true if the bundling rule execution is automatic, false otherwise
    • setAutomaticExecution

      public void setAutomaticExecution(Boolean automaticExecution)
      Sets the bundling rule execution to automatic.
      Parameters:
      automaticExecution - true if the bundling rule execution can be automatic, false otherwise
    • isAutomaticExecution

      public boolean isAutomaticExecution()
      Checks if the bundling rule execution is automatic.
      Returns:
      true if the bundling rule execution is automatic, false otherwise
    • getMinBundleSize

      public Long getMinBundleSize()
      Returns the min permitted size for the Bundles created with this rule.
      Returns:
      the min permitted bundle size
    • setMinBundleSize

      public void setMinBundleSize(Long minBundleSize)
      Sets the min permitted size for the Bundles created with this rule.
      Parameters:
      minBundleSize - the min permitted bundle size
    • getMaxBundleSize

      public Long getMaxBundleSize()
      Returns the max permitted size for the Bundles created with this rule.
      Returns:
      the max permitted bundle size
    • setMaxBundleSize

      public void setMaxBundleSize(Long maxBundleSize)
      Sets the max permitted size for the Bundles created with this rule.
      Parameters:
      maxBundleSize - the max permitted bundle size
    • getMaxBundleDuration

      public Long getMaxBundleDuration()
      Returns the max permitted size for the Bundles created with this rule.
      Returns:
      the max permitted bundle duration
    • setMaxBundleDuration

      public void setMaxBundleDuration(Long maxBundleDuration)
      Sets the max permitted size for the Bundles created with this rule.
      Parameters:
      maxBundleDuration - the max permitted bundle duration
    • getTechnicalObjectBundlingType

      public Long getTechnicalObjectBundlingType()
      Returns the technical object bundling type of this rule.
      Returns:
      the technical object bundling type
      See Also:
    • setTechnicalObjectBundlingType

      public void setTechnicalObjectBundlingType(Long technicalObjectBundlingType)
      Sets the technical object bundling type of this rule.
      Parameters:
      technicalObjectBundlingType - the technical object bundling type
      See Also:
    • getLocationBundlingType

      public Long getLocationBundlingType()
      Returns the location bundling type of this rule.
      Returns:
      the location bundling type
      See Also:
    • setLocationBundlingType

      public void setLocationBundlingType(Long locationBundlingType)
      Sets the location bundling type of this rule.
      Parameters:
      locationBundlingType - the location bundling type
      See Also:
    • getBundlingByRequestType

      public Boolean getBundlingByRequestType()
      Checks if the bundling rule is by request type.
      Returns:
      true if the bundling rule is by request type, false otherwise
    • setBundlingByRequestType

      public void setBundlingByRequestType(Boolean bundlingByRequestType)
      Sets the bundling rule by request type.
      Parameters:
      bundlingByRequestType - true if the bundling rule must be by request type, false otherwise
    • isBundlingByRequestType

      public boolean isBundlingByRequestType()
      Checks if the bundling rule is by request type.
      Returns:
      true if the bundling rule is by request type, false otherwise
    • getBundlingByServiceType

      public Boolean getBundlingByServiceType()
      Checks if the bundling rule is by service type.
      Returns:
      true if the bundling rule is by service type, false otherwise
    • setBundlingByServiceType

      public void setBundlingByServiceType(Boolean bundlingByServiceType)
      Sets the bundling rule by service type.
      Parameters:
      bundlingByServiceType - true if the bundling rule must be by service type, false otherwise
    • isBundlingByServiceType

      public boolean isBundlingByServiceType()
      Checks if the bundling rule is by service type.
      Returns:
      true if the bundling rule is by service type, false otherwise
    • getBundlingByTechnicalObjectType

      public Boolean getBundlingByTechnicalObjectType()
      Checks if the bundling rule is by technical object type.
      Returns:
      true if the bundling rule is by technical object type, false otherwise
    • setBundlingByTechnicalObjectType

      public void setBundlingByTechnicalObjectType(Boolean bundlingByTechnicalObjectType)
      Sets the bundling rule by technical object type.
      Parameters:
      bundlingByTechnicalObjectType - true if the bundling rule must be by technical object type, false otherwise
    • isBundlingByTechnicalObjectType

      public boolean isBundlingByTechnicalObjectType()
      Checks if the bundling rule is by technical object type.
      Returns:
      true if the bundling rule is by technical object type, false otherwise
    • getBundlingByOperationType

      public Boolean getBundlingByOperationType()
      Checks if the bundling rule is by operation type.
      Returns:
      true if the bundling rule is by operation type, false otherwise
    • setBundlingByOperationType

      public void setBundlingByOperationType(Boolean bundlingByOperationType)
      Sets the bundling rule by operation type.
      Parameters:
      bundlingByOperationType - true if the bundling rule must be by operation type, false otherwise
    • isBundlingByOperationType

      public boolean isBundlingByOperationType()
      Checks if the bundling rule is by operation type.
      Returns:
      true if the bundling rule is by operation type, false otherwise
    • getBundlingByTeamCardinality

      public Boolean getBundlingByTeamCardinality()
      Checks if the bundling rule is by team cardinality.
      Returns:
      true if the rule is by team cardinality, false otherwise
    • setBundlingByTeamCardinality

      public void setBundlingByTeamCardinality(Boolean bundlingByTeamCardinality)
      Sets the bundling rule by team cardinality.
      Parameters:
      bundlingByTeamCardinality - true if the rule must be by team cardinality, false otherwise
    • isBundlingByTeamCardinality

      public boolean isBundlingByTeamCardinality()
      Checks if the bundling rule is by team cardinality.
      Returns:
      true if the rule is by team cardinality, false otherwise
    • getTimeIntervalBundlingType

      public Long getTimeIntervalBundlingType()
      Returns the time interval bundling type of this rule.
      Returns:
      the time interval bundling type
      See Also:
    • setTimeIntervalBundlingType

      public void setTimeIntervalBundlingType(Long timeIntervalBundlingType)
      Sets the time interval bundling type of this rule.
      Parameters:
      timeIntervalBundlingType - the time interval bundling type
      See Also:
    • getIsDefault

      public Boolean getIsDefault()
      Checks if the bundling rule is set as default.
      Returns:
      true if the rule is set as default, false otherwise
    • setIsDefault

      public void setIsDefault(Boolean isDefault)
      Sets if the bundling rule is default.
      Parameters:
      isDefault - true if the rule is default, false otherwise
    • getAutoBundlePartialOperations

      public Boolean getAutoBundlePartialOperations()
      Checks if the bundling rule is set to automatically create bundle from partial operations.
      Returns:
      true if the rule is set to automatically create bundle from partial operations, false otherwise
    • setAutoBundlePartialOperations

      public void setAutoBundlePartialOperations(Boolean autoBundlePartialOperations)
      Sets if the bundling rule is set to automatically create bundle from partial operations.
      Parameters:
      autoBundlePartialOperations - true if the rule is set to automatically create bundle from partial operations, false otherwise
    • getProximityThreshold

      public Double getProximityThreshold()
      Returns the proximity threshold of this rule.
      Returns:
      the proximity threshold
    • setProximityThreshold

      public void setProximityThreshold(Double proximityThreshold)
      Sets the proximity threshold of this rule.
      Parameters:
      proximityThreshold - the proximity threshold
    • getProximityThresholdEditable

      public Boolean getProximityThresholdEditable()
      Checks if the proximity threshold is editable.
      Returns:
      true if the proximity threshold is editable, false otherwise
    • setProximityThresholdEditable

      public void setProximityThresholdEditable(Boolean proximityThresholdEditable)
      Sets if the proximity threshold is editable.
      Parameters:
      proximityThresholdEditable - true if the proximity threshold is editable, false otherwise
    • isProximityThresholdEditable

      public boolean isProximityThresholdEditable()
      Checks if the proximity threshold is editable.
      Returns:
      true if the proximity threshold is editable, false otherwise
    • hasAnEnabledPrimaryCriterion

      public boolean hasAnEnabledPrimaryCriterion()
      Checks if the bundling rule has at least one primary criterion enabled.
      Returns:
      true if this rule has at least one primary criterion enabled, false otherwise
    • hasAnEnabledSecondaryCriterion

      public boolean hasAnEnabledSecondaryCriterion()
      Checks if the bundling rule has at least one secondary criterion enabled.
      Returns:
      true if this rule has at least one secondary criterion enabled, false otherwise
    • hasAnEnabledCriterion

      public boolean hasAnEnabledCriterion()
      Checks if the bundling rule has at least one enabled criterion.
      Returns:
      true if the bundling rule has at least one enabled criterion, false otherwise
    • compareTo

      public int compareTo(BOBundlingRuleHeader bundlingRuleHeader)
      Compares the current bundling rule header to the given one.
      Specified by:
      compareTo in interface Comparable<BOBundlingRuleHeader>
      Parameters:
      bundlingRuleHeader - the given bundling rule header that needs to be compared with the current
      Returns:
      a negative integer, zero, or a positive integer as the current bundling rule has a priority that is less than, equal to, or greater than the given one.