Project

General

Profile

« Previous | Next » 

Revision 87bae5e8

Added by Andreas Kohlbecker about 10 years ago

implementing #4120: User always needs to have the right to change password and hiding all user related menu contributions if no user is logged in

View differences:

eu.etaxonomy.taxeditor.store/plugin.xml
338 338
               label="Switch User"
339 339
               style="push">
340 340
         </command>
341
         <command
342
               commandId="eu.etaxonomy.taxeditor.store.openPasswordWizzard"
343
               label="Change Password"
344
               style="push">
345
         </command>
341 346
         <separator
342 347
               name="eu.etaxonomy.taxeditor.application.filemenu.login"
343 348
               visible="true">
......
470 475
            </reference>
471 476
         </activeWhen>
472 477
      </handler>
478
      <handler
479
            class="eu.etaxonomy.taxeditor.handler.ShowLoginWindowHandler"
480
            commandId="eu.etaxonomy.taxeditor.store.operations.showLoginWindow">
481
         <enabledWhen>
482
            <reference
483
                  definitionId="isUserLoggedIn">
484
            </reference></enabledWhen>
485
      </handler>
486
      <handler
487
            class="eu.etaxonomy.taxeditor.handler.OpenPasswordWizzardHandler"
488
            commandId="eu.etaxonomy.taxeditor.store.openPasswordWizzard">
489
         <enabledWhen>
490
            <reference
491
                  definitionId="isUserLoggedIn">
492
            </reference></enabledWhen>
493
      </handler>
473 494
   </extension>
474 495
   <extension
475 496
         name="Popup Menu Commands"
......
500 521
            name="Update Datasource">
501 522
      </command>
502 523
      <command
503
            defaultHandler="eu.etaxonomy.taxeditor.handler.ShowLoginWindowHandler"
504 524
            id="eu.etaxonomy.taxeditor.store.operations.showLoginWindow"
505 525
            name="Show Login Window">
506 526
      </command>
......
528 548
         id="eu.etaxonomy.taxeditor.store.open.FeatureTreeEditorWizard"
529 549
         name="Open Feature Tree Editor Wizard">
530 550
   	  </command>
551
      <command
552
            id="eu.etaxonomy.taxeditor.store.openPasswordWizzard"
553
            name="Open Password Wizzard">
554
      </command>
531 555
   </extension>
532 556
   <extension
533 557
         point="org.eclipse.ui.importWizards">
......
969 993
            </test>
970 994
         </with>
971 995
      </definition>
996
      <definition
997
            id="isUserLoggedIn">
998
            <with
999
               variable="eu.etaxonomy.taxeditor.security.user">
1000
               <instanceof
1001
                     value="eu.etaxonomy.cdm.model.common.User">
1002
               </instanceof>
1003
         </with>
1004
      </definition>
972 1005
      <definition
973 1006
            id="hasROLE_USER_MANAGER">
974 1007
            <with
......
1096 1129
<extension
1097 1130
      point="org.eclipse.ui.services">
1098 1131
   <sourceProvider
1099
         provider="eu.etaxonomy.taxeditor.security.RolesSourceProvider">
1132
         provider="eu.etaxonomy.taxeditor.security.AuthenticationSourceProvider">
1100 1133
      <variable
1101 1134
            name="eu.etaxonomy.taxeditor.security.userRoles"
1102 1135
            priorityLevel="workbench">

Also available in: Unified diff