public interface InstructionForm extends OsidRelationshipForm, OsidEnablerForm
This is the form for creating and updating Instructions.
Like all OsidForm
objects, various data elements may be set
here for use in the create and update methods in the
InstructionAdminSession.
For each data element that may be set,
metadata may be examined to provide display hints or data constraints.
Modifier and Type | Method and Description |
---|---|
void |
clearContinueOnFail()
Removes the continue-on-fail flag.
|
void |
clearMessage()
Removes the message.
|
void |
clearWarning()
Removes the warning flag.
|
Metadata |
getContinueOnFailMetadata()
Gets the metadata for the continue-on-fail flag.
|
InstructionFormRecord |
getInstructionFormRecord(Type instructionRecordType)
Gets the
InstructionFormRecord corresponding to the
given instruction record Type. |
Metadata |
getMessageMetadata()
Gets the metadata for the message.
|
Metadata |
getWarningMetadata()
Gets the metadata for the warning flag.
|
void |
setContinueOnFail(boolean cof)
Sets the continue-on-fail flag.
|
void |
setMessage(java.lang.String message)
Sets the message.
|
void |
setWarning(boolean warning)
Sets the warning flag.
|
clearCyclicEvent, clearDemographic, clearEvent, clearSchedule, getCyclicEventMetadata, getDemographicMetadata, getEventMetadata, getScheduleMetadata, setCyclicEvent, setDemographic, setEvent, setSchedule
clearRule, getRuleMetadata, setRule
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
clearDisabled, clearEnabled, getDisabledMetadata, getEnabledMetadata, setDisabled, setEnabled
clearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDate
Metadata getMessageMetadata()
mandatory
- This method must be implemented. void setMessage(java.lang.String message)
message
- the new messageInvalidArgumentException
- message
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- message
is
null
mandatory
- This method must be implemented. void clearMessage()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getWarningMetadata()
mandatory
- This method must be implemented. void setWarning(boolean warning)
warning
- the new warning flagInvalidArgumentException
- warning
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearWarning()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getContinueOnFailMetadata()
mandatory
- This method must be implemented. void setContinueOnFail(boolean cof)
cof
- the new continue-on-fail flagInvalidArgumentException
- cof
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearContinueOnFail()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. InstructionFormRecord getInstructionFormRecord(Type instructionRecordType) throws OperationFailedException, PermissionDeniedException
InstructionFormRecord
corresponding to the
given instruction record Type.
instructionRecordType
- an instruction record typeNullArgumentException
- instructionRecordType
is null
OperationFailedException
- unable to complete requestPermissionDeniedException
- authorization failure
occurredUnsupportedException
-
hasRecordType(instructionRecordType)
is false
mandatory
- This method must be implemented.