Interface TodoProducer
- All Superinterfaces:
Browsable, Extensible, Identifiable, Operable, OsidObject, OsidRule
A TodoProducer describes the mason for making Todos .
-
Method Summary
Modifier and TypeMethodDescriptionGets the cyclic event.Gets the cyclic eventId.getStock()Gets the stock.Gets the stockId.longGets the stock level.getTodoProducerRecord(Type todoProducerRecordType) Gets the todo producer record corresponding to the givenTodoProducerrecordType.booleanTests if a todo should be produced based on an item level in a stock.booleanTests if a todo should be produced based on a time cycle.booleanTests if a todo should be created or destroyed.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface Operable
isActive, isDisabled, isEnabled, isOperationalModifier and TypeMethodDescriptionbooleanisActive()Tests if this operable is active.booleanTests if this operable is administravely disabled.booleanTests if this operable is administravely enabled.booleanTests if thisOperableis operational.Methods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.Methods inherited from interface OsidRule
getConditionRecordTypes, getRule, getRuleId, hasRule
-
Method Details
-
isCreationRule
boolean isCreationRule()Tests if a todo should be created or destroyed.- Returns:
trueif a creation rule,falseif a destruction rule- Compliance:
mandatory- This method must be implemented.
-
isBasedOnTimeCycle
boolean isBasedOnTimeCycle()Tests if a todo should be produced based on a time cycle.- Returns:
trueif based on a timecycle,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getCyclicEventId
Id getCyclicEventId()Gets the cyclic eventId.- Returns:
- the cyclic event
Id - Throws:
IllegalStateException-isBasedOnTimeCycle()isfalse- Compliance:
mandatory- This method must be implemented.
-
getCyclicEvent
Gets the cyclic event.- Returns:
- the cyclic event
- Throws:
IllegalStateException-isBasedOnTimeCycle()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
isBasedOnStock
boolean isBasedOnStock()Tests if a todo should be produced based on an item level in a stock.- Returns:
trueif based on a stock,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
getStockLevel
long getStockLevel()Gets the stock level.- Returns:
- the stock level
- Throws:
IllegalStateException-isBasedOnStock()isfalse- Compliance:
mandatory- This method must be implemented.
-
getStockId
Id getStockId()Gets the stockId.- Returns:
- the stock
Id - Throws:
IllegalStateException-isBasedOnStock()isfalse- Compliance:
mandatory- This method must be implemented.
-
getStock
Gets the stock.- Returns:
- the stock
- Throws:
IllegalStateException-isBasedOnStock()isfalseOperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getTodoProducerRecord
TodoProducerRecord getTodoProducerRecord(Type todoProducerRecordType) throws OperationFailedException Gets the todo producer record corresponding to the givenTodoProducerrecordType. This method is used to retrieve an object implementing the requested record. ThetodoProducerRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(todoProducerRecordType)istrue.- Parameters:
todoProducerRecordType- the type of todo producer record to retrieve- Returns:
- the todo producer record
- Throws:
NullArgumentException-todoProducerRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(todoProducerRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-