public interface CredentialRequirement extends OsidRule, Aggregateable
A CredentialRequirement is an OsidRule
and represents a requirement based on a Credential.
| Modifier and Type | Method and Description |
|---|---|
Requisite[] |
getAltRequisites()
Gets any
Requisites that may be substituted in place of
this CredentialRequirement. |
Credential |
getCredential()
Gets the
Credential. |
Id |
getCredentialId()
Gets the
Id of the Credential. |
CredentialRequirementRecord |
getCredentialRequirementRecord(Type credentialRequirementRecordType)
Gets the credential requirement record corresponding to the given
CredentialRequirement record Type. |
Duration |
getTimeframe()
Gets the timeframe in which the credential has to be earned.
|
boolean |
hasTimeframe()
Tests if the credential has to be earned within the required duration.
|
getDescription, getDisplayName, getGenusType, isOfGenusTypegetId, isCurrentgetRecordTypes, hasRecordTypegetProperties, getPropertiesByRecordTypeisActive, isDisabled, isEnabled, isOperationalRequisite[] getAltRequisites()
Requisites that may be substituted in place of
this CredentialRequirement. All Requisites
must be satisifed to be a substitute for this credential
requirement. Inactive Requisites are not evaluated but
if no applicable requisite exists, then the alternate requisite is not
satisifed.mandatory - This method must be implemented. Id getCredentialId()
Id of the Credential. Id mandatory - This method must be implemented. Credential getCredential() throws OperationFailedException
Credential. OperationFailedException - unable to complete requestmandatory - This method must be implemented. boolean hasTimeframe()
true if the credential must be earned within a
required time, false if it could have been
earned at any time in the pastmandatory - This method must be implemented. Duration getTimeframe()
IllegalStateException - hasTimeframe()
is false mandatory - This method must be implemented. CredentialRequirementRecord getCredentialRequirementRecord(Type credentialRequirementRecordType) throws OperationFailedException
CredentialRequirement record Type. This
method is used to retrieve an object implementing the requested
record. The credentialRequirementRecordType may be the
Type returned in getRecordTypes() or any
of its parents in a Type hierarchy where
hasRecordType(credentialRequirementRecordType) is true
.credentialRequirementRecordType - the type of credential
requirement record to retrieveNullArgumentException -
credentialRequirementRecordType is null OperationFailedException - unable to complete requestUnsupportedException -
hasRecordType(credentialRequirementRecordType) is
false mandatory - This method must be implemented.