Package org.dspace.correctiontype
Class WithdrawnCorrectionType
java.lang.Object
org.dspace.correctiontype.WithdrawnCorrectionType
- All Implemented Interfaces:
CorrectionType,InitializingBean
Implementation class for
CorrectionType
that will withdrawn target item if it archived and wasn't withdrawn already.- Author:
- Mykhaylo Boychuk (mykhaylo.boychuk at 4science.com)
-
Field Summary
Fields -
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
-
Field Details
-
WITHDRAWAL_REINSTATE_GROUP
- See Also:
-
-
Constructor Details
-
WithdrawnCorrectionType
public WithdrawnCorrectionType()
-
-
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
-
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
-
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
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
-