public interface ProgramForm extends OsidObjectForm, OsidOperableForm
This is the form for creating and updating Programs.
Like all OsidForm objects, various data elements may be set
here for use in the create and update methods in the
ProgramAdminSession. 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 |
clearNumber()
Removes the program number.
|
void |
clearSponsors()
Removes the sponsors.
|
void |
clearTitle()
Removes the title.
|
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 |
getNumberMetadata()
Gets the metadata for a program number.
|
ProgramFormRecord |
getProgramFormRecord(Type programRecordType)
Gets the
ProgramFormRecord corresponding to the given
program record Type. |
Metadata |
getSponsorsMetadata()
Gets the metadata for a set of sponsors.
|
Metadata |
getTitleMetadata()
Gets the metadata for a program title.
|
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 |
setNumber(java.lang.String number)
Sets the program number.
|
void |
setSponsors(Id[] resourceIds)
Sets the sponsors.
|
void |
setTitle(java.lang.String title)
Sets the title.
|
clearDescription, clearDisplayName, clearGenusType, getDescriptionMetadata, getDisplayNameMetadata, getGenusTypeMetadata, setDescription, setDisplayName, setGenusTypegetRequiredRecordTypesgetRecordTypes, hasRecordTypegetDefaultLocale, getInvalidMetadata, getJournalCommentMetadata, getLocales, getValidationMessages, isForUpdate, isValid, setJournalComment, setLocalegetId, isCurrentclearDisabled, clearEnabled, getDisabledMetadata, getEnabledMetadata, setDisabled, setEnabledMetadata 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[] resourceIds)
resourceIds - the new sponsorsInvalidArgumentException - resourceIds
is invalidNoAccessException - Metadata.isReadOnly()
is true NullArgumentException - resourceIds 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. ProgramFormRecord getProgramFormRecord(Type programRecordType) throws OperationFailedException
ProgramFormRecord corresponding to the given
program record Type. programRecordType - a program record typeNullArgumentException - programRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(programRecordType) is false
mandatory - This method must be implemented.