|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EmbargoSetter
Plugin interface for the embargo setting function.
| Method Summary | |
|---|---|
void |
checkEmbargo(Context context,
Item item)
Check that embargo is properly set on Item. |
DCDate |
parseTerms(Context context,
Item item,
String terms)
Get lift date of embargo from the "terms" supplied in the metadata (or other available state) of this Item. |
void |
setEmbargo(Context context,
Item item)
Enforce embargo by (for example) turning off all read access to bitstreams in this Item. |
| Method Detail |
|---|
DCDate parseTerms(Context context,
Item item,
String terms)
throws SQLException,
AuthorizeException,
IOException
Note that the value (if any) of the metadata field configured to contain embargo terms is passed explicitly, but this method is free to explore other metadata fields, and even Bitstream contents, to determine the embargo status and lift date.
Expect this method to be called at the moment before the Item is installed into the archive (i.e. after workflow). This may be significant if the embargo lift date is computed relative to the present.
context - the DSpace contextitem - the item to embargoterms - value of the metadata field configured as embargo terms, if any.
SQLException
AuthorizeException
IOException
void setEmbargo(Context context,
Item item)
throws SQLException,
AuthorizeException,
IOException
context - the DSpace contextitem - the item to embargo
SQLException
AuthorizeException
IOException
void checkEmbargo(Context context,
Item item)
throws SQLException,
AuthorizeException,
IOException
context - 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 | |||||||||