Package org.dspace.access.status
Interface AccessStatusHelper
- All Known Implementing Classes:
DefaultAccessStatusHelper
public interface AccessStatusHelper
Plugin interface for the access status calculation.
-
Method Summary
Modifier and TypeMethodDescriptiongetAccessStatusFromItem(Context context, Item item, Date threshold) Calculate the access status for the item.getEmbargoFromItem(Context context, Item item, Date threshold) Retrieve embargo information for the item
-
Method Details
-
getAccessStatusFromItem
Calculate the access status for the item.- Parameters:
context- the DSpace contextitem- the itemthreshold- the embargo threshold date- Returns:
- an access status value
- Throws:
SQLException- An exception that provides information on a database access error or other errors.
-
getEmbargoFromItem
Retrieve embargo information for the item- Parameters:
context- the DSpace contextitem- the item to check for embargo informationthreshold- the embargo threshold date- Returns:
- an embargo date
- Throws:
SQLException- An exception that provides information on a database access error or other errors.
-