Package org.dspace.access.status
Interface AccessStatusHelper
-
- All Known Implementing Classes:
DefaultAccessStatusHelper
public interface AccessStatusHelperPlugin interface for the access status calculation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAccessStatusFromItem(Context context, Item item, Date threshold)Calculate the access status for the item.StringgetEmbargoFromItem(Context context, Item item, Date threshold)Retrieve embargo information for the item
-
-
-
Method Detail
-
getAccessStatusFromItem
String getAccessStatusFromItem(Context context, Item item, Date threshold) throws SQLException
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
String getEmbargoFromItem(Context context, Item item, Date threshold) throws SQLException
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.
-
-