public class DayTableEmbargoSetter extends DefaultEmbargoSetter
embargo.terms.days = 90 days:90,1 year:365,2 years:730
That is, an arbitrary, comma separated, list of <terms>:<days> where <terms>
can be any string and <days> must be a positive integer.
All the <terms> fields should be defined in a 'value-pairs' element,
and the field configured as the embargo terms should employ a drop-down using
that element in input_forms.xml, if user submission is desired.authorizeService, resourcePolicyService| Constructor and Description |
|---|
DayTableEmbargoSetter() |
| Modifier and Type | Method and Description |
|---|---|
DCDate |
parseTerms(Context context,
Item item,
String terms)
Parse the terms into a definite date.
|
checkEmbargo, generatePolicies, setEmbargopublic DCDate parseTerms(Context context, Item item, String terms) throws SQLException, AuthorizeException
parseTerms in interface EmbargoSetterparseTerms in class DefaultEmbargoSettercontext - the DSpace contextitem - the item to embargoterms - the embargo termsSQLExceptionAuthorizeExceptionCopyright © 2016 DuraSpace. All rights reserved.