public interface ProgramOfferingForm extends OsidRelationshipForm
This is the form for creating and updating ProgramOfferings.
Like all OsidForm
objects, various data elements
may be set here for use in the create and update methods in the
ProgramOfferingAdminSession.
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 |
clearCompletionRequirements()
Removes the completion requirements requisites.
|
void |
clearCompletionRequirementsInfo()
Removes the completion requirements information.
|
void |
clearCredentials()
Removes the credentials.
|
void |
clearMaximumSeats()
Removes the maximum seats.
|
void |
clearMinimumSeats()
Removes the minimum seats.
|
void |
clearNumber()
Removes the program number.
|
void |
clearRequiresRegistration()
Removes the requires registration flag.
|
void |
clearSponsors()
Removes the sponsors.
|
void |
clearTitle()
Removes the title.
|
void |
clearURL()
Removes the url.
|
Metadata |
getCompletionRequirementsInfoMetadata()
Gets the metadata for a completion requirements informational string.
|
Metadata |
getCompletionRequirementsMetadata()
Gets the metadata for a completion requirements requisites.
|
Metadata |
getCredentialsMetadata()
Gets the metadata for a set of credentials.
|
Metadata |
getMaximumSeatsMetadata()
Gets the metadata for the maximum seats.
|
Metadata |
getMinimumSeatsMetadata()
Gets the metadata for the minimum seats.
|
Metadata |
getNumberMetadata()
Gets the metadata for a program offering number.
|
ProgramOfferingFormRecord |
getProgramOfferingFormRecord(Type programOfferingRecordType)
Gets the
ProgramOfferingFormRecord corresponding to the
given program offering record Type. |
Metadata |
getRequiresRegistrationMetadata()
Gets the metadata for requires registration flag.
|
Metadata |
getSponsorsMetadata()
Gets the metadata for the sponsors.
|
Metadata |
getTitleMetadata()
Gets the metadata for a program title.
|
Metadata |
getURLMetadata()
Gets the metadata for a program url.
|
void |
setCompletionRequirements(Id[] requisiteIds)
Sets the completion requirements requisites.
|
void |
setCompletionRequirementsInfo(java.lang.String requirements)
Sets the completion requirements information.
|
void |
setCredentials(Id[] credentialIds)
Sets the credentials.
|
void |
setMaximumSeats(long seats)
Sets the maximum seating count.
|
void |
setMinimumSeats(long seats)
Sets the minimum seating count.
|
void |
setNumber(java.lang.String number)
Sets the program number.
|
void |
setRequiresRegistration(boolean requiresRegistration)
Sets the requires registration flag.
|
void |
setSponsors(Id[] sponsorIds)
Sets the sponsors.
|
void |
setTitle(java.lang.String title)
Sets the title.
|
void |
setURL(java.lang.String url)
Sets the url for a program web site.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusType
getRequiredRecordTypes
getRecordTypes, hasRecordType
getDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocale
getId, isCurrent
clearEndDate, clearStartDate, getEndDateMetadata, getStartDateMetadata, setEndDate, setStartDate
Metadata getTitleMetadata()
mandatory
- This method must be implemented. void setTitle(java.lang.String title)
title
- the new titleInvalidArgumentException
- title
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- title
is
null
mandatory
- This method must be implemented. void clearTitle()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getNumberMetadata()
mandatory
- This method must be implemented. void setNumber(java.lang.String number)
number
- the new program numberInvalidArgumentException
- number
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- number
is
null
mandatory
- This method must be implemented. void clearNumber()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getSponsorsMetadata()
mandatory
- This method must be implemented. void setSponsors(Id[] sponsorIds)
sponsorIds
- the new sponsorsInvalidArgumentException
- sponsorIds
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- sponsorIds
is
null
mandatory
- This method must be implemented. void clearSponsors()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getCompletionRequirementsInfoMetadata()
mandatory
- This method must be implemented. void setCompletionRequirementsInfo(java.lang.String requirements)
requirements
- the new requirements informationInvalidArgumentException
- requirements
is invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- requirements
is
null
mandatory
- This method must be implemented. void clearCompletionRequirementsInfo()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getCompletionRequirementsMetadata()
mandatory
- This method must be implemented. void setCompletionRequirements(Id[] requisiteIds)
requisiteIds
- the new requisitesInvalidArgumentException
- ruleId
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- requisiteIds
is
null
mandatory
- This method must be implemented. void clearCompletionRequirements()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getCredentialsMetadata()
mandatory
- This method must be implemented. void setCredentials(Id[] credentialIds)
credentialIds
- the new credentialsInvalidArgumentException
- gradeSystemIds
is invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- credentialIds
is
null
mandatory
- This method must be implemented. void clearCredentials()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getRequiresRegistrationMetadata()
mandatory
- This method must be implemented. void setRequiresRegistration(boolean requiresRegistration)
requiresRegistration
- the new registration flagInvalidArgumentException
- requiresRegistration
is invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearRequiresRegistration()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getMinimumSeatsMetadata()
mandatory
- This method must be implemented. void setMinimumSeats(long seats)
seats
- the new minimum seatsInvalidArgumentException
- seats
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearMinimumSeats()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getMaximumSeatsMetadata()
mandatory
- This method must be implemented. void setMaximumSeats(long seats)
seats
- the new maximum seatsInvalidArgumentException
- seats
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. void clearMaximumSeats()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. Metadata getURLMetadata()
mandatory
- This method must be implemented. void setURL(java.lang.String url)
url
- the new urlInvalidArgumentException
- url
is
invalidNoAccessException
- Metadata.isReadOnly()
is true
NullArgumentException
- url
is
null
mandatory
- This method must be implemented. void clearURL()
NoAccessException
- Metadata.isRequired()
is true
or Metadata.isReadOnly()
is true
mandatory
- This method must be implemented. ProgramOfferingFormRecord getProgramOfferingFormRecord(Type programOfferingRecordType) throws OperationFailedException
ProgramOfferingFormRecord
corresponding to the
given program offering record Type.
programOfferingRecordType
- a program offering record typeNullArgumentException
-
programOfferingRecordType
is null
OperationFailedException
- unable to complete requestUnsupportedException
-
hasRecordType(programOfferingRecordType)
is
false
mandatory
- This method must be implemented.