Interface AccessStatusService
-
- All Known Implementing Classes:
AccessStatusServiceImpl
public interface AccessStatusServicePublic interface to the access status subsystem.Configuration properties: (with examples)
# values for the forever embargo date threshold # This threshold date is used in the default access status helper to dermine if an item is # restricted or embargoed based on the start date of the primary (or first) file policies. # In this case, if the policy start date is inferior to the threshold date, the status will # be embargo, else it will be restricted. # You might want to change this threshold based on your needs. For example: some databases # doesn't accept a date superior to 31 december 9999. access.status.embargo.forever.year = 10000 access.status.embargo.forever.month = 1 access.status.embargo.forever.day = 1 # implementation of access status helper plugin - replace with local implementation if applicable # This default access status helper provides an item status based on the policies of the primary # bitstream (or first bitstream in the original bundles if no primary file is specified). plugin.single.org.dspace.access.status.AccessStatusHelper = org.dspace.access.status.DefaultAccessStatusHelper
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringgetAccessStatus(Context context, Item item)Calculate the access status for an Item while considering the forever embargo date threshold.StringgetEmbargoFromItem(Context context, Item item)Retrieve embargo information for the item
-
-
-
Method Detail
-
getAccessStatus
String getAccessStatus(Context context, Item item) throws SQLException
Calculate the access status for an Item while considering the forever embargo date threshold.- Parameters:
context- the DSpace contextitem- the item- 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) throws SQLException
Retrieve embargo information for the item- Parameters:
context- the DSpace contextitem- the item to check for embargo information- Returns:
- an embargo date
- Throws:
SQLException- An exception that provides information on a database access error or other errors.
-
-