DSpace refactored service api

This commit is contained in:
KevinVdV
2014-11-08 09:19:09 +01:00
parent fcb3717aad
commit 54222f3c1d
1145 changed files with 52233 additions and 57064 deletions

View File

@@ -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) {