mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-09 02:54:20 +00:00
DSpace refactored service api
This commit is contained in:
@@ -8,7 +8,6 @@
|
||||
package org.dspace.embargo;
|
||||
|
||||
import java.sql.SQLException;
|
||||
import java.io.IOException;
|
||||
import java.util.Date;
|
||||
import java.util.Properties;
|
||||
|
||||
@@ -59,11 +58,12 @@ public class DayTableEmbargoSetter extends DefaultEmbargoSetter
|
||||
* @param terms the embargo terms
|
||||
* @return parsed date in DCDate format
|
||||
*/
|
||||
@Override
|
||||
public DCDate parseTerms(Context context, Item item, String terms)
|
||||
throws SQLException, AuthorizeException, IOException {
|
||||
throws SQLException, AuthorizeException {
|
||||
if (terms != null) {
|
||||
if (termsOpen.equals(terms)) {
|
||||
return EmbargoManager.FOREVER;
|
||||
return EmbargoServiceImpl.FOREVER;
|
||||
}
|
||||
String days = termProps.getProperty(terms);
|
||||
if (days != null && days.length() > 0) {
|
||||
|
Reference in New Issue
Block a user