label="Switch User"
style="push">
</command>
+ <command
+ commandId="eu.etaxonomy.taxeditor.store.openPasswordWizzard"
+ label="Change Password"
+ style="push">
+ </command>
<separator
name="eu.etaxonomy.taxeditor.application.filemenu.login"
visible="true">
label="Edit"
style="push">
</command>
+ <command
+ commandId="eu.etaxonomy.taxeditor.store.datasource.clone"
+ label="Clone"
+ style="push">
+ </command>
<separator
name="eu.etaxonomy.taxeditor.store.datasource.separator"
visible="true">
</with>
</activeWhen>
</handler>
+ <handler
+ class="eu.etaxonomy.taxeditor.featuretree.OpenFeatureTreeEditorWizardHandler"
+ commandId="eu.etaxonomy.taxeditor.store.open.FeatureTreeEditorWizard">
+ <activeWhen>
+ <reference
+ definitionId="hasROLE_PROJECT_MANAGER">
+ </reference>
+ </activeWhen>
+ </handler>
+ <handler
+ class="eu.etaxonomy.taxeditor.handler.ShowLoginWindowHandler"
+ commandId="eu.etaxonomy.taxeditor.store.operations.showLoginWindow">
+ <enabledWhen>
+ <reference
+ definitionId="isUserLoggedIn">
+ </reference></enabledWhen>
+ </handler>
+ <handler
+ class="eu.etaxonomy.taxeditor.handler.OpenPasswordWizzardHandler"
+ commandId="eu.etaxonomy.taxeditor.store.openPasswordWizzard">
+ <enabledWhen>
+ <reference
+ definitionId="isUserLoggedIn">
+ </reference></enabledWhen>
+ </handler>
</extension>
<extension
name="Popup Menu Commands"
id="eu.etaxonomy.taxeditor.store.datasource.edit"
name="Edit Datasource">
</command>
+ <command
+ defaultHandler="eu.etaxonomy.taxeditor.view.datasource.handler.CloneDataSourceHandler"
+ id="eu.etaxonomy.taxeditor.store.datasource.clone"
+ name="Clone Datasource">
+ </command>
<command
defaultHandler="eu.etaxonomy.taxeditor.view.datasource.handler.CreateDataSourceHandler"
id="eu.etaxonomy.taxeditor.store.datasource.create"
name="Update Datasource">
</command>
<command
- defaultHandler="eu.etaxonomy.taxeditor.handler.ShowLoginWindowHandler"
id="eu.etaxonomy.taxeditor.store.operations.showLoginWindow"
name="Show Login Window">
</command>
defaultHandler="eu.etaxonomy.taxeditor.editor.definedterm.handler.OpenDefinedTermEditorHandler"
id="eu.etaxonomy.taxeditor.store.openDefinedTermEditor"
name="Open Defined Term Editor">
- <commandParameter
- id="eu.etaxonomy.taxeditor.store.openDefinedTermEditor.parameter"
- name="inputType"
- optional="true">
- </commandParameter>
<commandParameter
id="eu.etaxonomy.taxeditor.store.openDefinedTermEditor.termTypeUuid"
name="inputType"
id="eu.etaxonomy.taxeditor.editor.definedTerms.newTermVocabulary"
name="New Term Vocabulary">
</command>
+ <command
+ id="eu.etaxonomy.taxeditor.store.open.FeatureTreeEditorWizard"
+ name="Open Feature Tree Editor Wizard">
+ </command>
+ <command
+ id="eu.etaxonomy.taxeditor.store.openPasswordWizzard"
+ name="Open Password Wizzard">
+ </command>
</extension>
<extension
point="org.eclipse.ui.importWizards">
id="eu.etaxonomy.taxeditor.io.import.tcs"
name="TCS">
</wizard>
-<!-- <wizard
+ <!-- <wizard
category="eu.etaxonomy.taxeditor.import.category.cdm"
class="eu.etaxonomy.taxeditor.io.wizard.JaxbImportWizard"
id="eu.etaxonomy.taxeditor.io.import.jaxb"
</test>
</with>
</definition>
+ <definition
+ id="isUserLoggedIn">
+ <with
+ variable="eu.etaxonomy.taxeditor.security.user">
+ <instanceof
+ value="eu.etaxonomy.cdm.model.common.User">
+ </instanceof>
+ </with>
+ </definition>
<definition
id="hasROLE_USER_MANAGER">
- <test
- args="ROLE_USER_MANAGER"
- property="eu.etaxonomy.taxeditor.security.permissionTester.hasRole">
- </test>
+ <with
+ variable="eu.etaxonomy.taxeditor.security.userRoles">
+ <iterate
+ ifEmpty="false"
+ operator="or">
+ <or>
+ <equals
+ value="ROLE_ADMIN">
+ </equals>
+ <equals
+ value="ROLE_USER_MANAGER">
+ </equals>
+ </or>
+ </iterate>
+ </with>
+ </definition>
+ <definition
+ id="hasROLE_PROJECT_MANAGER">
+ <with
+ variable="eu.etaxonomy.taxeditor.security.userRoles">
+ <iterate
+ ifEmpty="false"
+ operator="or">
+ <or>
+ <equals
+ value="ROLE_ADMIN">
+ </equals>
+ <equals
+ value="ROLE_PROJECT_MANAGER">
+ </equals>
+ </or>
+ </iterate>
+ </with>
</definition>
</extension>
<extension
activityId="eu.etaxonomy.taxeditor.store.activityUserManagement"
pattern="eu\.etaxonomy\.taxeditor\..*/.*.UserManagement">
</activityPatternBinding>
+ <activityPatternBinding
+ activityId="eu.etaxonomy.taxeditor.store.activityUserManagement"
+ pattern="eu\.etaxonomy\.taxeditor\..*/bulkeditor\.input\.group">
+ </activityPatternBinding>
+ <activity
+ description="ROLE_PROJECT_MANAGER dependent ui contributions"
+ id="eu.etaxonomy.taxeditor.store.activityProjectManagement"
+ name="ProjectManagement">
+ <enabledWhen>
+ <reference
+ definitionId="hasROLE_PROJECT_MANAGER">
+ </reference>
+ </enabledWhen>
+ </activity>
+ <activityPatternBinding
+ activityId="eu.etaxonomy.taxeditor.store.activityProjectManagement"
+ pattern="eu\.etaxonomy\.taxeditor\..*/eu\.etaxonomy\.taxeditor\..*\.definedTerm.*">
+ </activityPatternBinding>
+ <activityPatternBinding
+ activityId="eu.etaxonomy.taxeditor.store.activityProjectManagement"
+ pattern="eu.etaxonomy.taxeditor.bulkeditor/bulkeditor.menus.openmenu"
+ isEqualityPattern="true">
+ </activityPatternBinding>
+ <activityPatternBinding
+ activityId="eu.etaxonomy.taxeditor.store.activityProjectManagement"
+ pattern="eu.etaxonomy.taxeditor.bulkeditor/eu.etaxonomy.taxeditor.editor.definedTerm"
+ isEqualityPattern="true">
+ </activityPatternBinding>
+</extension>
+<extension
+ point="org.eclipse.ui.services">
+ <sourceProvider
+ provider="eu.etaxonomy.taxeditor.security.AuthenticationSourceProvider">
+ <variable
+ name="eu.etaxonomy.taxeditor.security.userRoles"
+ priorityLevel="workbench">
+ </variable>
+ </sourceProvider>
</extension>
-
</plugin>