public interface Program extends OsidObject, Operable
A Program represents a canonical program and
instantiated for offering through the creation of a
ProgramOffering.
| Modifier and Type | Method and Description |
|---|---|
boolean |
earnsCredentials()
Tests if completion of this program results in credentials awarded.
|
IdList |
getCompletionRequirementIds()
Gets the
Requisite Ids for the program
completion. |
RequisiteList |
getCompletionRequirements()
Gets the requisites for the program completion.
|
DisplayText |
getCompletionRequirementsInfo()
Gets the an informational string for the program completion.
|
IdList |
getCredentialIds()
Gets the awarded credential
Ids. |
CredentialList |
getCredentials()
Gets the awarded credentials.
|
java.lang.String |
getNumber()
Gets the program number which is a label generally used to index the
program in a catalog, such as "16c."
|
ProgramRecord |
getProgramRecord(Type programRecordType)
Gets the program record corresponding to the given
Program
record Type. |
IdList |
getSponsorIds()
Gets the sponsor
Ids. |
ResourceList |
getSponsors()
Gets the sponsors.
|
DisplayText |
getTitle()
Gets the formal title of this program.
|
boolean |
hasCompletionRequirements()
Tests if this program has a rule for the program completion.
|
boolean |
hasSponsors()
Tests if this program has sponsors.
|
getDescription, getDisplayName, getGenusType, isOfGenusTypegetId, isCurrentgetRecordTypes, hasRecordTypegetProperties, getPropertiesByRecordTypeisActive, isDisabled, isEnabled, isOperationalDisplayText getTitle()
mandatory - This method must be implemented. java.lang.String getNumber()
mandatory - This method must be implemented. boolean hasSponsors()
true if this program has sponsors, false
otherwisemandatory - This method must be implemented. IdList getSponsorIds()
Ids. Ids IllegalStateException - hasSponsors() is
false mandatory - This method must be implemented. ResourceList getSponsors() throws OperationFailedException
IllegalStateException - hasSponsors() is
false OperationFailedException - unable to complete requestmandatory - This method must be implemented. DisplayText getCompletionRequirementsInfo()
mandatory - This method must be implemented. boolean hasCompletionRequirements()
true if this program has a completion rule,
false otherwisemandatory - This method must be implemented. IdList getCompletionRequirementIds()
Requisite Ids for the program
completion. Ids IllegalStateException -
hasCompletionRequirements() is false mandatory - This method must be implemented. RequisiteList getCompletionRequirements() throws OperationFailedException
Requisite
is an AND term and must be true for the
requirements to be satisifed.IllegalStateException -
hasCompletionRequirements() is false OperationFailedException - unable to complete requestmandatory - This method must be implemented. boolean earnsCredentials()
true if this program earns credentials,
false otherwisemandatory - This method must be implemented. IdList getCredentialIds()
Ids. Ids IllegalStateException - earnsCredentials()
is false mandatory - This method must be implemented. CredentialList getCredentials() throws OperationFailedException
IllegalStateException - earnsCredentials()
is false OperationFailedException - unable to complete requestmandatory - This method must be implemented. ProgramRecord getProgramRecord(Type programRecordType) throws OperationFailedException
Program
record Type. This method is used to retrieve an
object implementing the requested record. The programRecordType
may be the Type returned in
getRecordTypes() or any of its parents in a Type
hierarchy where hasRecordType(programRecordType)
is true .programRecordType - the type of program record to retrieveNullArgumentException - programRecordType
is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(programRecordType) is false
mandatory - This method must be implemented.