forked from UtrechtUniversity/yoda-ruleset
-
Notifications
You must be signed in to change notification settings - Fork 0
/
iiConstants.r
100 lines (82 loc) · 2.95 KB
/
iiConstants.r
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# \file
# \brief Constants for the research rules. If architecture changes, only
# this file needs be adapted.
#
# \author Paul Frederiks
# \author Lazlo Westerhof
# \copyright Copyright (c) 2016-2018, Utrecht University. All rights reserved.
# \license GPLv3, see LICENSE.
# \constant GENQMAXROWS Maximum number of rows returned by an iRODS GenQuery or msiGetMoreRows call
GENQMAXROWS = 256
# \constant IIGROUPPREFIX
IIGROUPPREFIX = "research-"
# \constant IIVAULTPREFIX
IIVAULTPREFIX = "vault-"
# \constant IISCHEMACOLLECTION
IISCHEMACOLLECTION = UUSYSTEMCOLLECTION ++ "/schemas"
# \constant IIMETADATAJSONNAME Name of metadata JSON file
IIJSONMETADATA = "yoda-metadata.json"
# \constant IIMETADATAXMLNAME
IIMETADATAXMLNAME = "yoda-metadata.xml"
# \constant IIJSONNAME Name of the metadata JSON
IIJSONNAME = "metadata.json"
# \constant IIJSONUINAME Name of the JSON UI schema
IIJSONUINAME = "uischema.json"
# \constant IIPUBLICATIONCOLLECTION
IIPUBLICATIONCOLLECTION = UUSYSTEMCOLLECTION ++ "/publication"
# \constant IILOCKATTRNAME
IILOCKATTRNAME = UUORGMETADATAPREFIX ++ "lock"
# \constant IISTATUSATTRNAME
IISTATUSATTRNAME = UUORGMETADATAPREFIX ++ "status"
# \constant IICOPYPARAMSNAME
IICOPYPARAMSNAME = UUORGMETADATAPREFIX ++ "copy_to_vault_params"
# \constant IIVAULTSTATUSATTRNAME
IIVAULTSTATUSATTRNAME = UUORGMETADATAPREFIX ++ "vault_status"
# \brief All research folder states.
FOLDER = "";
LOCKED = "LOCKED";
SUBMITTED = "SUBMITTED";
ACCEPTED = "ACCEPTED";
REJECTED = "REJECTED";
SECURED = "SECURED";
# \constant IIFOLDERTRANSITIONS
IIFOLDERTRANSITIONS = list((FOLDER, LOCKED),
(FOLDER, SUBMITTED),
(LOCKED, FOLDER),
(LOCKED, SUBMITTED),
(SUBMITTED, FOLDER),
(SUBMITTED, ACCEPTED),
(SUBMITTED, REJECTED),
(REJECTED, LOCKED),
(REJECTED, FOLDER),
(REJECTED, SUBMITTED),
(ACCEPTED, SECURED),
(SECURED, LOCKED),
(SECURED, FOLDER),
(SECURED, SUBMITTED))
# \brief All vault package states.
INCOMPLETE = "INCOMPLETE"
COMPLETE = "COMPLETE"
UNPUBLISHED = "UNPUBLISHED";
SUBMITTED_FOR_PUBLICATION = "SUBMITTED_FOR_PUBLICATION";
APPROVED_FOR_PUBLICATION = "APPROVED_FOR_PUBLICATION";
PUBLISHED = "PUBLISHED";
PENDING_DEPUBLICATION = "PENDING_DEPUBLICATION";
DEPUBLISHED = "DEPUBLISHED";
PENDING_REPUBLICATION = "PENDING_REPUBLICATION";
# \constant IIVAULTTRANSITIONS
IIVAULTTRANSITIONS = list((UNPUBLISHED, SUBMITTED_FOR_PUBLICATION),
(COMPLETE, SUBMITTED_FOR_PUBLICATION),
(SUBMITTED_FOR_PUBLICATION, APPROVED_FOR_PUBLICATION),
(SUBMITTED_FOR_PUBLICATION, UNPUBLISHED),
(APPROVED_FOR_PUBLICATION, PUBLISHED),
(PUBLISHED, PENDING_DEPUBLICATION),
(PENDING_DEPUBLICATION, DEPUBLISHED),
(DEPUBLISHED, PENDING_REPUBLICATION),
(PENDING_REPUBLICATION, PUBLISHED))
# \brief All cronjob states.
CRONJOB_PENDING = "CRONJOB_PENDING"
CRONJOB_PROCESSING = "CRONJOB_PROCESSING"
CRONJOB_RETRY = "CRONJOB_RETRY"
CRONJOB_UNRECOVERABLE = "CRONJOB_UNRECOVERABLE"
CRONJOB_OK = "CRONJOB_OK"