Interface FiscalPeriodForm
- All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, Suppliable
- All Known Subinterfaces:
FiscalPeriodBatchForm
This is the form for creating and updating FiscalPeriods . Like
all OsidForms , various data elements may be set here for use in
the create and update methods in the FiscalPeriodAdminSession .
For each data element that may be set, metadata may be examined to provide
display hints or data constraints.
-
Method Summary
Modifier and TypeMethodDescriptionvoidRemoves the budget deadline.voidRemoves the closting date.voidRemoves the display label.voidRemoves the end date.voidRemoves the fiscal year.voidRemoves the posting deadline.voidRemoves the start date.Gets the metadata for the budget deadline.Gets the metadata for the closing date.Gets the metadata for a display label.Gets the metadata for the end date.getFiscalPeriodFormRecord(Type fiscalPeriodRecordType) Gets theFiscalPeriodFormRecordcorresponding to the given fiscal period recordType.Gets the metadata for a fiscal year.Gets the metadata for the posting deadline.Gets the metadata for the start date.voidsetBudgetDeadline(DateTime date) Sets the budget deadline.voidsetClosing(DateTime date) Sets the closing date.voidsetDisplayLabel(String label) Sets the display label.voidsetEndDate(DateTime date) Sets the end date.voidsetFiscalYear(long year) Sets the fiscal year.voidsetPostingDeadline(DateTime date) Sets the posting deadline.voidsetStartDate(DateTime date) Sets the start date.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
-
getDisplayLabelMetadata
Metadata getDisplayLabelMetadata()Gets the metadata for a display label.- Returns:
- metadata for the display label
- Compliance:
mandatory- This method must be implemented.
-
setDisplayLabel
Sets the display label.- Parameters:
label- the new display label- Throws:
InvalidArgumentException-labelis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-labelisnull- Compliance:
mandatory- This method must be implemented.
-
clearDisplayLabel
void clearDisplayLabel()Removes the display label.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getFiscalYearMetadata
Metadata getFiscalYearMetadata()Gets the metadata for a fiscal year.- Returns:
- metadata for the fiscal year
- Compliance:
mandatory- This method must be implemented.
-
setFiscalYear
void setFiscalYear(long year) Sets the fiscal year.- Parameters:
year- the new fiscal year- Throws:
InvalidArgumentException-yearis invalidNoAccessException-Metadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
clearFiscalYear
void clearFiscalYear()Removes the fiscal year.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getStartDateMetadata
Metadata getStartDateMetadata()Gets the metadata for the start date.- Returns:
- metadata for the start date
- Compliance:
mandatory- This method must be implemented.
-
setStartDate
Sets the start date.- Parameters:
date- the new start date- Throws:
InvalidArgumentException-dateis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-dateisnull- Compliance:
mandatory- This method must be implemented.
-
clearStartDate
void clearStartDate()Removes the start date.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getEndDateMetadata
Metadata getEndDateMetadata()Gets the metadata for the end date.- Returns:
- metadata for the end date
- Compliance:
mandatory- This method must be implemented.
-
setEndDate
Sets the end date.- Parameters:
date- the new end date- Throws:
InvalidArgumentException-dateis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-dateisnull- Compliance:
mandatory- This method must be implemented.
-
clearEndDate
void clearEndDate()Removes the end date.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getBudgetDeadlineMetadata
Metadata getBudgetDeadlineMetadata()Gets the metadata for the budget deadline.- Returns:
- metadata for the budget deadline
- Compliance:
mandatory- This method must be implemented.
-
setBudgetDeadline
Sets the budget deadline.- Parameters:
date- the new budget deadline- Throws:
InvalidArgumentException-dateis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-dateisnull- Compliance:
mandatory- This method must be implemented.
-
clearBudgetDeadline
void clearBudgetDeadline()Removes the budget deadline.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getPostingDeadlineMetadata
Metadata getPostingDeadlineMetadata()Gets the metadata for the posting deadline.- Returns:
- metadata for the posting deadline
- Compliance:
mandatory- This method must be implemented.
-
setPostingDeadline
Sets the posting deadline.- Parameters:
date- the new posting deadline- Throws:
InvalidArgumentException-dateis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-dateisnull- Compliance:
mandatory- This method must be implemented.
-
clearPostingDeadline
void clearPostingDeadline()Removes the posting deadline.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getClosingMetadata
Metadata getClosingMetadata()Gets the metadata for the closing date.- Returns:
- metadata for the closing date
- Compliance:
mandatory- This method must be implemented.
-
setClosing
Sets the closing date.- Parameters:
date- the new closting date- Throws:
InvalidArgumentException-dateis invalidNoAccessException-Metadata.isReadOnly()istrueNullArgumentException-dateisnull- Compliance:
mandatory- This method must be implemented.
-
clearClosing
void clearClosing()Removes the closting date.- Throws:
NoAccessException-Metadata.isRequired()istrueorMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getFiscalPeriodFormRecord
FiscalPeriodFormRecord getFiscalPeriodFormRecord(Type fiscalPeriodRecordType) throws OperationFailedException Gets theFiscalPeriodFormRecordcorresponding to the given fiscal period recordType.- Parameters:
fiscalPeriodRecordType- a fiscal period record type- Returns:
- the fiscal period form record
- Throws:
NullArgumentException-fiscalPeriodRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(fiscalPeriodRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-