1 /*****************************************************************************
5 * Creation date 03.10.2012
6 * @author Author: Maria KRUCHININA
8 *****************************************************************************/
10 package org.splat.common.properties;
13 * Enumeration of all exception's code.
14 * Values are in the src/conf/log-messages.properties file.
15 * @author Maria KRUCHININA
18 public enum MessageKeyEnum {
21 * Lock reference already exists for user {0}.
23 LCK_000001("LCK-000001"),
25 * Lock reference does not exists.
27 LCK_000002("LCK-000002"),
29 * Lock reference protected and can be only deleted or updated by user {0}.
31 LCK_000003("LCK-000003"),
33 * Lock reference is timeout and could have been modified by user {0}.
35 LCK_000004("LCK-000004"),
37 * Unable to re-index the study #{0}, reason: {1}.
39 STD_000001("STD-000001"),
41 * The study #{0} is not found.
43 STD_000002("STD-000002"),
45 * Scenario doesn't contain the step number #{0}.
47 SCN_000001("SCN-000001"),
49 * Scenario doesn't contain the document #{0}.
51 SCN_000002("SCN-000002"),
53 * The existing file {0} has been deleted when check-in the scenario #{1}.
55 SCN_000003("SCN-000003"),
57 * Can not delete the existing destination file to move file from {0} to {1} when check-in the scenario #{2}.
59 SCN_000004("SCN-000004"),
61 * Can not move file from {0} to {1} when check-in the scenario #{2}.
63 SCN_000005("SCN-000005"),
65 * SCN-000006=Scenario #{0} is not found.
67 SCN_000006("SCN-000006"),
69 * SCN-000007=The user {0} does not participate in the scenario #{1}.
71 SCN_000007("SCN-000007"),
73 * SCN-000008=The scenario #{0} is already checked out by the user {1}.
75 SCN_000008("SCN-000008"),
77 * USR-000001=User {0} is not found in the database.
79 USR_000001("USR-000001"),
81 * Simulation context type "{0}" already exists.
83 KNT_000001("KNT-000001"),
85 * Simulation context type "{0}" already exists.
87 SCT_000001("SCT-000001"),
89 * Simulation context type name could not be blank.
91 SCT_000002("SCT-000002"),
93 * Document type "{0}" already exists.
95 DCT_000001("DCT-000001"),
97 * Can not delete the document "{0}" because it is used by other documents.
99 DCT_000002("DCT-000002"),
101 * DCT-000003=Can not save a document in {0} state. Check the validation cycle.
103 DCT_000003("DCT-000003"),
105 * Parameter {0} is invalid with value: {1}.
107 PRM_000001("PRM-000001"),
109 * Incompatible data: X-units or Y-units are not the same for all comparable studies.
111 IDT_000001("IDT-000001");
115 private final String _value;
118 * The enum constructor with param(s).
119 * @param value The value
121 MessageKeyEnum(final String value) {
127 * @see java.lang.Enum#toString()
130 public String toString() {