public interface TodoProducer extends OsidRule
A TodoProducer
describes the mason for making
Todos.
Modifier and Type | Method and Description |
---|---|
CyclicEvent |
getCyclicEvent()
Gets the cyclic event.
|
Id |
getCyclicEventId()
Gets the cyclic event
Id. |
Stock |
getStock()
Gets the stock.
|
Id |
getStockId()
Gets the stock
Id. |
long |
getStockLevel()
Gets the stock level.
|
TodoProducerRecord |
getTodoProducerRecord(Type todoProducerRecordType)
Gets the todo producer record corresponding to the given
TodoProducer record Type. |
boolean |
isBasedOnStock()
Tests if a todo should be produced based on an item level in a stock.
|
boolean |
isBasedOnTimeCycle()
Tests if a todo should be produced based on a time cycle.
|
boolean |
isCreationRule()
Tests if a todo should be created or destroyed.
|
getDescription, getDisplayName, getGenusType, isOfGenusType
getId, isCurrent
getRecordTypes, hasRecordType
getProperties, getPropertiesByRecordType
isActive, isDisabled, isEnabled, isOperational
boolean isCreationRule()
true
if a creation rule, false
if a destruction rulemandatory
- This method must be implemented. boolean isBasedOnTimeCycle()
true
if based on a timecycle, false
otherwisemandatory
- This method must be implemented. Id getCyclicEventId()
Id.
Id
IllegalStateException
- isBasedOnTimeCycle()
is false
mandatory
- This method must be implemented. CyclicEvent getCyclicEvent() throws OperationFailedException
IllegalStateException
- isBasedOnTimeCycle()
is false
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. boolean isBasedOnStock()
true
if based on a stock, false
otherwisemandatory
- This method must be implemented. long getStockLevel()
IllegalStateException
- isBasedOnStock()
is false
mandatory
- This method must be implemented. Id getStockId()
Id.
Id
IllegalStateException
- isBasedOnStock()
is false
mandatory
- This method must be implemented. Stock getStock() throws OperationFailedException
IllegalStateException
- isBasedOnStock()
is false
OperationFailedException
- unable to complete requestmandatory
- This method must be implemented. TodoProducerRecord getTodoProducerRecord(Type todoProducerRecordType) throws OperationFailedException
TodoProducer
record Type.
This method is used
to retrieve an object implementing the requested record. The
todoProducerRecordType
may be the Type
returned
in getRecordTypes()
or any of its parents in a
Type
hierarchy where
hasRecordType(todoProducerRecordType)
is true
.todoProducerRecordType
- the type of todo producer record to
retrieveNullArgumentException
- todoProducerRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(todoProducerRecordType)
is false
mandatory
- This method must be implemented.