public class DefaultEmbargoSetter extends java.lang.Object implements EmbargoSetter
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
termsOpen |
| Constructor and Description |
|---|
DefaultEmbargoSetter() |
| Modifier and Type | Method and Description |
|---|---|
void |
checkEmbargo(Context context,
Item item)
Check that embargo is properly set on Item: no read access to bitstreams.
|
protected void |
generatePolicies(Context context,
java.util.Date embargoDate,
java.lang.String reason,
DSpaceObject dso,
Collection owningCollection) |
DCDate |
parseTerms(Context context,
Item item,
java.lang.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.
|
public DCDate parseTerms(Context context, Item item, java.lang.String terms) throws java.sql.SQLException, AuthorizeException, java.io.IOException
parseTerms in interface EmbargoSettercontext - the DSpace contextitem - the item to embargoterms - the embargo termsjava.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionpublic void setEmbargo(Context context, Item item) throws java.sql.SQLException, AuthorizeException, java.io.IOException
setEmbargo in interface EmbargoSettercontext - the DSpace contextitem - the item to embargojava.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionprotected void generatePolicies(Context context, java.util.Date embargoDate, java.lang.String reason, DSpaceObject dso, Collection owningCollection) throws java.sql.SQLException, AuthorizeException
java.sql.SQLExceptionAuthorizeExceptionpublic void checkEmbargo(Context context, Item item) throws java.sql.SQLException, AuthorizeException, java.io.IOException
checkEmbargo in interface EmbargoSettercontext - the DSpace contextitem - the item to embargojava.sql.SQLExceptionAuthorizeExceptionjava.io.IOExceptionCopyright © 2018 DuraSpace. All Rights Reserved.