Package org.dspace.correctiontype
Class ReinstateCorrectionType
java.lang.Object
org.dspace.correctiontype.ReinstateCorrectionType
- All Implemented Interfaces:
CorrectionType,InitializingBean
Implementation class for
CorrectionType
that will reinstate target item if it's withdrawn.- Author:
- Mykhaylo Boychuk (mykhaylo.boychuk@4science.com)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcreateCorrection(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.voidsetCreationForm(String creationForm) voidvoid
-
Constructor Details
-
ReinstateCorrectionType
public ReinstateCorrectionType()
-
-
Method Details
-
isAllowed
Description copied from interface:CorrectionTypeChecks whether target item is allowed for current CorrectionType- Specified by:
isAllowedin interfaceCorrectionType- Parameters:
context- Current DSpace sessiontargetItem- Target item- Throws:
SQLException- if there's a database problem
-
isAllowed
public boolean isAllowed(Context context, Item targetItem, Item relatedItem) throws AuthorizeException, SQLException Description copied from interface:CorrectionTypeChecks whether target item and related item are allowed for current CorrectionType- Specified by:
isAllowedin interfaceCorrectionType- Parameters:
context- Current DSpace sessiontargetItem- Target itemrelatedItem- Related item- Throws:
AuthorizeException- if authorize errorSQLException- if there's a database problem
-
createCorrection
Description copied from interface:CorrectionTypeCreates a QAEvent for a specific target item.- Specified by:
createCorrectionin interfaceCorrectionType- Parameters:
context- Current DSpace sessiontargetItem- Target itemreason- Reason- Returns:
- QAEvent
-
createCorrection
public QAEvent createCorrection(Context context, Item targetItem, Item relatedItem, QAMessageDTO reason) Description copied from interface:CorrectionTypeCreates a QAEvent for a target item and related item.- Specified by:
createCorrectionin interfaceCorrectionType- Parameters:
context- Current DSpace sessiontargetItem- Target itemrelatedItem- Related itemreason- Reason- Returns:
- QAEvent
-
isRequiredRelatedItem
public boolean isRequiredRelatedItem()Description copied from interface:CorrectionTypeChecks whether the CorrectionType required related item.- Specified by:
isRequiredRelatedItemin interfaceCorrectionType
-
getId
Description copied from interface:CorrectionTypeRetrieves the unique identifier associated to the CorrectionType.- Specified by:
getIdin interfaceCorrectionType
-
setId
-
getTopic
Description copied from interface:CorrectionTypeRetrieves the topic associated with the to the CorrectionType.- Specified by:
getTopicin interfaceCorrectionType
-
setTopic
-
afterPropertiesSet
- Specified by:
afterPropertiesSetin interfaceInitializingBean- Throws:
Exception
-
setCreationForm
-