Interface CheckForm
- All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidOperableForm, OsidRuleForm, Suppliable
This is the form for creating and updating Checks . Like all
OsidForms , various data elements may be set here for use in the
create and update methods in the CheckAdminSession . For each data
element that may be set, metadata may be examined to provide display hints
or data constraints.
Checks come in a variety of flavors. Each type of Check
- Fail Check
- Time Check By Date
- Time Check by Event
- Time Check By Cyclic Event
- Hold Check
- Authorization Check
- Inquiry Check
- Process Check
- Logging Check
is determined based on what data is set. If multiple fields are set, the provider will pick one at random.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves the function.voidRemoves the fail check setting.voidRemoves the block.voidRemoves the audit.voidRemoves the text.voidRemoves the agenda.voidRemoves the cyclic event.voidRemoves the end date.voidRemoves the event.voidRemoves the start date.Gets the metadata for making this an authorization check and for the function.getCheckFormRecord(Type checkRecordType) Gets theCheckFormRecordcorresponding to the given check recordType.Gets the metadata for making this a fail check.Gets the metadata for making this a hold check and for the block.Gets the metadata for making this an inquiry check and for the audit.Gets the metadata for making this a logging check and for the text.Gets the metadata for making this a process check and for the agenda.Gets the metadata for making this a time check and for the cyclic event.Gets the metadata for making this a time check and for the end date.Gets the metadata for making this a time check and for the event.Gets the metadata for making this a time check and for the start date.voidsetAuthorizationCheckFunction(Id functionId) Sets the function and make this an authorization check.voidMakes this check a fail check.voidsetHoldCheckBlock(Id blockId) Sets the block and make this a hold check.voidsetInqiiryCheckAudit(Id auditId) Sets the audit and make this an inquiry check.voidsetLoggingCheckText(Id textId) Sets the text and make this a logging check.voidsetProcessCheckAgenda(Id agendaId) Sets the agenda and make this a process check.voidsetTimeCheckCyclicEvent(Id cyclicEventId) Sets the cyclic event and make this a time check.voidsetTimeCheckEndDate(DateTime date) Sets the end date and make this a time check.voidsetTimeCheckEvent(Id eventId) Sets the event and make this a time check.voidSets the start date and make this a time check.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 OsidExtensibleForm
getRequiredRecordTypesModifier and TypeMethodDescriptionGets the minimum required record types for successful submission of thisOsidForm.Methods inherited from interface OsidForm
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocaleModifier and TypeMethodDescriptionGets a default locale for the form.Metadata[]Gets a list of metadata for the elements in this form which are not valid.Gets the metadata for the comment corresponding to this form submission.Gets the locales available for this form.Gets text messages corresponding to additional instructions to pass form validation.booleanTests if this form is for an update operation.booleanisValid()Tests if this form is in a valid state for submission.voidsetJournalComment(String comment) Sets a comment.voidSpecifies a language and script type for the form.Methods inherited from interface OsidObjectForm
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypeModifier and TypeMethodDescriptionvoidClears the description.voidClears the display name.voidClears the genus type.Gets the metadata for a description.Gets the metadata for a display name.Gets the metadata for a genus type.voidsetDescription(String description) Sets a description.voidsetDisplayName(String displayName) Sets a display name.voidsetGenusType(Type genusType) Sets a genus.Methods inherited from interface OsidOperableForm
clearDisabled, clearEnabled, getDisabledMetadata, getEnabledMetadata, setDisabled, setEnabledModifier and TypeMethodDescriptionvoidRemoves the administratively disabled flag.voidRemoves the administratively enabled flag.Gets the metadata for the disabled flag.Gets the metadata for the enabled flag.voidsetDisabled(boolean disabled) Sets the administratively disabled flag.voidsetEnabled(boolean enabled) Sets the administratively enabled flag.Methods inherited from interface OsidRuleForm
clearConditionRecordTypes, clearRule, getConditionRecordTypesMetadata, getRuleMetadata, setConditionRecordTypes, setRuleModifier and TypeMethodDescriptionvoidClears the condition record types.voidRemoves the rule.Gets the metadata for the condition record types.Gets the metadata for an associated rule.voidsetConditionRecordTypes(Type[] conditionRecordTypes) Sets the condition record types.voidSets a rule.
-
Method Details
-
getFailCheckMetadata
Metadata getFailCheckMetadata()Gets the metadata for making this a fail check.- Returns:
- metadata for the competency
- Compliance:
mandatory- This method must be implemented.
-
setFailCheck
void setFailCheck()Makes this check a fail check.- Throws:
NoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearFailCheck
void clearFailCheck()Removes the fail check setting.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getTimeCheckStartDateMetadata
Metadata getTimeCheckStartDateMetadata()Gets the metadata for making this a time check and for the start date.- Returns:
- metadata for time check start date
- Compliance:
mandatory- This method must be implemented.
-
setTimeCheckStartDate
Sets the start date and make this a time check.- Parameters:
date- the new start date- Throws:
InvalidArgumentException-dateis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-dateisnull- Compliance:
mandatory- This method must be implemented.
-
clearTimeCheckStartDate
void clearTimeCheckStartDate()Removes the start date.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getTimeCheckEndDateMetadata
Metadata getTimeCheckEndDateMetadata()Gets the metadata for making this a time check and for the end date.- Returns:
- metadata for time check end date
- Compliance:
mandatory- This method must be implemented.
-
setTimeCheckEndDate
Sets the end date and make this a time check.- Parameters:
date- the new end date- Throws:
InvalidArgumentException-dateis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-dateisnull- Compliance:
mandatory- This method must be implemented.
-
clearTimeCheckEndDate
void clearTimeCheckEndDate()Removes the end date.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getTimeCheckEventMetadata
Metadata getTimeCheckEventMetadata()Gets the metadata for making this a time check and for the event.- Returns:
- metadata for time check event
- Compliance:
mandatory- This method must be implemented.
-
setTimeCheckEvent
Sets the event and make this a time check.- Parameters:
eventId- the new event- Throws:
InvalidArgumentException-eventIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-eventIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearTimeCheckEvent
void clearTimeCheckEvent()Removes the event.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getTimeCheckCyclicEventMetadata
Metadata getTimeCheckCyclicEventMetadata()Gets the metadata for making this a time check and for the cyclic event.- Returns:
- metadata for time check cyclic event
- Compliance:
mandatory- This method must be implemented.
-
setTimeCheckCyclicEvent
Sets the cyclic event and make this a time check.- Parameters:
cyclicEventId- the new cyclic event- Throws:
InvalidArgumentException-cyclicEventIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-cyclicEventIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearTimeCheckCyclicEvent
void clearTimeCheckCyclicEvent()Removes the cyclic event.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getHoldCheckBlockMetadata
Metadata getHoldCheckBlockMetadata()Gets the metadata for making this a hold check and for the block.- Returns:
- metadata for hold check block
- Compliance:
mandatory- This method must be implemented.
-
setHoldCheckBlock
Sets the block and make this a hold check.- Parameters:
blockId- the new block- Throws:
InvalidArgumentException-blockIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-blockIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearHoldCheckBlock
void clearHoldCheckBlock()Removes the block.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getAuthorizationCheckFunctionMetadata
Metadata getAuthorizationCheckFunctionMetadata()Gets the metadata for making this an authorization check and for the function.- Returns:
- metadata for authorization check function
- Compliance:
mandatory- This method must be implemented.
-
setAuthorizationCheckFunction
Sets the function and make this an authorization check.- Parameters:
functionId- the new function- Throws:
InvalidArgumentException-fiunctionIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-functionIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearAuthorizationCheckFunction
void clearAuthorizationCheckFunction()Removes the function.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getInquiryCheckAuditMetadata
Metadata getInquiryCheckAuditMetadata()Gets the metadata for making this an inquiry check and for the audit.- Returns:
- metadata for inquiry check audit
- Compliance:
mandatory- This method must be implemented.
-
setInqiiryCheckAudit
Sets the audit and make this an inquiry check.- Parameters:
auditId- the new audit- Throws:
InvalidArgumentException-auditIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-auditIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearInquiryCheckAudit
void clearInquiryCheckAudit()Removes the audit.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getProcessCheckAgendaMetadata
Metadata getProcessCheckAgendaMetadata()Gets the metadata for making this a process check and for the agenda.- Returns:
- metadata for process check agenda
- Compliance:
mandatory- This method must be implemented.
-
setProcessCheckAgenda
Sets the agenda and make this a process check.- Parameters:
agendaId- the new agenda- Throws:
InvalidArgumentException-agendaIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-agendaIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearProcessCheckAgenda
void clearProcessCheckAgenda()Removes the agenda.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getLoggingCheckTextMetadata
Metadata getLoggingCheckTextMetadata()Gets the metadata for making this a logging check and for the text.- Returns:
- metadata for logging check text
- Compliance:
mandatory- This method must be implemented.
-
setLoggingCheckText
Sets the text and make this a logging check.- Parameters:
textId- the new text- Throws:
InvalidArgumentException-textIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-textIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearLoggingCheckText
void clearLoggingCheckText()Removes the text.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getCheckFormRecord
CheckFormRecord getCheckFormRecord(Type checkRecordType) throws OperationFailedException, PermissionDeniedException Gets theCheckFormRecordcorresponding to the given check recordType.- Parameters:
checkRecordType- a check record type- Returns:
- the check form record
- Throws:
NullArgumentException-checkRecordTypeisnullOperationFailedException- unable to complete requestPermissionDeniedException- authorization failure occurredUnsupportedException-hasRecordType(checkRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-