Interface CorrectionType

All Known Implementing Classes:
ReinstateCorrectionType, WithdrawnCorrectionType

public interface CorrectionType
Interface class that model the CorrectionType.
Author:
Mykhaylo Boychuk (mykhaylo.boychuk at 4science.com)
  • Method Details

    • getId

      String getId()
      Retrieves the unique identifier associated to the CorrectionType.
    • getTopic

      String getTopic()
      Retrieves the topic associated with the to the CorrectionType.
    • isRequiredRelatedItem

      boolean isRequiredRelatedItem()
      Checks whether the CorrectionType required related item.
    • isAllowed

      boolean isAllowed(Context context, Item targetItem) throws AuthorizeException, SQLException
      Checks whether target item is allowed for current CorrectionType
      Parameters:
      context - Current DSpace session
      targetItem - Target item
      Throws:
      AuthorizeException - if authorize error
      SQLException - if there's a database problem
    • isAllowed

      boolean isAllowed(Context context, Item targetItem, Item relatedItem) throws AuthorizeException, SQLException
      Checks whether target item and related item are allowed for current CorrectionType
      Parameters:
      context - Current DSpace session
      targetItem - Target item
      relatedItem - Related item
      Throws:
      AuthorizeException - if authorize error
      SQLException - if there's a database problem
    • createCorrection

      QAEvent createCorrection(Context context, Item targetItem, QAMessageDTO reason)
      Creates a QAEvent for a specific target item.
      Parameters:
      context - Current DSpace session
      targetItem - Target item
      reason - Reason
      Returns:
      QAEvent
    • createCorrection

      QAEvent createCorrection(Context context, Item targetItem, Item relatedItem, QAMessageDTO reason)
      Creates a QAEvent for a target item and related item.
      Parameters:
      context - Current DSpace session
      targetItem - Target item
      relatedItem - Related item
      reason - Reason
      Returns:
      QAEvent