-
Notifications
You must be signed in to change notification settings - Fork 12
/
iiConstants.r
68 lines (58 loc) · 1.93 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
# \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-2024, Utrecht University. All rights reserved.
# \license GPLv3, see LICENSE.
# \constant IIGROUPPREFIX
IIGROUPPREFIX = "research-"
# \constant IIVAULTPREFIX
IIVAULTPREFIX = "vault-"
# \constant IIMETADATAJSONNAME Name of metadata JSON file
IIJSONMETADATA = "yoda-metadata.json"
# \constant IILOCKATTRNAME
IILOCKATTRNAME = UUORGMETADATAPREFIX ++ "lock"
# \constant IISTATUSATTRNAME
IISTATUSATTRNAME = UUORGMETADATAPREFIX ++ "status"
# \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, FOLDER),
# Backwards compatibility for folders that hold deprecated SECURED status.
(SECURED, LOCKED),
(SECURED, FOLDER),
(SECURED, SUBMITTED))
# \brief All vault package states.
INCOMPLETE = "INCOMPLETE"
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";
# \brief All cronjob states.
CRONJOB_PENDING = "CRONJOB_PENDING"
CRONJOB_PROCESSING = "CRONJOB_PROCESSING"
CRONJOB_RETRY = "CRONJOB_RETRY"
CRONJOB_UNRECOVERABLE = "CRONJOB_UNRECOVERABLE"
CRONJOB_OK = "CRONJOB_OK"