Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit 5a18659

Browse files
Dermot SmythDermot Smyth
authored andcommitted
added temporal config
1 parent cdf3211 commit 5a18659

File tree

1 file changed

+82
-79
lines changed

1 file changed

+82
-79
lines changed

src/main/java/com/marklogic/appdeployer/command/SortOrderConstants.java

Lines changed: 82 additions & 79 deletions
Original file line numberDiff line numberDiff line change
@@ -2,93 +2,96 @@
22

33
public abstract class SortOrderConstants {
44

5-
public static Integer DEPLOY_GROUPS = 5;
6-
7-
public static Integer DEPLOY_PRIVILEGES = 10;
8-
public static Integer DEPLOY_ROLES = 20;
9-
public static Integer DEPLOY_USERS = 30;
10-
public static Integer DEPLOY_CERTIFICATE_TEMPLATES = 50;
11-
public static Integer GENERATE_TEMPORARY_CERTIFICATE = 55;
12-
public static Integer DEPLOY_CERTIFICATE_AUTHORITIES = 60;
13-
public static Integer DEPLOY_EXTERNAL_SECURITY = 70;
14-
public static Integer DEPLOY_PROTECTED_COLLECTIONS = 80;
15-
public static Integer DEPLOY_MIMETYPES = 90;
16-
17-
public static Integer DEPLOY_TRIGGERS_DATABASE = 100;
18-
public static Integer DEPLOY_SCHEMAS_DATABASE = 100;
19-
public static Integer DEPLOY_CONTENT_DATABASES = 120;
20-
public static Integer DEPLOY_OTHER_DATABASES = 130;
21-
public static Integer DEPLOY_FORESTS = 150;
22-
23-
public static Integer DEPLOY_REST_API_SERVERS = 200;
24-
public static Integer UPDATE_REST_API_SERVERS = 250;
25-
public static Integer DEPLOY_OTHER_SERVERS = 300;
26-
27-
public static Integer MODIFY_LOCAL_CLUSTER = 350;
28-
29-
// Module code may depend on schemas, but not vice-versa.
30-
public static Integer LOAD_SCHEMAS = 350;
31-
32-
// Modules have to be loaded after the REST API server has been updated, for if the deployer is expecting to load
33-
// modules via SSL, then the REST API server must already be configured with a certificate template
34-
public static Integer LOAD_MODULES = 400;
35-
36-
// The modules database must exist before we deploy amps
37-
public static Integer DEPLOY_AMPS = 450;
38-
39-
public static Integer DEPLOY_TRIGGERS = 700;
5+
public static Integer DEPLOY_GROUPS = 5;
6+
7+
public static Integer DEPLOY_PRIVILEGES = 10;
8+
public static Integer DEPLOY_ROLES = 20;
9+
public static Integer DEPLOY_USERS = 30;
10+
public static Integer DEPLOY_CERTIFICATE_TEMPLATES = 50;
11+
public static Integer GENERATE_TEMPORARY_CERTIFICATE = 55;
12+
public static Integer DEPLOY_CERTIFICATE_AUTHORITIES = 60;
13+
public static Integer DEPLOY_EXTERNAL_SECURITY = 70;
14+
public static Integer DEPLOY_PROTECTED_COLLECTIONS = 80;
15+
public static Integer DEPLOY_MIMETYPES = 90;
16+
17+
public static Integer DEPLOY_TRIGGERS_DATABASE = 100;
18+
public static Integer DEPLOY_SCHEMAS_DATABASE = 100;
19+
public static Integer DEPLOY_CONTENT_DATABASES = 120;
20+
public static Integer DEPLOY_OTHER_DATABASES = 130;
21+
public static Integer DEPLOY_FORESTS = 150;
22+
23+
public static Integer DEPLOY_REST_API_SERVERS = 200;
24+
public static Integer UPDATE_REST_API_SERVERS = 250;
25+
public static Integer DEPLOY_OTHER_SERVERS = 300;
26+
27+
public static Integer MODIFY_LOCAL_CLUSTER = 350;
28+
29+
// Module code may depend on schemas, but not vice-versa.
30+
public static Integer LOAD_SCHEMAS = 350;
31+
32+
// Modules have to be loaded after the REST API server has been updated, for if the deployer is expecting to load
33+
// modules via SSL, then the REST API server must already be configured with a certificate template
34+
public static Integer LOAD_MODULES = 400;
35+
36+
// The modules database must exist before we deploy amps
37+
public static Integer DEPLOY_AMPS = 450;
38+
39+
public static Integer DEPLOY_TRIGGERS = 700;
4040

4141
public static Integer DEPLOY_TEMPORAL_AXIS = 750;
4242
public static Integer DEPLOY_TEMPORAL_COLLECTIONS = 751;
4343
public static Integer DEPLOY_TEMPORAL_COLLECTIONS_LSQT = 752;
4444

45-
public static Integer DEPLOY_SCHEDULED_TASKS = 800;
46-
47-
public static Integer DEPLOY_DEFAULT_PIPELINES = 900;
48-
public static Integer DEPLOY_PIPELINES = 905;
49-
public static Integer DEPLOY_DOMAINS = 910;
50-
public static Integer DEPLOY_CPF_CONFIGS = 920;
51-
52-
public static Integer DEPLOY_ALERT_CONFIGS = 950;
53-
public static Integer DEPLOY_ALERT_ACTIONS = 960;
54-
public static Integer DEPLOY_ALERT_RULES = 970;
55-
56-
public static Integer DEPLOY_FLEXREP_CONFIGS = 1000;
57-
public static Integer DEPLOY_FLEXREP_TARGETS = 1010;
58-
59-
public static Integer DEPLOY_SQL_VIEWS = 1100;
60-
61-
public static Integer DEPLOY_FOREST_REPLICAS = 1200;
62-
63-
// Undo constants
64-
public static Integer DELETE_GROUPS = 10000;
65-
66-
public static Integer DELETE_MIMETYPES = 9500;
67-
68-
public static Integer DELETE_USERS = 9000;
69-
public static Integer DELETE_CERTIFICATE_TEMPLATES = 9010;
70-
public static Integer DELETE_CERTIFICATE_AUTHORITIES = 9020;
71-
public static Integer DELETE_EXTERNAL_SECURITY = 9030;
72-
public static Integer DELETE_PROTECTED_COLLECTIONS = 9040;
73-
// Amps can reference roles, so must delete amps first
74-
public static Integer DELETE_AMPS = 9050;
75-
// Roles can reference privileges, so must delete roles first
76-
public static Integer DELETE_ROLES = 9060;
77-
public static Integer DELETE_PRIVILEGES = 9070;
78-
79-
/*
45+
public static Integer DEPLOY_SCHEDULED_TASKS = 800;
46+
47+
public static Integer DEPLOY_DEFAULT_PIPELINES = 900;
48+
public static Integer DEPLOY_PIPELINES = 905;
49+
public static Integer DEPLOY_DOMAINS = 910;
50+
public static Integer DEPLOY_CPF_CONFIGS = 920;
51+
52+
public static Integer DEPLOY_ALERT_CONFIGS = 950;
53+
public static Integer DEPLOY_ALERT_ACTIONS = 960;
54+
public static Integer DEPLOY_ALERT_RULES = 970;
55+
56+
public static Integer DEPLOY_FLEXREP_CONFIGS = 1000;
57+
public static Integer DEPLOY_FLEXREP_TARGETS = 1010;
58+
59+
public static Integer DEPLOY_SQL_VIEWS = 1100;
60+
61+
public static Integer DEPLOY_FOREST_REPLICAS = 1200;
62+
63+
// Undo constants
64+
public static Integer DELETE_GROUPS = 10000;
65+
66+
public static Integer DELETE_MIMETYPES = 9500;
67+
68+
public static Integer DELETE_USERS = 9000;
69+
public static Integer DELETE_CERTIFICATE_TEMPLATES = 9010;
70+
public static Integer DELETE_CERTIFICATE_AUTHORITIES = 9020;
71+
public static Integer DELETE_EXTERNAL_SECURITY = 9030;
72+
public static Integer DELETE_PROTECTED_COLLECTIONS = 9040;
73+
74+
// Roles can reference privileges, so must delete roles first
75+
public static Integer DELETE_ROLES = 9060;
76+
public static Integer DELETE_PRIVILEGES = 9070;
77+
78+
/*
8079
* This executes before databases are deleted, as deleting databases normally deletes the primary forests, so we
8180
* need to make sure the replicas are deleted first.
8281
*/
83-
public static Integer DELETE_FOREST_REPLICAS = 8000;
84-
85-
public static Integer DELETE_CONTENT_DATABASES = 8100;
86-
public static Integer DELETE_OTHER_DATABASES = 8120;
87-
public static Integer DELETE_TRIGGERS_DATABASE = 8140;
88-
public static Integer DELETE_SCHEMAS_DATABASE = 8160;
82+
public static Integer DELETE_FOREST_REPLICAS = 8000;
83+
84+
public static Integer DELETE_CONTENT_DATABASES = 8100;
85+
public static Integer DELETE_OTHER_DATABASES = 8120;
86+
public static Integer DELETE_TRIGGERS_DATABASE = 8140;
87+
public static Integer DELETE_SCHEMAS_DATABASE = 8160;
88+
89+
public static Integer DELETE_REST_API_SERVERS = 7000;
90+
public static Integer DELETE_OTHER_SERVERS = 7010;
8991

90-
public static Integer DELETE_REST_API_SERVERS = 7000;
91-
public static Integer DELETE_OTHER_SERVERS = 7010;
92+
// Amps can reference roles and databases, so must delete amps before both (and before deleting REST API servers
93+
// too, which may delete databases)
94+
public static Integer DELETE_AMPS = 2000;
9295

93-
public static Integer DELETE_SCHEDULED_TASKS = 1000;
96+
public static Integer DELETE_SCHEDULED_TASKS = 1000;
9497
}

0 commit comments

Comments
 (0)