mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-18 15:33:09 +00:00
[DS-895] Advanced Embargo Project : Fix JUnit Tests and Correct Database Schema
This commit is contained in:
@@ -295,17 +295,6 @@ public class AuthorizeManager
|
||||
}
|
||||
}
|
||||
|
||||
if (o instanceof Item)
|
||||
{
|
||||
Item i = (Item) o;
|
||||
if (!i.isArchived()) return false;
|
||||
|
||||
if (i.isWithdrawn()) return false;
|
||||
|
||||
if (!i.isDiscoverable()) return false;
|
||||
}
|
||||
|
||||
|
||||
for (ResourcePolicy rp : getPoliciesActionFilter(c, o, action))
|
||||
{
|
||||
// check policies for date validity
|
||||
|
@@ -241,6 +241,7 @@ CREATE TABLE Item
|
||||
submitter_id INTEGER REFERENCES EPerson(eperson_id),
|
||||
in_archive BOOL,
|
||||
withdrawn BOOL,
|
||||
discoverable BOOL,
|
||||
last_modified TIMESTAMP,
|
||||
owning_collection INTEGER
|
||||
);
|
||||
@@ -444,7 +445,10 @@ CREATE TABLE ResourcePolicy
|
||||
eperson_id INTEGER REFERENCES EPerson(eperson_id),
|
||||
epersongroup_id INTEGER REFERENCES EPersonGroup(eperson_group_id),
|
||||
start_date DATE,
|
||||
end_date DATE
|
||||
end_date DATE,
|
||||
rpname VARCHAR(30),
|
||||
rptype VARCHAR(30),
|
||||
rpdescription VARCHAR(100)
|
||||
);
|
||||
|
||||
-- index by resource_type,resource_id - all queries by
|
||||
|
@@ -241,6 +241,7 @@ CREATE TABLE Item
|
||||
submitter_id INTEGER REFERENCES EPerson(eperson_id),
|
||||
in_archive BOOL,
|
||||
withdrawn BOOL,
|
||||
discoverable BOOL,
|
||||
last_modified TIMESTAMP,
|
||||
owning_collection INTEGER
|
||||
);
|
||||
@@ -444,7 +445,10 @@ CREATE TABLE ResourcePolicy
|
||||
eperson_id INTEGER REFERENCES EPerson(eperson_id),
|
||||
epersongroup_id INTEGER REFERENCES EPersonGroup(eperson_group_id),
|
||||
start_date DATE,
|
||||
end_date DATE
|
||||
end_date DATE,
|
||||
rpname VARCHAR(30),
|
||||
rptype VARCHAR(30),
|
||||
rpdescription VARCHAR(100)
|
||||
);
|
||||
|
||||
-- index by resource_type,resource_id - all queries by
|
||||
|
@@ -404,8 +404,8 @@ CREATE TABLE ResourcePolicy
|
||||
start_date DATE,
|
||||
end_date DATE,
|
||||
rpname VARCHAR2(30),
|
||||
rpdescription VARCHAR2(100),
|
||||
rptype VARCHAR2(30);
|
||||
rptype VARCHAR2(30),
|
||||
rpdescription VARCHAR2(100)
|
||||
);
|
||||
|
||||
-- index by resource_type,resource_id - all queries by
|
||||
|
@@ -24,8 +24,8 @@
|
||||
ALTER TABLE resourcepolicy
|
||||
ADD (
|
||||
rpname VARCHAR2(30);
|
||||
rpdescription VARCHAR2(100);
|
||||
rptype VARCHAR2(30)
|
||||
rptype VARCHAR2(30);
|
||||
rpdescription VARCHAR2(100)
|
||||
);
|
||||
|
||||
|
||||
|
6
pom.xml
6
pom.xml
@@ -72,6 +72,10 @@
|
||||
<excludes>
|
||||
<exclude>**/Abstract*</exclude>
|
||||
</excludes>
|
||||
<!--
|
||||
Enable to debug Maven Surefire tests in remote proces
|
||||
<debugForkedProcess>true</debugForkedProcess>
|
||||
-->
|
||||
<!-- required when running JMockit under Java 1.5 -->
|
||||
<argLine>-javaagent:"${settings.localRepository}"/org/dspace/dependencies/jmockit/dspace-jmockit/0.999.4/dspace-jmockit-0.999.4.jar</argLine>
|
||||
</configuration>
|
||||
@@ -390,7 +394,7 @@
|
||||
<profile>
|
||||
<id>skiptests</id>
|
||||
<activation>
|
||||
<activeByDefault>true</activeByDefault>
|
||||
<activeByDefault>false</activeByDefault>
|
||||
</activation>
|
||||
<properties>
|
||||
<maven.test.skip>true</maven.test.skip>
|
||||
|
Reference in New Issue
Block a user