mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 10:04:21 +00:00

committed by
github-actions[bot]
![github-actions[bot]](/assets/img/avatar_default.png)
parent
f330e36528
commit
beaf40dd9b
@@ -13,9 +13,9 @@ import java.io.InputStream;
|
||||
import java.sql.SQLException;
|
||||
import java.text.SimpleDateFormat;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.List;
|
||||
|
||||
import com.lyncode.xoai.dataprovider.xml.xoai.Element;
|
||||
import com.lyncode.xoai.dataprovider.xml.xoai.Metadata;
|
||||
@@ -180,7 +180,9 @@ public class ItemUtils {
|
||||
private static void addEmbargoField(Context context, Bitstream bitstream, Element bitstreamEl) throws SQLException {
|
||||
GroupService groupService = EPersonServiceFactory.getInstance().getGroupService();
|
||||
Group anonymousGroup = groupService.findByName(context, Group.ANONYMOUS);
|
||||
List<ResourcePolicy> policies = authorizeService.findPoliciesByDSOAndType(context, bitstream, ResourcePolicy.TYPE_CUSTOM);
|
||||
List<ResourcePolicy> policies = authorizeService.findPoliciesByDSOAndType(context,
|
||||
bitstream,
|
||||
ResourcePolicy.TYPE_CUSTOM);
|
||||
|
||||
List<Date> embargoDates = new ArrayList<>();
|
||||
// Account for cases where there could be more than one embargo policy
|
||||
|
Reference in New Issue
Block a user