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 TypeMethodDescriptiongetAccessStatusFromBitstream(Context context, Bitstream bitstream, LocalDate threshold, String type) Calculate the access status for the bitstream.getAccessStatusFromItem(Context context, Item item, LocalDate threshold, String type) Calculate the access status for the item.getAnonymousAccessStatusFromItem(Context context, Item item, LocalDate threshold) Calculate the anonymous access status for the item.
-
Method Details
-
getAccessStatusFromItem
AccessStatus getAccessStatusFromItem(Context context, Item item, LocalDate threshold, String type) throws SQLException Calculate the access status for the item.- Parameters:
context- the DSpace contextitem- the itemthreshold- the embargo threshold datetype- the type of calculation- Returns:
- the access status
- Throws:
SQLException- An exception that provides information on a database access error or other errors.
-
getAnonymousAccessStatusFromItem
AccessStatus getAnonymousAccessStatusFromItem(Context context, Item item, LocalDate threshold) throws SQLException Calculate the anonymous access status for the item.- Parameters:
context- the DSpace contextitem- the item to check for embargo informationthreshold- the embargo threshold date- Returns:
- the access status
- Throws:
SQLException- An exception that provides information on a database access error or other errors.
-
getAccessStatusFromBitstream
AccessStatus getAccessStatusFromBitstream(Context context, Bitstream bitstream, LocalDate threshold, String type) throws SQLException Calculate the access status for the bitstream.- Parameters:
context- the DSpace contextbitstream- the bitstreamthreshold- the embargo threshold datetype- the type of calculation- Returns:
- the access status
- Throws:
SQLException- An exception that provides information on a database access error or other errors.
-