IBM WebSphere Application ServerTM
Release 7

com.ibm.wbiserver.brules.mgmt
Interface OperationSelectionRecord

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

public interface OperationSelectionRecord
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
static java.lang.String COPYRIGHT
           
 
Method Summary
 Operation getAssociatedOperation()
          Get the operation with which this operation selection record is associated.
 BusinessRule getBusinessRuleTarget()
          Get the business rule target for this selection record.
 java.util.Date getEndDate()
          Get the end date for this operation selection record.
 java.util.Date getStartDate()
          Get the start date for this operation selection record.
 void setBusinessRuleTarget(BusinessRule newBusinessRuleTarget)
          Set the business rule target for this selection record.
 void setEndDate(java.util.Date newEndDate)
          Set the end date for this operation selection record.
 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

COPYRIGHT

static final java.lang.String COPYRIGHT
See Also:
Constant Field Values
Method Detail

getStartDate

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

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

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

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

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

void setBusinessRuleTarget(BusinessRule newBusinessRuleTarget)
                           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

Operation getAssociatedOperation()
Get the operation with which this operation selection record is associated.

Returns:
The operation with which this operation selection record is associated.

IBM WebSphere Application ServerTM
Release 7