Interface RegistrationRequestItemForm

All Superinterfaces:
Extensible, Identifiable, OsidBrowsableForm, OsidExtensibleForm, OsidForm, OsidIdentifiableForm, OsidObjectForm, OsidSubjugateableForm, Suppliable

public interface RegistrationRequestItemForm extends OsidObjectForm, OsidSubjugateableForm

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

  • Method Details

    • getStudentMetadata

      Metadata getStudentMetadata()
      Gets the metadata for the student.
      Returns:
      metadata for the student
      Compliance:
      mandatory - This method must be implemented.
    • setStudent

      void setStudent(Id resourceId)
      Sets the student resource.
      Parameters:
      resourceId - the new student
      Throws:
      InvalidArgumentException - resourceiId is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - resourceId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearStudent

      void clearStudent()
      Removes the student.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getRegistrationTargetMetadata

      Metadata getRegistrationTargetMetadata()
      Gets the metadata for the registration target.
      Returns:
      metadata for the registration target
      Compliance:
      mandatory - This method must be implemented.
    • setRegistrationTarget

      void setRegistrationTarget(Id registrationTargetId)
      Sets the registration target.
      Parameters:
      registrationTargetId - the new student
      Throws:
      InvalidArgumentException - registrationTargetId is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - registrationTargetId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearRegistrationTarget

      void clearRegistrationTarget()
      Removes the registration target.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getExistingRegistrationMetadata

      Metadata getExistingRegistrationMetadata()
      Gets the metadata for the existing registration.
      Returns:
      metadata for the existing registration
      Compliance:
      mandatory - This method must be implemented.
    • setExistingRegistration

      void setExistingRegistration(Id registrationId)
      Sets the existing registration.
      Parameters:
      registrationId - the new existing registration
      Throws:
      InvalidArgumentException - registrationId is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - registrationId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearExistingRegistration

      void clearExistingRegistration()
      Removes the existing registration.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getCreditOptionMetadata

      Metadata getCreditOptionMetadata()
      Gets the metadata for the credit option.
      Returns:
      metadata for the credit option
      Compliance:
      mandatory - This method must be implemented.
    • setCreditOption

      void setCreditOption(BigDecimal credits)
      Sets the credit option.
      Parameters:
      credits - the new credit option
      Throws:
      InvalidArgumentException - credits is invalid
      NoAccessException - Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • clearCreditOption

      void clearCreditOption()
      Removes the credit option.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getGradingOptionMetadata

      Metadata getGradingOptionMetadata()
      Gets the metadata for the grading option.
      Returns:
      metadata for the grading option
      Compliance:
      mandatory - This method must be implemented.
    • setGradingOption

      void setGradingOption(Id gradeSystemId)
      Sets the grading option.
      Parameters:
      gradeSystemId - the new grading option
      Throws:
      InvalidArgumentException - gradeSystemId is invalid
      NoAccessException - Metadata.isReadOnly() is true
      NullArgumentException - gradeSystemId is null
      Compliance:
      mandatory - This method must be implemented.
    • clearGradingOption

      void clearGradingOption()
      Removes the grading option.
      Throws:
      NoAccessException - Metadata.isRequired() is true or Metadata.isReadOnly() is true
      Compliance:
      mandatory - This method must be implemented.
    • getRegistrationRequestItemFormRecord

      RegistrationRequestItemFormRecord getRegistrationRequestItemFormRecord(Type registrationRequestItemRecordType) throws OperationFailedException
      Gets the RegistrationRequestItemFormRecord corresponding to the given registration request item record Type .
      Parameters:
      registrationRequestItemRecordType - a registration request item record type
      Returns:
      the registration request item form record
      Throws:
      NullArgumentException - registrationRequestItemRecordType is null
      OperationFailedException - unable to complete request
      UnsupportedException - hasRecordType(registrationRequestItemRecordType) is false
      Compliance:
      mandatory - This method must be implemented.