Interface CredentialRequirementForm

All Superinterfaces:
Extensible, Identifiable, OsidAggregateableForm, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidOperableForm, OsidRuleForm, Suppliable

public interface CredentialRequirementForm extends OsidRuleForm, OsidAggregateableForm

This is the form for creating and updating CredentialRequirements. Like all OsidForm objects, various data elements may be set here for use in the create and update methods in the RequisiteAdminSession. For each data element that may be set, metadata may be examined to provide display hints or data constraints.

  • Method Details

    • getTimeframeMetadata

      Metadata getTimeframeMetadata()
      Gets the metadata for the timeframe.
      Returns:
      metadata for the timeframe
      Compliance:
      mandatory - This method must be implemented.
    • setTimeframe

      void setTimeframe(Duration duration)
      Sets the timeframe.
      Parameters:
      duration - the new duration
      Throws:
      InvalidArgumentException - duration is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - duration is null
      Compliance:
      mandatory - This method must be implemented.
    • clearTimeframe

      void clearTimeframe()
      Clears the timeframe.
      Throws:
      NoAccessException - Metadata.isRequired() or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getCredentialRequirementFormRecord

      CredentialRequirementFormRecord getCredentialRequirementFormRecord(Type credentialRequirementRecordType) throws OperationFailedException
      Gets the CredentialRequirementFormRecord corresponding to the given credential requirement record Type.
      Parameters:
      credentialRequirementRecordType - a credential requirement record type
      Returns:
      the credential requirement form record
      Throws:
      NullArgumentException - credentialRequirementRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(credentialRequirementRecordType) is false
      Compliance:
      mandatory - This method must be implemented.