public interface ScheduleForm extends OsidObjectForm
This is the form for creating and updating Schedules.
Like all OsidForm objects, various data elements may be set
here for use in the create and update methods in the
ScheduleAdminSession. 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 |
clearLimit()
Clears the limit.
|
void |
clearLocation()
Clears the location.
|
void |
clearLocationDescription()
Clears the location description.
|
void |
clearScheduleEnd()
Clears the schedule end.
|
void |
clearScheduleSlot()
Clears the schedule slot.
|
void |
clearScheduleStart()
Clears the schedule start.
|
void |
clearTimePeriod()
Clears the time period.
|
Metadata |
getLimitMetadata()
Gets the metadata for the weekdays of a weekly schedule.
|
Metadata |
getLocationMetadata()
Gets the metadata for a location.
|
Metadata |
getScheduleEndMetadata()
Gets the metadata for the schedule end date.
|
ScheduleFormRecord |
getScheduleSlotFormRecord(Type scheduleRecordType)
Gets the
ScheduleFormRecord corresponding to the given
schedule record Type. |
Metadata |
getScheduleSlotMetadata()
Gets the metadata for the schedule slot.
|
Metadata |
getScheduleStartMetadata()
Gets the metadata for the schedule start date.
|
Metadata |
getTimePeriodMetadata()
Gets the metadata for the time period.
|
void |
setLimit(long[] weekdays)
Sets the weekdays of a weekly schedule.
|
void |
setLocation(Id locationId)
Sets the location.
|
void |
setLocationDescription(java.lang.String location)
Sets the location description.
|
void |
setScheduleEnd(DateTime start)
Sets the schedule end date.
|
void |
setScheduleSlot(Id scheduleSlotId)
Sets the schedule slot.
|
void |
setScheduleStart(DateTime start)
Sets the schedule start date.
|
void |
setTimePeriod(Id timePeriodId)
Sets the time period.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypegetRequiredRecordTypesgetRecordTypes, hasRecordTypegetDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocalegetId, isCurrentMetadata getScheduleSlotMetadata()
mandatory - This method must be implemented. void setScheduleSlot(Id scheduleSlotId)
scheduleSlotId - the new schedule slot Id InvalidArgumentException - scheduleSlotId
is invalidNoAccessException - scheduleSlotId
cannot be modifiedNullArgumentException - scheduleSlotId
is null mandatory - This method must be implemented. void clearScheduleSlot()
NoAccessException - Metadata.isRequired()
or Metadata.isReadOnly() is true
mandatory - This method must be implemented. Metadata getTimePeriodMetadata()
mandatory - This method must be implemented. void setTimePeriod(Id timePeriodId)
timePeriodId - the new time period Id InvalidArgumentException - timePeriodId
is invalidNoAccessException - timePeriodId cannot
be modifiedNullArgumentException - timePeriodId is
null mandatory - This method must be implemented. void clearTimePeriod()
NoAccessException - Metadata.isRequired()
or Metadata.isReadOnly() is true
mandatory - This method must be implemented. Metadata getScheduleStartMetadata()
mandatory - This method must be implemented. void setScheduleStart(DateTime start)
start - the new start dateInvalidArgumentException - start is
invalidNoAccessException - start cannot be
modifiedNullArgumentException - start is
null mandatory - This method must be implemented. void clearScheduleStart()
NoAccessException - Metadata.isRequired()
or Metadata.isReadOnly() is true
mandatory - This method must be implemented. Metadata getScheduleEndMetadata()
mandatory - This method must be implemented. void setScheduleEnd(DateTime start)
start - the new end dateInvalidArgumentException - end is
invalidNoAccessException - end cannot be
modifiedNullArgumentException - end is
null mandatory - This method must be implemented. void clearScheduleEnd()
NoAccessException - Metadata.isRequired()
or Metadata.isReadOnly() is true
mandatory - This method must be implemented. Metadata getLimitMetadata()
mandatory - This method must be implemented. void setLimit(long[] weekdays)
weekdays - the new weekday setInvalidArgumentException - weekdays is
invalidNoAccessException - weekdays cannot be
modifiedNullArgumentException - weekdays is
null mandatory - This method must be implemented. void clearLimit()
NoAccessException - Metadata.isRequired()
or Metadata.isReadOnly() is true
mandatory - This method must be implemented. void setLocationDescription(java.lang.String location)
location - the new location descriptionInvalidArgumentException - location is
invalidNoAccessException - location cannot be
modifiedNullArgumentException - location is
null mandatory - This method must be implemented. void clearLocationDescription()
NoAccessException - Metadata.isRequired()
or Metadata.isReadOnly() is true
mandatory - This method must be implemented. Metadata getLocationMetadata()
mandatory - This method must be implemented. void setLocation(Id locationId)
locationId - the new locationInvalidArgumentException - locationId is
invalidNoAccessException - locationId cannot be
modifiedNullArgumentException - locationId is
null mandatory - This method must be implemented. void clearLocation()
NoAccessException - Metadata.isRequired()
or Metadata.isReadOnly() is true
mandatory - This method must be implemented. ScheduleFormRecord getScheduleSlotFormRecord(Type scheduleRecordType) throws OperationFailedException
ScheduleFormRecord corresponding to the given
schedule record Type. scheduleRecordType - the schedule record typeNullArgumentException - scheduleRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(scheduleRecordType) is false
mandatory - This method must be implemented.