Salome HOME
Fixes for checkin and user creation.
[tools/siman.git] / Workspace / Siman-Common / src / org / splat / common / properties / MessageKeyEnum.java
1 /*****************************************************************************
2  * Company         OPEN CASCADE
3  * Application     SIMAN
4  * File            $Id$ 
5  * Creation date   03.10.2012
6  * @author         Author: Maria KRUCHININA
7  * @version        Revision: 
8  *****************************************************************************/
9
10 package org.splat.common.properties; 
11
12 /**
13  * Enumeration of all exception's code.
14  * Values are in the src/conf/log-messages.properties file.
15  * @author Maria KRUCHININA
16  *
17  */
18 public enum MessageKeyEnum {
19         
20         /**
21          * Lock reference already exists for user {2}.
22          */
23         LCK_000001("LCK-000001"),
24         /**
25          * Lock reference does not exists.
26          */
27         LCK_000002("LCK-000002"),
28         /**
29          * Lock reference protected and can be only deleted or updated by user {2}.
30          */
31         LCK_000003("LCK-000003"),
32         /**
33          * Lock reference is timeout and could have been modified by user {2}.
34          */
35         LCK_000004("LCK-000004"),
36         /**
37          * Unable to re-index the study #{1}, reason: {2}.
38          */
39         STD_000001("STD-000001"),
40         /**
41          * Scenario doesn't contain the step number #{1}.
42          */
43         SCN_000001("SCN-000001"),
44         /**
45          * Scenario doesn't contain the document #{1}.
46          */
47         SCN_000002("SCN-000002"),
48         /**
49          * The existing file {1} has been deleted when check-in the scenario #{2}.
50          */
51         SCN_000003("SCN-000003"),
52         /**
53          * Can not delete the existing destination file to move file from {1} to {2} when check-in the scenario #{3}.
54          */
55         SCN_000004("SCN-000004"),
56         /**
57          * Can not move file from {1} to {2} when check-in the scenario #{3}.
58          */
59         SCN_000005("SCN-000005"),
60         /**
61          * Simulation context type "{1}" already exists.
62          */
63         KNT_000001("KNT-000001"),
64         /**
65          * Knowledge element type "{1}" already exists.
66          */
67         SCT_000001("SCT-000001"),
68         /**
69          * Document type "{1}" already exists.
70          */
71         DCT_000001("DCT-000001");
72         
73         /**
74         * Value.
75         */
76         private final String _value;
77                 
78         /**
79         * The enum contructor with param(s).
80         * @param value The value
81         */
82         MessageKeyEnum(final String value) {
83                 this._value = value;
84         }
85          
86         /** 
87         * {@inheritDoc}
88         * @see java.lang.Enum#toString()
89         */
90         @Override
91         public String toString() {
92                 return this._value;
93         }
94
95 }