Interface OsidRequestForm
- All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, Suppliable
- All Known Subinterfaces:
RegistrationRequestForm
This form is used to create and update rules.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves canceled.voidRemoves the canceled date.voidRemoves the error state.voidRemoves the posting date.voidRemoves processed.voidRemoves the processed date.voidRemoves the requester.voidRemoves the submitted date.voidRemoves the submitter.voidRemoves the submitting agent.Gets the metadata for the canceled date.Gets the metadata for the cancelation.Gets the metadata for the error state.Gets the metadata for the posting date.Gets the metadata for the processed date.Gets the metadata for the processed flag.Gets the metadata for the requester.Gets the metadata for the submitted date.Gets the metadata for the submitter.Gets the metadata for the submitting agent.voidsetCanceled(boolean canceled) Sets canceled.voidsetCanceledDate(DateTime date) Sets the canceled date.voidSets the error state.voidsetPostingDate(DateTime date) Sets the posting date.voidsetProcessed(boolean processed) Sets processed.voidsetProcessedDate(DateTime date) Sets the processed date.voidsetRequester(Id resourceId) Sets the requester.voidsetSubmittedDate(DateTime date) Sets the submitted date.voidsetSubmitter(Id resourceId) Sets the submitter.voidsetSubmittingAgent(Id agentId) Sets the submitting agent.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.
-
Method Details
-
getPostingDateMetadata
Metadata getPostingDateMetadata()Gets the metadata for the posting date.- Returns:
- metadata for the posting date
- Compliance:
mandatory- This method must be implemented.
-
setPostingDate
Sets the posting date.- Parameters:
date- the new posting date- Throws:
InvalidArgumentException-dateis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-dateisnull- Compliance:
mandatory- This method must be implemented.
-
clearPostingDate
void clearPostingDate()Removes the posting date.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getRequesterMetadata
Metadata getRequesterMetadata()Gets the metadata for the requester.- Returns:
- metadata for the requester.
- Compliance:
mandatory- This method must be implemented.
-
setRequester
Sets the requester.- Parameters:
resourceId- the new requester- Throws:
InvalidArgumentException-resourceIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-resourceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearRequester
void clearRequester()Removes the requester.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getSubmittedDateMetadata
Metadata getSubmittedDateMetadata()Gets the metadata for the submitted date.- Returns:
- metadata for the submitted date
- Compliance:
mandatory- This method must be implemented.
-
setSubmittedDate
Sets the submitted date.- Parameters:
date- the new submitted date- Throws:
InvalidArgumentException-dateis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-dateisnull- Compliance:
mandatory- This method must be implemented.
-
clearSubmittedDate
void clearSubmittedDate()Removes the submitted date.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getSubmitterMetadata
Metadata getSubmitterMetadata()Gets the metadata for the submitter.- Returns:
- metadata for the submitter
- Compliance:
mandatory- This method must be implemented.
-
setSubmitter
Sets the submitter.- Parameters:
resourceId- the new submitter- Throws:
InvalidArgumentException-resourceIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-resourceIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearSubmitter
void clearSubmitter()Removes the submitter.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getSubmittingAgentMetadata
Metadata getSubmittingAgentMetadata()Gets the metadata for the submitting agent.- Returns:
- metadata for the submitting agent.
- Compliance:
mandatory- This method must be implemented.
-
setSubmittingAgent
Sets the submitting agent.- Parameters:
agentId- the new submitting agent- Throws:
InvalidArgumentException-agentIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-agentIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearSubmittingAgent
void clearSubmittingAgent()Removes the submitting agent.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getCanceledMetadata
Metadata getCanceledMetadata()Gets the metadata for the cancelation.- Returns:
- metadata for the cancelation
- Compliance:
mandatory- This method must be implemented.
-
setCanceled
void setCanceled(boolean canceled) Sets canceled.- Parameters:
canceled- the new canceled state- Throws:
InvalidArgumentException-canceledis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearCanceled
void clearCanceled()Removes canceled.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getCanceledDateMetadata
Metadata getCanceledDateMetadata()Gets the metadata for the canceled date.- Returns:
- metadata for the canceled date
- Compliance:
mandatory- This method must be implemented.
-
setCanceledDate
Sets the canceled date.- Parameters:
date- the new canceled date- Throws:
InvalidArgumentException-dateis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-dateisnull- Compliance:
mandatory- This method must be implemented.
-
clearCanceledDate
void clearCanceledDate()Removes the canceled date.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getProcessedMetadata
Metadata getProcessedMetadata()Gets the metadata for the processed flag.- Returns:
- metadata for processed
- Compliance:
mandatory- This method must be implemented.
-
setProcessed
void setProcessed(boolean processed) Sets processed.- Parameters:
processed- the new processed state- Throws:
InvalidArgumentException-processedis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearProcessed
void clearProcessed()Removes processed.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getProcessedDateMetadata
Metadata getProcessedDateMetadata()Gets the metadata for the processed date.- Returns:
- metadata for the processed date
- Compliance:
mandatory- This method must be implemented.
-
setProcessedDate
Sets the processed date.- Parameters:
date- the new processed date- Throws:
InvalidArgumentException-dateis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-dateisnull- Compliance:
mandatory- This method must be implemented.
-
clearProcessedDate
void clearProcessedDate()Removes the processed date.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getErrorMetadata
Metadata getErrorMetadata()Gets the metadata for the error state.- Returns:
- metadata for the error state
- Compliance:
mandatory- This method must be implemented.
-
setError
Sets the error state.- Parameters:
stateId- the new error state- Throws:
InvalidArgumentException-stateIdis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-stateIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearErrorState
void clearErrorState()Removes the error state.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-