36f9d8076a11dde5aee42a44d9060d7b9d548a26
[sdc.git] / catalog-ui / configurations / menu.js
1 const SDC_MENU_CONFIG = {
2     "roles":{
3         "ADMIN":{
4             "title": "Admin's Workspace",
5             "pages":[],
6             "states":{
7                 "NOT_CERTIFIED_CHECKOUT":{
8                     "ANY":[
9                         {"text":"Submit for Testing","action":"changeLifecycleState", "url":"lifecycleState/certificationRequest" , "emailModal": "lifecycleState/CERTIFICATIONREQUEST"}
10                     ]
11                 },
12                 "NOT_CERTIFIED_CHECKIN": {
13                     "ANY": [
14                         {"text": "Submit for Testing", "action": "changeLifecycleState", "url": "lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"}
15                     ]
16                 },
17                 "READY_FOR_CERTIFICATION": {
18                     "ANY":[
19                     ]
20                 },
21                 "CERTIFICATION_IN_PROGRESS":{
22                     "ANY":[
23                     ]
24                 },
25                 "CERTIFIED":{
26                     "ANY":[
27                     ]
28                 }
29             }
30         },
31         "DESIGNER":{
32             "title": "Designer's Workspace",
33             "pages":[],
34             "dashboard": {
35                 "showCreateNew": true
36             },
37             "changeLifecycleStateButtons":{
38                 "NOT_CERTIFIED_CHECKOUT":{  "submitForTesting": {"text":"Submit for Testing", "url":"lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"},
39                                             "checkIn":          {"text":"Check in",  "url":"lifecycleState/CHECKIN", "confirmationModal": "lifecycleState/CHECKIN"},
40                                             "deleteVersion":    {"text":"Delete Version", "url":"lifecycleState/UNDOCHECKOUT", "alertModal": "lifecycleState/UNDOCHECKOUT"}
41                 },
42                 "CERTIFIED":{               "checkOut":         {"text":"Check Out",  "url":"lifecycleState/CHECKOUT"}
43                 },
44                 "NOT_CERTIFIED_CHECKIN":{   "submitForTesting": {"text":"Submit for Testing", "url":"lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"},
45                                             "checkOut":         {"text":"Check Out",  "url":"lifecycleState/CHECKOUT"}
46                 }
47             },
48             "states":{
49                 "NOT_CERTIFIED_CHECKOUT":{
50                     "ANY":[
51                         {"text":"Submit for Testing","action":"changeLifecycleState", "url":"lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"}
52                     ]
53                 },
54                 "NOT_CERTIFIED_CHECKIN": {
55                     "ANY": [
56                         {"text": "Submit for Testing", "action": "changeLifecycleState", "url": "lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"}
57                     ]
58                 },
59                 "READY_FOR_CERTIFICATION": {
60                     "ANY":[
61                     ]
62                 },
63                 "CERTIFICATION_IN_PROGRESS":{
64                     "ANY":[
65                     ]
66                 },
67                 "CERTIFIED":{
68                     "ANY":[
69                     ]
70                 }
71             },
72             "folder":[
73                 {"text": "Active Projects",     "groupname": "IN_PROGRESS" },
74                 {"text": "Check Out",         "group": "IN_PROGRESS", "state": "NOT_CERTIFIED_CHECKOUT"},
75                 {"text": "Check In",          "group": "IN_PROGRESS", "state": "NOT_CERTIFIED_CHECKIN"},
76                 {"text": "Followed Projects",   "groupname": "FOLLOWING" },
77                 {"text": "Ready For Testing",   "group": "FOLLOWING", "state": "READY_FOR_CERTIFICATION"},
78                 {"text": "In Testing", "group": "FOLLOWING", "state": "CERTIFICATION_IN_PROGRESS"},
79                 {"text": "Certified",           "group": "FOLLOWING", "state": "CERTIFIED"}
80             ]
81
82         },
83         "TESTER":{
84             "title": "Tester's Workspace",
85             "pages":[],
86             "dashboard": {
87                 "showCreateNew": false
88             },
89             "changeLifecycleStateButtons":{
90                 "READY_FOR_CERTIFICATION":{     "startTesting": {"text":"Start Testing",  "url":"lifecycleState/startCertification"}
91
92                 },
93                 "CERTIFICATION_IN_PROGRESS":{   "accept":       {"text":"Accept", "url":"lifecycleState/certify", "confirmationModal": "lifecycleState/certify"},
94                                                 "reject":       {"text":"Reject", "url":"lifecycleState/failCertification", "confirmationModal": "lifecycleState/failCertification"},
95                                                 "cancel":       {"text":"Cancel","action":"changeLifecycleState", "url":"lifecycleState/cancelCertification", "confirmationModal": "lifecycleState/cancel"}
96                 }
97             },
98             "states": {
99                 "READY_FOR_CERTIFICATION":{
100                     "ANY":[
101                         {"text":"Start Testing","action":"changeLifecycleState", "url":"lifecycleState/startCertification"}
102                     ]
103                 },
104                 "CERTIFICATION_IN_PROGRESS":{
105                     "ANY":[
106                         {"text":"Accept","action":"changeLifecycleState", "url":"lifecycleState/certify", "confirmationModal": "lifecycleState/certify"},
107                         {"text":"Reject","action":"changeLifecycleState", "url":"lifecycleState/failCertification", "confirmationModal": "lifecycleState/failCertification"},
108                         {"text":"Cancel","action":"changeLifecycleState", "url":"lifecycleState/cancelCertification", "confirmationModal": "lifecycleState/cancel" }
109                     ]
110                 }
111             },
112             "folder":[
113                 {"text": "Active Projects",     "groupname": "FOLLOWING" },
114                 {"text": "Ready For Testing",   "group": "FOLLOWING", "state": "READY_FOR_CERTIFICATION"},
115                 {"text": "In Testing", "group": "FOLLOWING", "state": "CERTIFICATION_IN_PROGRESS"}
116             ]
117         },
118         "OPS":{
119             "title": "Operations Workspace",
120             "pages":[],
121             "dashboard": {
122                 "showCreateNew": false
123             },
124             "changeLifecycleStateButtons":{
125                 "DISTRIBUTION_APPROVED":{   "distribute":   {"text":"Distribute",  "url":"distribution/PROD/activate", "conformanceLevelModal": { "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject" }},
126                                             "monitor":      {"text":"Monitor", "disabled":true}
127                 },
128                 "DISTRIBUTED":{             "redistribute": {"text":"Redistribute", "url":"distribution/PROD/activate", "conformanceLevelModal": { "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject" }},
129                                             "monitor":      {"text":"Monitor", "url":"distribution-state/monitor"}
130                 }
131             },
132             "states": {
133                 "CERTIFIED": {
134                     "DISTRIBUTION_APPROVED": [
135                         {"text": "Distribute","action":"changeLifecycleState", "url":"distribution/PROD/activate"}
136                     ],
137                     "DISTRIBUTED": [
138                         {"text": "Monitor","action":"openDistributionModal", "url":"distribution-state/monitor"},
139                         {"text": "Redistribute","action":"changeLifecycleState", "url":"distribution/PROD/activate"}
140                     ]
141                 }
142             },
143             "folder":[
144                 {"text": "Active Projects",         "groupname": "FOLLOWING" },
145                 {"text": "Waiting For Distribution",  "group": "FOLLOWING", "state": "CERTIFIED", "dist": "DISTRIBUTION_APPROVED"},
146                 {"text": "Distributed",    "group": "FOLLOWING", "state": "CERTIFIED", "dist": "DISTRIBUTED"}
147             ]
148         },
149         "GOVERNOR":{
150             "title": "Governance Rep's Workspace",
151             "pages":[],
152             "dashboard": {
153                 "showCreateNew": false
154             },
155             "changeLifecycleStateButtons":{
156                 "DISTRIBUTION_NOT_APPROVED":{   "approve":  {"text":"Approve", "url":"distribution-state/approve", "confirmationModal": "distribution-state/approve", "conformanceLevelModal": { "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject" }},
157                                                 "reject":   {"text":"Reject", "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject"}
158                 },
159                 "DISTRIBUTION_APPROVED":{       "reject":   {"text":"Reject", "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject"}
160                 },
161                 "DISTRIBUTED": {                "reject":   {"text":"Reject", "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject"}
162                 },
163                 "DISTRIBUTION_REJECTED": {      "approve":  {"text": "Approve", "url": "distribution-state/approve", "confirmationModal": "distribution-state/approve", "conformanceLevelModal": { "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject" }}
164                 }
165             },
166             "states": {
167                 "CERTIFIED": {
168                     "DISTRIBUTION_NOT_APPROVED": [
169                         {"text":"Approve","action":"changeLifecycleState", "url":"distribution-state/approve", "confirmationModal": "distribution-state/approve"},
170                         {"text":"Reject","action":"changeLifecycleState", "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject"}
171                     ],
172                     "DISTRIBUTION_APPROVED": [
173                         {"text":"Reject","action":"changeLifecycleState", "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject"}
174                     ],
175                     "DISTRIBUTED": [
176                         {"text":"Reject","action":"changeLifecycleState", "url":"distribution-state/reject", "confirmationModal": "distribution-state/reject"}
177                     ],
178                     "DISTRIBUTION_REJECTED": [
179                         {"text":"Approve","action":"changeLifecycleState", "url":"distribution-state/approve", "confirmationModal": "distribution-state/approve"}
180                     ]
181                 }
182             },
183             "folder":[
184                 {"text": "Active Projects",  "groupname": "FOLLOWING" },
185                 {"text": "Waiting For Approval",  "group": "FOLLOWING", "state": "CERTIFIED", "dist": "DISTRIBUTION_NOT_APPROVED"},
186                 {"text": "Distribution Rejected", "group": "FOLLOWING", "state": "CERTIFIED", "dist": "DISTRIBUTION_REJECTED"},
187                 {"text": "Distribution Approved", "group": "FOLLOWING", "state": "CERTIFIED", "dist": "DISTRIBUTION_APPROVED,DISTRIBUTED"}
188
189             ]
190         }
191     },
192     "confirmationMessages": {
193         "lifecycleState/CHECKIN": {"showComment":true, "title": "Check in confirmation", "message": "Please add comment and confirm the check in."},
194         "lifecycleState/CHECKOUT": {"showComment":true, "title": "Check out confirmation", "message": "Please add comment and confirm the check out."},
195         "lifecycleState/certify": {"showComment":true, "title": "Certification confirmation", "message": "Please add comment and confirm test results."},
196         "lifecycleState/cancel": {"showComment":true, "title": "Cancel test", "message": "Please add comment and cancel test."},
197         "lifecycleState/failCertification": {"showComment":true, "title": "Rejection confirmation", "message": "Please add comment and confirm test results."},
198         "lifecycleState/CERTIFICATIONREQUEST": {"showComment":true, "title": "Submit for testing", "message": "Please add comment and submit for testing."},
199         "distribution-state/approve": {"showComment":true, "title": "Distribution confirmation", "message": "Please add comment and confirm %1 approval for distribution."},
200         "distribution-state/reject": {"showComment":true, "title": "Rejection confirmation", "message": "Please add comment and confirm %1 rejection for distribution."},
201         "updateTemplate": {"showComment":false, "title": "Update Template Confirmation", "message": "Modifying the Template might cause losing of previous information"}
202     },
203     "alertMessages": {
204         "lifecycleState/UNDOCHECKOUT": {"title": "Delete Version Confirmation", "message": "Are you sure you want to delete this version?"},
205         "exitWithoutSaving": {"title": "Exit Without Saving Confirmation", "message": "All unsaved changes will be lost. Are you sure you want to exit this page?"},
206         "deleteInstance": {"title": "Delete Confirmation", "message": "Are you sure you would like to delete %1 ?"},
207         "deleteInput": {"title": "Delete Confirmation", "message": "Are you sure you would like to delete %1 ?"}
208     },
209     "statuses": {
210         "inDesign": {
211             "name": "In Design",
212             "values": [
213                 "NOT_CERTIFIED_CHECKOUT",
214                 "NOT_CERTIFIED_CHECKIN"
215             ]
216         },
217         "readyForCertification": {
218             "name": "Ready For Testing",
219             "values": ["READY_FOR_CERTIFICATION"]
220         },
221         "inCertification": {
222             "name": "In Testing",
223             "values": ["CERTIFICATION_IN_PROGRESS"]
224         },
225         "certified": {
226             "name": "Certified",
227             "values": ["CERTIFIED"]
228         },
229         "distributed": {
230             "name": "Distributed",
231             "values": ["DISTRIBUTED"]
232         }
233     },
234     "categoriesDictionary": {
235         "Mobility": "Application Layer 4+",
236         "Network L1-3": "Network Layer 2-3",
237         "Network L4": "Network Layer 4+",
238         "VoIP Call Control": "Application Layer 4+"
239     },
240     "catalogMenuItem":{
241         "DESIGNER":{
242             "states":{
243                 "NOT_CERTIFIED_CHECKOUT":{
244                     "ANY":[
245                         {"text":"Submit for Testing","action":"changeLifecycleState", "url":"lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"}
246                     ],
247                     "NOT_OWNER":[
248                     ]
249                 },
250                 "NOT_CERTIFIED_CHECKIN": {
251                     "ANY": [
252                         {"text": "Submit for Testing", "action": "changeLifecycleState", "url": "lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"}
253                     ]
254                 },
255                 "READY_FOR_CERTIFICATION": {
256                     "ANY":[
257                     ]
258                 },
259                 "CERTIFICATION_IN_PROGRESS":{
260                     "ANY":[
261                     ]
262                 },
263                 "CERTIFIED":{
264                     "ANY":[
265                     ]
266                 }
267
268             }
269         },
270         "OTHER":{
271             "states":{
272                 "ANY":{
273                     "ANY":[
274                     ]
275                 }
276             }
277         }
278     },
279     "LifeCycleStatuses":{
280         "NOT_CERTIFIED_CHECKOUT":    { "text":"In Design Check Out", "icon": "checkout-editable-status-icon"},
281         "NOT_CERTIFIED_CHECKIN" :    { "text":"In Design Check In", "icon": "checkin-status-icon "},
282         "READY_FOR_CERTIFICATION":   { "text":"Ready for testing"},
283         "CERTIFICATION_IN_PROGRESS": { "text":"In Testing"},
284         "CERTIFIED":                 { "text":"Certified", "icon": "checkin-status-icon "}
285     },
286     "DistributionStatuses":{
287         "DISTRIBUTION_NOT_APPROVED": { "text":"Waiting For Distribution"},
288         "DISTRIBUTION_APPROVED" :    { "text":"Distribution Approved"},
289         "DISTRIBUTION_REJECTED":     { "text":"Distribution Rejected"},
290         "DISTRIBUTED":               { "text":"Distributed"}
291     },
292     "canvas_buttons":{
293         "checkIn":          {"text":"Check in","action":"changeLifecycleState", "url":"lifecycleState/CHECKIN", "confirmationModal": "lifecycleState/CHECKIN"},
294         "submitForTesting": {"text":"Submit for Testing","action":"changeLifecycleState", "url":"lifecycleState/certificationRequest", "emailModal": "lifecycleState/CERTIFICATIONREQUEST"},
295         "deleteVersion":    {"text":"Delete Version", "action":"changeLifecycleState", "url":"lifecycleState/UNDOCHECKOUT", "alertModal": "lifecycleState/UNDOCHECKOUT"}
296     },
297
298     "component_workspace_menu_option": {
299         "VFC":[
300             {"text":"General", "action":"onMenuItemPressed", "state": "workspace.general"},
301             {"text":"Deployment Artifact", "action":"onMenuItemPressed", "state": "workspace.deployment_artifacts"},
302             {"text":"Information Artifact", "action":"onMenuItemPressed", "state": "workspace.information_artifacts"},
303             {"text":"TOSCA Artifacts", "action":"onMenuItemPressed", "state": "workspace.tosca_artifacts"},
304             {"text":"Properties", "action":"onMenuItemPressed", "state": "workspace.properties"},
305             {"text":"Attributes", "action":"onMenuItemPressed", "state": "workspace.attributes"},
306             {"text":"Req. & Capabilities", "action":"onMenuItemPressed", "state": "workspace.reqAndCap"},
307             {"text":"Activity Log", "action":"onMenuItemPressed", "state": "workspace.activity_log"}
308         ],
309         "VL":[
310             {"text":"General", "action":"onMenuItemPressed", "state": "workspace.general"},
311             {"text":"Deployment Artifact", "action":"onMenuItemPressed", "state": "workspace.deployment_artifacts"},
312             {"text":"Information Artifact", "action":"onMenuItemPressed", "state": "workspace.information_artifacts"},
313             {"text":"TOSCA Artifacts", "action":"onMenuItemPressed", "state": "workspace.tosca_artifacts"},
314             {"text":"Properties", "action":"onMenuItemPressed", "state": "workspace.properties"},
315             {"text":"Attributes", "action":"onMenuItemPressed", "state": "workspace.attributes"},
316             {"text":"Req. & Capabilities", "action":"onMenuItemPressed", "state": "workspace.reqAndCap"},
317             {"text":"Activity Log", "action":"onMenuItemPressed", "state": "workspace.activity_log"}
318         ],
319         "CP":[
320             {"text":"General", "action":"onMenuItemPressed", "state": "workspace.general"},
321             {"text":"Deployment Artifact", "action":"onMenuItemPressed", "state": "workspace.deployment_artifacts"},
322             {"text":"Information Artifact", "action":"onMenuItemPressed", "state": "workspace.information_artifacts"},
323             {"text":"TOSCA Artifacts", "action":"onMenuItemPressed", "state": "workspace.tosca_artifacts"},
324             {"text":"Properties", "action":"onMenuItemPressed", "state": "workspace.properties"},
325             {"text":"Attributes", "action":"onMenuItemPressed", "state": "workspace.attributes"},
326             {"text":"Req. & Capabilities", "action":"onMenuItemPressed", "state": "workspace.reqAndCap"},
327             {"text":"Activity Log", "action":"onMenuItemPressed", "state": "workspace.activity_log"}
328         ],
329         "VF":[
330             {"text":"General", "action":"onMenuItemPressed", "state": "workspace.general"},
331             {"text":"Deployment Artifact", "action":"onMenuItemPressed", "state": "workspace.deployment_artifacts"},
332             {"text":"Information Artifact", "action":"onMenuItemPressed", "state": "workspace.information_artifacts"},
333             {"text":"TOSCA Artifacts", "action":"onMenuItemPressed", "state": "workspace.tosca_artifacts"},
334             // {"text":"Properties", "action":"onMenuItemPressed", "state": "workspace.properties"},
335             {"text":"Composition", "action":"onMenuItemPressed", "state": "workspace.composition.details"},
336             {"text":"Activity Log", "action":"onMenuItemPressed", "state": "workspace.activity_log"},
337             {"text":"Deployment", "action":"onMenuItemPressed", "state": "workspace.deployment"},
338             // {"text":"Inputs", "action":"onMenuItemPressed", "state": "workspace.resource_inputs"},
339             {"text":"Properties Assignment", "action":"onMenuItemPressed", "state": "workspace.properties_assignment"}
340         ],
341         "PNF":[
342             {"text":"General", "action":"onMenuItemPressed", "state": "workspace.general"},
343             {"text":"Information Artifact", "action":"onMenuItemPressed", "state": "workspace.information_artifacts"},
344             {"text":"TOSCA Artifacts", "action":"onMenuItemPressed", "state": "workspace.tosca_artifacts"},
345             {"text":"Composition", "action":"onMenuItemPressed", "state": "workspace.composition.details"},
346             {"text":"Activity Log", "action":"onMenuItemPressed", "state": "workspace.activity_log"},
347             {"text":"Properties Assignment", "action":"onMenuItemPressed", "state": "workspace.properties_assignment"}
348         ],
349         "SERVICE":[
350             {"text":"General", "action":"onMenuItemPressed", "state": "workspace.general"},
351             {"text":"TOSCA Artifacts", "action":"onMenuItemPressed", "state": "workspace.tosca_artifacts"},
352             {"text":"Composition", "action":"onMenuItemPressed", "state": "workspace.composition.details"},
353             {"text":"Activity Log", "action":"onMenuItemPressed", "state": "workspace.activity_log"},
354             {"text":"Management Workflow", "action":"onMenuItemPressed", "state": "workspace.management_workflow"},
355             {"text":"Network Call Flow ", "action":"onMenuItemPressed", "state": "workspace.network_call_flow"},
356             {"text":"Monitor ", "action":"onMenuItemPressed", "state": "workspace.distribution", "disabledRoles": ["ADMIN", "TESTER", "GOVERNOR", "DESIGNER"]},
357             {"text":"Deployment", "action":"onMenuItemPressed", "state": "workspace.deployment"},
358             // {"text":"Inputs", "action":"onMenuItemPressed", "state": "workspace.service_inputs"},
359             {"text":"Properties Assignment", "action":"onMenuItemPressed", "state": "workspace.properties_assignment"}
360         ]
361     }
362
363 }
364
365 module.exports = SDC_MENU_CONFIG;