public interface PeriodForm extends OsidObjectForm
This is the form for creating and updating Periods.
Like
all OsidForm
objects, various data elements may be set here
for use in the create and update methods in the PeriodAdminSession.
For each data element that may be set, metadata may be examined to
provide display hints or data constraints.
Modifier and Type | Method and Description |
---|---|
void |
clearBillingDate()
Clears the billing date.
|
void |
clearCloseDate()
Clears the close date.
|
void |
clearDisplayLabel()
Removes the display label.
|
void |
clearDueDate()
Clears the due date.
|
void |
clearOpenDate()
Clears the open date.
|
Metadata |
getBillingDateMetadata()
Gets the metadata for the billing date.
|
Metadata |
getCloseDateMetadata()
Gets the metadata for the close date.
|
Metadata |
getDisplayLabelMetadata()
Gets the metadata for a display label title.
|
Metadata |
getDueDateMetadata()
Gets the metadata for the due date.
|
Metadata |
getOpenDateMetadata()
Gets the metadata for an open date.
|
PeriodFormRecord |
getPeriodFormRecord(Type periodRecordType)
Gets the
PeriodFormRecord corresponding to the given
period record Type. |
void |
setBillingDate(DateTime date)
Sets the billing date.
|
void |
setCloseDate(DateTime date)
Sets the close date.
|
void |
setDisplayLabel(java.lang.String displayLabel)
Sets the display label.
|
void |
setDueDate(DateTime date)
Sets the due date.
|
void |
setOpenDate(DateTime date)
Sets the open date.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
Metadata getDisplayLabelMetadata()
mandatory
- This method must be implemented. void setDisplayLabel(java.lang.String displayLabel)
displayLabel
- the new display labelInvalidArgumentException
- displayLabel
is invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- displayLabel
is
null
mandatory
- This method must be implemented. void clearDisplayLabel()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getOpenDateMetadata()
mandatory
- This method must be implemented. void setOpenDate(DateTime date)
date
- the new open dateInvalidArgumentException
- date
is
invalidNoAccessException
- date
cannot be
modifiedNullArgumentException
- date
is
null
mandatory
- This method must be implemented. void clearOpenDate()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getCloseDateMetadata()
mandatory
- This method must be implemented. void setCloseDate(DateTime date)
date
- the new close dateInvalidArgumentException
- date
is
invalidNoAccessException
- date
cannot be
modifiedNullArgumentException
- date
is
null
mandatory
- This method must be implemented. void clearCloseDate()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getBillingDateMetadata()
mandatory
- This method must be implemented. void setBillingDate(DateTime date)
date
- the new billing dateInvalidArgumentException
- date
is
invalidNoAccessException
- date
cannot be
modifiedNullArgumentException
- date
is
null
mandatory
- This method must be implemented. void clearBillingDate()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getDueDateMetadata()
mandatory
- This method must be implemented. void setDueDate(DateTime date)
date
- the new due dateInvalidArgumentException
- date
is
invalidNoAccessException
- date
cannot be
modifiedNullArgumentException
- date
is
null
mandatory
- This method must be implemented. void clearDueDate()
NoAccessException
- Metadata.isRequired()
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. PeriodFormRecord getPeriodFormRecord(Type periodRecordType) throws OperationFailedException
PeriodFormRecord
corresponding to the given
period record Type.
periodRecordType
- a period record typeNullArgumentException
- periodRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(periodRecordType)
is false
mandatory
- This method must be implemented.