mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-13 21:13:19 +00:00
[DS-643] New testing framework (GSoC 2010)
git-svn-id: http://scm.dspace.org/svn/repo/dspace/trunk@5252 9c30dcfa-912a-0410-8fc2-9e0234be79fd
This commit is contained in:
@@ -658,6 +658,24 @@ public class Bundle extends DSpaceObject
|
||||
AuthorizeManager.removeAllPolicies(ourContext, this);
|
||||
AuthorizeManager.addPolicies(ourContext, newpolicies, this);
|
||||
}
|
||||
|
||||
public List<ResourcePolicy> getBundlePolicies() throws SQLException
|
||||
{
|
||||
return AuthorizeManager.getPolicies(ourContext, this);
|
||||
}
|
||||
|
||||
public List<ResourcePolicy> getBitstreamPolicies() throws SQLException
|
||||
{
|
||||
List<ResourcePolicy> list = new ArrayList<ResourcePolicy>();
|
||||
if (bitstreams != null && bitstreams.size() > 0)
|
||||
{
|
||||
for (Bitstream bs : bitstreams)
|
||||
{
|
||||
list.addAll(AuthorizeManager.getPolicies(ourContext, bs));
|
||||
}
|
||||
}
|
||||
return list;
|
||||
}
|
||||
|
||||
public DSpaceObject getAdminObject(int action) throws SQLException
|
||||
{
|
||||
|
Reference in New Issue
Block a user