com.ibm.wbiserver.brules.mgmt

Interface OperationSelectionRecord

All Superinterfaces:
BusinessRuleChangeDetector, BusinessRuleValidateable, java.io.Serializable

  1. public interface OperationSelectionRecord
  2. extends BusinessRuleValidateable, BusinessRuleChangeDetector, java.io.Serializable
This interface represents one selection record associated with an operation. A selection record specifies a target business rule for the operation along with the start and end dates for that target. The business rule should be invoked when the date falls within the specified range. The user can create new instances of this interface in order to add new selection records (new date ranges) to an Operation. This is done using one of the newOperationSelectionRecord methods on the OperationSelectionRecordList interface.

Field Summary

Modifier and Type Field and Description
  1. static
  2. java.lang.String
COPYRIGHT

Method Summary

Modifier and Type Method and Description
  1. Operation
getAssociatedOperation()
Get the operation with which this operation selection record is associated.
  1. BusinessRule
getBusinessRuleTarget()
Get the business rule target for this selection record.
  1. java.util.Date
getEndDate()
Get the end date for this operation selection record.
  1. java.util.Date
getStartDate()
Get the start date for this operation selection record.
  1. void
setBusinessRuleTarget(BusinessRule newBusinessRuleTarget)
Set the business rule target for this selection record.
  1. void
setEndDate(java.util.Date newEndDate)
Set the end date for this operation selection record.
  1. void
setStartDate(java.util.Date newStartDate)
Set the start date for this operation selection record.
Methods inherited from interface com.ibm.wbiserver.brules.mgmt.BusinessRuleValidateable
validate
Methods inherited from interface com.ibm.wbiserver.brules.mgmt.BusinessRuleChangeDetector
hasChanges

Field Detail

  1. static final java.lang.String COPYRIGHT
See Also:

Method Detail

getStartDate

  1. java.util.Date getStartDate()
Get the start date for this operation selection record.
Returns:
The start date for this operation selection record. May be null.

setStartDate

  1. void setStartDate(java.util.Date newStartDate)
Set the start date for this operation selection record. The start date is allowed to be null. A null value means that any date is after the start date, i.e. this operation selection record is in effect at any time before the end date.
Parameters:
newStartDate - The new start date.
Throws:
ChangesNotAllowedException - if changes to this object are temporarily disallowed while other changes are being published.

getEndDate

  1. java.util.Date getEndDate()
Get the end date for this operation selection record.
Returns:
The end date for this operation selection record. May be null.

setEndDate

  1. void setEndDate(java.util.Date newEndDate)
Set the end date for this operation selection record. The end date is allowed to be null. A null value means that any date is before the end date, i.e. this operation selection record is in effect at any time after the start date.
Parameters:
newEndDate - The new end date.
Throws:
ChangesNotAllowedException - if changes to this object are temporarily disallowed while other changes are being published.

getBusinessRuleTarget

  1. BusinessRule getBusinessRuleTarget( )
Get the business rule target for this selection record. This is the business rule that is to be invoked if the date being checked is within the date range for this selection record.
Returns:
The business rule target for this selection record.

setBusinessRuleTarget

  1. void setBusinessRuleTarget(BusinessRule newBusinessRuleTarget)
  2. throws ValidationException
Set the business rule target for this selection record. This is the business rule that is to be invoked if the date being checked is within the date range for this selection record.
Parameters:
newBusinessRuleTarget - The new business rule target for this selection record. Must not be null.
Throws:
java.lang.IllegalArgumentException - if the new business rule target is null.
ValidationException - if the new business rule target is not in the available targets list for the operation associated with this selection record.
ChangesNotAllowedException - if changes to this object are temporarily disallowed while other changes are being published.

getAssociatedOperation

  1. Operation getAssociatedOperation( )
Get the operation with which this operation selection record is associated.
Returns:
The operation with which this operation selection record is associated.