Package org.dspace.correctiontype
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 Summary
Modifier and TypeMethodDescriptioncreateCorrection(Context context, Item targetItem, Item relatedItem, QAMessageDTO reason) Creates a QAEvent for a target item and related item.createCorrection(Context context, Item targetItem, QAMessageDTO reason) Creates a QAEvent for a specific target item.getId()Retrieves the unique identifier associated to the CorrectionType.getTopic()Retrieves the topic associated with the to the CorrectionType.booleanChecks whether target item is allowed for current CorrectionTypebooleanChecks whether target item and related item are allowed for current CorrectionTypebooleanChecks whether the CorrectionType required related item.
-
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
Checks whether target item is allowed for current CorrectionType- Parameters:
context- Current DSpace sessiontargetItem- Target item- Throws:
AuthorizeException- if authorize errorSQLException- 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 sessiontargetItem- Target itemrelatedItem- Related item- Throws:
AuthorizeException- if authorize errorSQLException- if there's a database problem
-
createCorrection
Creates a QAEvent for a specific target item.- Parameters:
context- Current DSpace sessiontargetItem- Target itemreason- Reason- Returns:
- QAEvent
-
createCorrection
Creates a QAEvent for a target item and related item.- Parameters:
context- Current DSpace sessiontargetItem- Target itemrelatedItem- Related itemreason- Reason- Returns:
- QAEvent
-