Interface FiscalPeriod
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject
A FiscalPeriod represents a period of time on a fiscal
calendar.
-
Method Summary
Modifier and TypeMethodDescriptionGets the budget deadline.Gets the date of the closing for this period.Gets a display label for this fiscal period which may be less formal than the display name.Get sthe end date of this period.getFiscalPeriodRecord(Type fiscalPeriodRecordType) Gets the fiscal period record corresponding to the givenFiscalPeriodrecordType.longGes the fiscal year.Gets the last date transactions can be posted for this period.Get sthe start date of this period.booleanTests if this period has a closing date.booleanTests if this fiscal period has milestones.booleanTests if this period has a cutoff date for posting transactions.booleanTests if budgets need to be submiited for this fiscal period.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.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 OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.
-
Method Details
-
getDisplayLabel
DisplayText getDisplayLabel()Gets a display label for this fiscal period which may be less formal than the display name.- Returns:
- the display label
- Compliance:
mandatory- This method must be implemented.
-
getFiscalYear
long getFiscalYear()Ges the fiscal year.- Returns:
- the fiscal year
- Compliance:
mandatory- This method must be implemented.
-
getStartDate
DateTime getStartDate()Get sthe start date of this period.- Returns:
- the start date
- Compliance:
mandatory- This method must be implemented.
-
getEndDate
DateTime getEndDate()Get sthe end date of this period.- Returns:
- the end date
- Compliance:
mandatory- This method must be implemented.
-
hasMilestones
boolean hasMilestones()Tests if this fiscal period has milestones.- Returns:
trueif milestones are available,falseotherwise- Compliance:
mandatory- This method must be implemented.
-
requiresBudgetSubmission
boolean requiresBudgetSubmission()Tests if budgets need to be submiited for this fiscal period.- Returns:
trueif budgets require submission,falseotherwise- Throws:
IllegalStateException-hasMilestones()isfalse- Compliance:
mandatory- This method must be implemented.
-
getBudgetDeadline
DateTime getBudgetDeadline()Gets the budget deadline.- Returns:
- the closing date
- Throws:
IllegalStateException-hasMilestones()orrequiresBudgetSubmission()isfalse- Compliance:
mandatory- This method must be implemented.
-
hasPostingDeadline
boolean hasPostingDeadline()Tests if this period has a cutoff date for posting transactions.- Returns:
trueif a posting deadline date is available,falseotherwise- Throws:
IllegalStateException-hasMilestones()isfalse- Compliance:
mandatory- This method must be implemented.
-
getPostingDeadline
DateTime getPostingDeadline()Gets the last date transactions can be posted for this period.- Returns:
- the cutoff date
- Throws:
IllegalStateException-hasMilestones()orhasPostingDeadline()isfalse- Compliance:
mandatory- This method must be implemented.
-
hasClosing
boolean hasClosing()Tests if this period has a closing date.- Returns:
trueif a closing date is available,falseotherwise- Throws:
IllegalStateException-hasMilestones()isfalse- Compliance:
mandatory- This method must be implemented.
-
getClosing
DateTime getClosing()Gets the date of the closing for this period.- Returns:
- the closing date
- Throws:
IllegalStateException-hasMilestones()orhasClosing()isfalse- Compliance:
mandatory- This method must be implemented.
-
getFiscalPeriodRecord
FiscalPeriodRecord getFiscalPeriodRecord(Type fiscalPeriodRecordType) throws OperationFailedException Gets the fiscal period record corresponding to the givenFiscalPeriodrecordType. This method is used to retrieve an object implementing the requested record. ThefiscalPeriodRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(fiscalPeriodRecordType)istrue.- Parameters:
fiscalPeriodRecordType- the type of fiscal period record to retrieve- Returns:
- the fiscal period record
- Throws:
NullArgumentException-fiscalPeriodRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(fiscalPeriodRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-