Interface InquiryForm
- All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidOperableForm, OsidRuleForm, OsidSubjugateableForm, Suppliable
- All Known Subinterfaces:
InquiryBatchForm
This is the form for creating and updating Inquiries. Like all
OsidForms, various data elements may be set here for use in the
create and update methods in the InquiryAdminSession. For each
data element that may be set, metadata may be examined to provide display
hints or data constraints.
Like all OsidForms, InquiryForm is stateful and must
not be accessed by multiple processing threads.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves the affirmation required flag.voidRemoves the auditors.voidRemoves the needs one response flag.voidRemoves the question.voidRemoves the required flag.Gets the metadata for the affirmation required flag.Gets the metadata for the auditors.getInquiryFormRecord(Type inquiryRecordType) Gets theInquiryFormRecordcorresponding to the given inquiry recordType.Gets the metadata for the needs one response flag.Gets the metadata for the question.Gets the metadata for the required flag.voidsetAffirmationRequired(boolean required) Sets the affirmation required flag.voidsetAuditors(IdList auditorIds) Sets the auditors.voidsetNeedsOneResponse(boolean one) Sets the needs one response flag.voidsetQuestion(String question) Sets the question.voidsetRequired(boolean required) Sets the required flag.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeMethods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidExtensibleForm
getRequiredRecordTypesMethods inherited from interface OsidForm
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocaleMethods inherited from interface OsidObjectForm
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypeMethods inherited from interface OsidOperableForm
clearDisabled, clearEnabled, getDisabledMetadata, getEnabledMetadata, setDisabled, setEnabledMethods inherited from interface OsidRuleForm
clearConditionRecordTypes, clearRule, getConditionRecordTypesMetadata, getRuleMetadata, setConditionRecordTypes, setRule
-
Method Details
-
getAuditorsMetadata
Metadata getAuditorsMetadata()Gets the metadata for the auditors.- Returns:
- metadata for the auditors
- Compliance:
mandatory- This method must be implemented.
-
setAuditors
Sets the auditors.- Parameters:
auditorIds- the new auditors- Throws:
InvalidArgumentException-auditorIdsis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-auditorIdsisnull- Compliance:
mandatory- This method must be implemented.
-
clearAuditors
void clearAuditors()Removes the auditors.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getQuestionMetadata
Metadata getQuestionMetadata()Gets the metadata for the question.- Returns:
- metadata for the question
- Compliance:
mandatory- This method must be implemented.
-
setQuestion
Sets the question.- Parameters:
question- the new question- Throws:
InvalidArgumentException-questionis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-questionisnull- Compliance:
mandatory- This method must be implemented.
-
clearQuestion
void clearQuestion()Removes the question.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getRequiredMetadata
Metadata getRequiredMetadata()Gets the metadata for the required flag.- Returns:
- metadata for the required flag
- Compliance:
mandatory- This method must be implemented.
-
setRequired
void setRequired(boolean required) Sets the required flag.- Parameters:
required-trueis the inquiry requires a response,falseif optional- Throws:
InvalidArgumentException-requiredis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearRequired
void clearRequired()Removes the required flag.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getAffirmationRequiredMetadata
Metadata getAffirmationRequiredMetadata()Gets the metadata for the affirmation required flag.- Returns:
- metadata for the required flag
- Compliance:
mandatory- This method must be implemented.
-
setAffirmationRequired
void setAffirmationRequired(boolean required) Sets the affirmation required flag.- Parameters:
required-trueif a positive response is required,falseif a negative response is also acceptable- Throws:
InvalidArgumentException-requiredis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearAffirmationRequired
void clearAffirmationRequired()Removes the affirmation required flag.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getNeedsOneResponseMetadata
Metadata getNeedsOneResponseMetadata()Gets the metadata for the needs one response flag.- Returns:
- metadata for the needs one response flag
- Compliance:
mandatory- This method must be implemented.
-
setNeedsOneResponse
void setNeedsOneResponse(boolean one) Sets the needs one response flag.- Parameters:
one-trueif only one effective response is needed,,falseif the inquiry should be performed each time- Throws:
InvalidArgumentException-oneis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearNeedsOneResponse
void clearNeedsOneResponse()Removes the needs one response flag.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getInquiryFormRecord
Gets theInquiryFormRecordcorresponding to the given inquiry recordType.- Parameters:
inquiryRecordType- an inquiry record type- Returns:
- the inquiry form record
- Throws:
NullArgumentException-inquiryRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(inquiryRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-