-
-
Notifications
You must be signed in to change notification settings - Fork 487
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SettingsManager / Split harvester settings and system settings.
- Loading branch information
François Prunayre
committed
Jul 5, 2013
1 parent
2ef9aeb
commit 7df46d0
Showing
21 changed files
with
766 additions
and
18 deletions.
There are no files selected for viewing
579 changes: 579 additions & 0 deletions
579
core/src/main/java/org/fao/geonet/kernel/setting/HarvesterSettingsManager.java
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
web/src/main/webapp/WEB-INF/classes/setup/sql/migrate/v2110/migrate-db-db2.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CREATE TABLE HarvesterSettings | ||
( | ||
id int not null, | ||
parentId int, | ||
name varchar(64) not null, | ||
value CLOB(1G), | ||
primary key(id) | ||
); | ||
|
||
ALTER TABLE HarvesterSettings ADD FOREIGN KEY (parentId) REFERENCES HarvesterSettings (id); |
11 changes: 11 additions & 0 deletions
11
web/src/main/webapp/WEB-INF/classes/setup/sql/migrate/v2110/migrate-db-default.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE TABLE HarvesterSettings | ||
( | ||
id int not null, | ||
parentId int, | ||
name varchar(64) not null, | ||
value longvarchar, | ||
|
||
primary key(id), | ||
|
||
foreign key(parentId) references HarvesterSettings(id) | ||
); |
11 changes: 11 additions & 0 deletions
11
web/src/main/webapp/WEB-INF/classes/setup/sql/migrate/v2110/migrate-db-mysql.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE TABLE HarvesterSettings | ||
( | ||
id int not null, | ||
parentId int, | ||
name varchar(64) not null, | ||
value longtext, | ||
|
||
primary key(id), | ||
|
||
foreign key(parentId) references HarvesterSettings(id) | ||
); |
10 changes: 10 additions & 0 deletions
10
web/src/main/webapp/WEB-INF/classes/setup/sql/migrate/v2110/migrate-db-oracle.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
CREATE TABLE HarvesterSettings | ||
( | ||
id int not null, | ||
parentId int, | ||
name varchar2(64) not null, | ||
value clob, | ||
primary key(id) | ||
); | ||
|
||
ALTER TABLE HarvesterSettings ADD FOREIGN KEY (parentId) REFERENCES HarvesterSettings (id); |
11 changes: 11 additions & 0 deletions
11
web/src/main/webapp/WEB-INF/classes/setup/sql/migrate/v2110/migrate-db-postgis.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE TABLE HarvesterSettings | ||
( | ||
id int not null, | ||
parentId int, | ||
name varchar(64) not null, | ||
value text, | ||
|
||
primary key(id), | ||
|
||
foreign key(parentId) references HarvesterSettings(id) | ||
); |
11 changes: 11 additions & 0 deletions
11
web/src/main/webapp/WEB-INF/classes/setup/sql/migrate/v2110/migrate-db-postgres.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE TABLE HarvesterSettings | ||
( | ||
id int not null, | ||
parentId int, | ||
name varchar(64) not null, | ||
value text, | ||
|
||
primary key(id), | ||
|
||
foreign key(parentId) references HarvesterSettings(id) | ||
); |
11 changes: 11 additions & 0 deletions
11
web/src/main/webapp/WEB-INF/classes/setup/sql/migrate/v2110/migrate-db-sqlserver.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
CREATE TABLE HarvesterSettings | ||
( | ||
id int not null, | ||
parentId int, | ||
name varchar(64) not null, | ||
value varchar(max), | ||
|
||
primary key(id), | ||
|
||
foreign key(parentId) references HarvesterSettings(id) | ||
); |
12 changes: 12 additions & 0 deletions
12
web/src/main/webapp/WEB-INF/classes/setup/sql/migrate/v2110/migrate-default.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
INSERT INTO HarvesterSettings VALUES (1,NULL,'harvesting',NULL); | ||
-- Copy all harvester's root nodes config | ||
INSERT INTO HarvesterSettings SELECT id, 1, name, value FROM Settings WHERE parentId = 2; | ||
-- Copy all harvester's properties (Greater than last 2.10.0 settings ie. keepMarkedElement) | ||
INSERT INTO HarvesterSettings SELECT * FROM Settings WHERE id > (SELECT max(id) FROM HarvesterSettings); | ||
-- Drop harvester config from Settings table | ||
DELETE FROM Settings WHERE id > 958; | ||
DELETE FROM Settings WHERE id=2; | ||
|
||
-- Version update | ||
UPDATE Settings SET value='2.11.0' WHERE name='version'; | ||
UPDATE Settings SET value='SNAPSHOT' WHERE name='subVersion'; |