Interface OffsetEventForm
- All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidOperableForm, OsidRuleForm, Suppliable
- All Known Subinterfaces:
OffsetEventBatchForm
This is the form for creating and updating OffsetEvents . Like
all OsidForm objects, various data elements may be set here for
use in the create and update methods in the
OffsetEventAdminSession . For each data element that may be set, metadata
may be examined to provide display hints or data constraints.
-
Method Summary
Modifier and TypeMethodDescriptionvoidClears the ending reference event.voidClears the fixed duration.voidClears the fixed end offset.voidClears the fixed start offset.voidClears the fixed start time.voidClears the location.voidClears the location description.voidClears the relative end weekday.voidClears the relative start weekday.voidClears the relative weekday offset.voidClears the relative weekday offset.voidClears the sponsors.voidClears the start reference event.Gets the metadata for the ending reference event.Gets the metadata for the fixed duration.Gets the metadata for the fixed end offset.Gets the metadata for the fixed start offset.Gets the metadata for the fixed start time.Gets the metadata for a location description.Gets the metadata for a location.getOffsetEventFormRecord(Type offsetEventRecordType) Gets theOffsetEventFormRecordcorresponding to the given schedule recordType.Gets the metadata for the relative weekday.Gets the metadata for the relative weekday.Gets the metadata for the relative weekday offset.Gets the metadata for the relative weekday offset.Gets the metadata for a sponsor.Gets the metadata for the starting reference event.voidsetEndReferenceEvent(Id eventId) Sets the fixed end time.voidsetFixedDuration(Duration duration) Sets the fixed duration.voidsetFixedEndOffset(Duration offset) Sets the fixed end offset.voidsetFixedStartOffset(Duration offset) Sets the fixed start offset.voidsetFixedStartTime(DateTime date) Sets the fixed start time.voidsetLocation(Id locationId) Sets the location.voidsetLocationDescription(String location) Sets the location description.voidsetRelativeEndWeekday(long weekday) Sets the relative weekday.voidsetRelativeStartWeekday(long weekday) Sets the relative weekday.voidsetRelativeWeekdayEndOffset(long offset) Sets the relative weekday offset as the nth weekday from the relative event.voidsetRelativeWeekdayStartOffset(long offset) Sets the relative weekday offset as the nth weekday from the relative event.voidsetSponsors(Id[] sponsorIds) Sets the sponsors.voidsetStartReferenceEvent(Id eventId) Sets the fixed start time.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.Methods inherited from interface OsidOperableForm
clearDisabled, clearEnabled, getDisabledMetadata, getEnabledMetadata, setDisabled, setEnabledModifier and TypeMethodDescriptionvoidRemoves the administratively disabled flag.voidRemoves the administratively enabled flag.Gets the metadata for the disabled flag.Gets the metadata for the enabled flag.voidsetDisabled(boolean disabled) Sets the administratively disabled flag.voidsetEnabled(boolean enabled) Sets the administratively enabled flag.Methods inherited from interface OsidRuleForm
clearConditionRecordTypes, clearRule, getConditionRecordTypesMetadata, getRuleMetadata, setConditionRecordTypes, setRuleModifier and TypeMethodDescriptionvoidClears the condition record types.voidRemoves the rule.Gets the metadata for the condition record types.Gets the metadata for an associated rule.voidsetConditionRecordTypes(Type[] conditionRecordTypes) Sets the condition record types.voidSets a rule.
-
Method Details
-
getFixedStartTimeMetadata
Metadata getFixedStartTimeMetadata()Gets the metadata for the fixed start time.- Returns:
- metadata for the fixed start time
- Compliance:
mandatory- This method must be implemented.
-
setFixedStartTime
Sets the fixed start time.- Parameters:
date- the fixed start time- Throws:
InvalidArgumentException-dateis invalidNoAccessException-datecannot be modifiedNullArgumentException-dateisnull- Compliance:
mandatory- This method must be implemented.
-
clearFixedStartTime
void clearFixedStartTime()Clears the fixed start time.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getStartReferenceEventMetadata
Metadata getStartReferenceEventMetadata()Gets the metadata for the starting reference event.- Returns:
- metadata for the starting reference event
- Compliance:
mandatory- This method must be implemented.
-
setStartReferenceEvent
Sets the fixed start time.- Parameters:
eventId- the start reference eventId- Throws:
InvalidArgumentException-eventIdis invalidNoAccessException-eventIdcannot be modifiedNullArgumentException-eventIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearStartReferenceEvent
void clearStartReferenceEvent()Clears the start reference event.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getFixedStartOffsetMetadata
Metadata getFixedStartOffsetMetadata()Gets the metadata for the fixed start offset.- Returns:
- metadata for the fixed start offset
- Compliance:
mandatory- This method must be implemented.
-
setFixedStartOffset
Sets the fixed start offset.- Parameters:
offset- the fixed offset- Throws:
InvalidArgumentException-offsetis invalidNoAccessException-offsetcannot be modifiedNullArgumentException-offsetisnull- Compliance:
mandatory- This method must be implemented.
-
clearFixedStartOffset
void clearFixedStartOffset()Clears the fixed start offset.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getRelativeWeekdayStartOffsetMetadata
Metadata getRelativeWeekdayStartOffsetMetadata()Gets the metadata for the relative weekday offset.- Returns:
- metadata for the relative weekday offset
- Compliance:
mandatory- This method must be implemented.
-
setRelativeWeekdayStartOffset
void setRelativeWeekdayStartOffset(long offset) Sets the relative weekday offset as the nth weekday from the relative event.- Parameters:
offset- the week offset- Throws:
InvalidArgumentException-offsetis invalidNoAccessException-offsetcannot be modified- Compliance:
mandatory- This method must be implemented.
-
clearRelativeWeekdayStartOffset
void clearRelativeWeekdayStartOffset()Clears the relative weekday offset.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getRelativeStartWeekdayMetadata
Metadata getRelativeStartWeekdayMetadata()Gets the metadata for the relative weekday.- Returns:
- metadata for the relative weekday
- Compliance:
mandatory- This method must be implemented.
-
setRelativeStartWeekday
void setRelativeStartWeekday(long weekday) Sets the relative weekday.- Parameters:
weekday- the weekday- Throws:
InvalidArgumentException-weekdayis invalidNoAccessException-weekdaycannot be modified- Compliance:
mandatory- This method must be implemented.
-
clearRelativeStartWeekday
void clearRelativeStartWeekday()Clears the relative start weekday.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getFixedDurationMetadata
Metadata getFixedDurationMetadata()Gets the metadata for the fixed duration.- Returns:
- metadata for the fixed duration
- Compliance:
mandatory- This method must be implemented.
-
setFixedDuration
Sets the fixed duration.- Parameters:
duration- the fixed duration- Throws:
InvalidArgumentException-durationis invalidNoAccessException-durationcannot be modifiedNullArgumentException-durationisnull- Compliance:
mandatory- This method must be implemented.
-
clearFixedDuration
void clearFixedDuration()Clears the fixed duration.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getEndReferenceEventMetadata
Metadata getEndReferenceEventMetadata()Gets the metadata for the ending reference event.- Returns:
- metadata for the ending reference event
- Compliance:
mandatory- This method must be implemented.
-
setEndReferenceEvent
Sets the fixed end time.- Parameters:
eventId- the end reference eventId- Throws:
InvalidArgumentException-eventIdis invalidNoAccessException-eventIdcannot be modifiedNullArgumentException-eventIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearEndReferenceEvent
void clearEndReferenceEvent()Clears the ending reference event.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getFixedEndOffsetMetadata
Metadata getFixedEndOffsetMetadata()Gets the metadata for the fixed end offset.- Returns:
- metadata for the fixed end offset
- Compliance:
mandatory- This method must be implemented.
-
setFixedEndOffset
Sets the fixed end offset.- Parameters:
offset- the fixed offset- Throws:
InvalidArgumentException-offsetis invalidNoAccessException-offsetcannot be modifiedNullArgumentException-offsetisnull- Compliance:
mandatory- This method must be implemented.
-
clearFixedEndOffset
void clearFixedEndOffset()Clears the fixed end offset.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getRelativeWeekdayEndOffsetMetadata
Metadata getRelativeWeekdayEndOffsetMetadata()Gets the metadata for the relative weekday offset.- Returns:
- metadata for the relative weekday offset
- Compliance:
mandatory- This method must be implemented.
-
setRelativeWeekdayEndOffset
void setRelativeWeekdayEndOffset(long offset) Sets the relative weekday offset as the nth weekday from the relative event.- Parameters:
offset- the week offset- Throws:
InvalidArgumentException-offsetis invalidNoAccessException-offsetcannot be modified- Compliance:
mandatory- This method must be implemented.
-
clearRelativeWeekdayEndOffset
void clearRelativeWeekdayEndOffset()Clears the relative weekday offset.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getRelativeEndWeekdayMetadata
Metadata getRelativeEndWeekdayMetadata()Gets the metadata for the relative weekday.- Returns:
- metadata for the relative weekday
- Compliance:
mandatory- This method must be implemented.
-
setRelativeEndWeekday
void setRelativeEndWeekday(long weekday) Sets the relative weekday.- Parameters:
weekday- the weekday- Throws:
InvalidArgumentException-weekdayis invalidNoAccessException-weekdaycannot be modified- Compliance:
mandatory- This method must be implemented.
-
clearRelativeEndWeekday
void clearRelativeEndWeekday()Clears the relative end weekday.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getLocationDescriptionMetadata
Metadata getLocationDescriptionMetadata()Gets the metadata for a location description.- Returns:
- metadata for the location description
- Compliance:
mandatory- This method must be implemented.
-
setLocationDescription
Sets the location description.- Parameters:
location- the new location description- Throws:
InvalidArgumentException-locationis invalidNoAccessException-locationcannot be modifiedNullArgumentException-locationisnull- Compliance:
mandatory- This method must be implemented.
-
clearLocationDescription
void clearLocationDescription()Clears the location description.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getLocationMetadata
Metadata getLocationMetadata()Gets the metadata for a location.- Returns:
- metadata for the location
- Compliance:
mandatory- This method must be implemented.
-
setLocation
Sets the location.- Parameters:
locationId- the new location- Throws:
InvalidArgumentException-locationIdis invalidNoAccessException-locationIdcannot be modifiedNullArgumentException-locationIdisnull- Compliance:
mandatory- This method must be implemented.
-
clearLocation
void clearLocation()Clears the location.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getSponsorsMetadata
Metadata getSponsorsMetadata()Gets the metadata for a sponsor.- Returns:
- metadata for the sponsor
- Compliance:
mandatory- This method must be implemented.
-
setSponsors
Sets the sponsors.- Parameters:
sponsorIds- the new sponsor- Throws:
InvalidArgumentException-sponsorIdsis invalidNoAccessException-sponsorIdscannot be modifiedNullArgumentException-sponsorIdsisnull- Compliance:
mandatory- This method must be implemented.
-
clearSponsors
void clearSponsors()Clears the sponsors.- Throws:
NoAccessException-Metadata.isRequired()orMetadata.isReadOnly()istrue- Compliance:
mandatory- This method must be implemented.
-
getOffsetEventFormRecord
OffsetEventFormRecord getOffsetEventFormRecord(Type offsetEventRecordType) throws OperationFailedException Gets theOffsetEventFormRecordcorresponding to the given schedule recordType.- Parameters:
offsetEventRecordType- the offset event record type- Returns:
- the offset event form record
- Throws:
NullArgumentException-offsetEventRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(offsetEventRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-