|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.dspace.embargo.DefaultEmbargoSetter
public class DefaultEmbargoSetter
Default plugin implementation of the embargo setting function. The parseTerms() provides only very rudimentary terms logic - entry of a configurable string (in terms field) for 'unlimited' embargo, otherwise a standard ISO 8601 (yyyy-mm-dd) date is assumed. Users are encouraged to override this method for enhanced functionality.
| Constructor Summary | |
|---|---|
DefaultEmbargoSetter()
|
|
| Method Summary | |
|---|---|
void |
checkEmbargo(Context context,
Item item)
Check that embargo is properly set on Item, e.g. |
DCDate |
parseTerms(Context context,
Item item,
String terms)
Parse the terms into a definite date. |
void |
setEmbargo(Context context,
Item item)
Enforce embargo by turning off all read access to bitstreams in this Item. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultEmbargoSetter()
| Method Detail |
|---|
public DCDate parseTerms(Context context,
Item item,
String terms)
throws SQLException,
AuthorizeException,
IOException
parseTerms in interface EmbargoSettercontext - the DSpace contextitem - the item to embargoterms - the embargo terms
SQLException
AuthorizeException
IOException
public void setEmbargo(Context context,
Item item)
throws SQLException,
AuthorizeException,
IOException
setEmbargo in interface EmbargoSettercontext - the DSpace contextitem - the item to embargo
SQLException
AuthorizeException
IOException
public void checkEmbargo(Context context,
Item item)
throws SQLException,
AuthorizeException,
IOException
checkEmbargo in interface EmbargoSettercontext - the DSpace contextitem - the item to embargo
SQLException
AuthorizeException
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||