]> git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.security.ui.rap/plugin.xml
re-comment default menu in rap workbench.
[lgpl/argeo-commons.git] / org.argeo.security.ui.rap / plugin.xml
1 <?xml version="1.0" encoding="UTF-8"?>
2 <?eclipse version="3.4"?>
3 <plugin>
4 <extension
5 point="org.eclipse.rap.ui.entrypoint">
6 <entrypoint
7 id="org.argeo.security.ui.rap.secureEntryPoint"
8 class="org.argeo.security.ui.rap.SecureEntryPoint"
9 path="/node"
10 brandingId="org.argeo.security.ui.rap.defaultBranding">
11 </entrypoint>
12 <entrypoint
13 id="org.argeo.security.ui.rap.secureEntryPoint"
14 class="org.argeo.security.ui.rap.SecureEntryPoint"
15 path="/secureWebUi"
16 brandingId="org.argeo.security.ui.rap.defaultBranding">
17 </entrypoint>
18 <entrypoint
19 id="org.argeo.security.ui.rap.anonymousEntryPoint"
20 class="org.argeo.security.ui.rap.AnonymousEntryPoint"
21 path="/publicWebUi"
22 brandingId="org.argeo.security.ui.rap.defaultBranding">
23 </entrypoint>
24 <!-- <entrypoint
25 id="org.argeo.security.ui.rap.logoutEntryPoint"
26 class="org.argeo.security.ui.rap.LogoutEntryPoint"
27 path="/logout"
28 brandingId="org.argeo.security.ui.rap.logoutBranding">
29 </entrypoint> -->
30 <entrypoint
31 id="org.argeo.security.ui.rap.nullEntryPoint"
32 class="org.argeo.security.ui.rap.NullEntryPoint"
33 path="/nullEP">
34 </entrypoint>
35 </extension>
36
37 <extension
38 point="org.eclipse.rap.ui.branding">
39 <!-- themeId attribute is by default set to this value.
40 Left anyway to provide the pattern when defining a later
41 own default theme for Argeo Rap UIs.
42 corresponding theme is found in spite of the warning -->
43
44 <!--
45 body="branding/login.html"
46 body attribute pointing to an auto refresh page triggers weird side effects:
47 the whole workbench is re-loaded (like pressing on F5) every now and then.
48 Must be checked. Removed from the time being.-->
49 <branding
50 id="org.argeo.security.ui.rap.defaultBranding"
51 themeId="org.eclipse.rap.rwt.theme.Default"
52 title="Argeo Web UI"
53 favicon="branding/favicon.ico">
54 </branding>
55 <!-- we need a servlet with this name j_spring_security_logout
56 for the logout filter -->
57 <branding
58 id="org.argeo.security.ui.rap.logoutBranding"
59 title="Argeo Logout"
60 favicon="branding/favicon.ico"
61 body="branding/empty.html">
62 </branding>
63 </extension>
64
65 <!-- LOCAL THEMES - Use the following to extend or overwrite default theme -->
66 <!-- <extension
67 point="org.eclipse.rap.ui.themes">
68 <themeContribution
69 themeId="org.eclipse.rap.rwt.theme.Default"
70 file="theme/defaultExt.css" />
71 </extension> -->
72
73 <!-- <extension point="org.eclipse.ui.menus">
74 <menuContribution locationURI="toolbar:org.eclipse.ui.main.toolbar">
75 <toolbar id="org.argeo.security.ui.rap.userToolbar">
76 <command
77 commandId="org.argeo.security.ui.rap.mainMenuCommand"
78 icon="icons/main.gif"
79 id="org.argeo.security.ui.rap.mainMenu"
80 style="pulldown">
81 </command>
82 <command commandId="org.eclipse.ui.file.save"/>
83 <command commandId="org.eclipse.ui.file.saveAll"/>
84 </toolbar>
85 </menuContribution>
86 <menuContribution locationURI="menu:org.argeo.security.ui.rap.mainMenu">
87 <command
88 commandId="org.argeo.security.ui.rap.userMenuCommand"
89 icon="icons/home.gif"
90 id="org.argeo.security.ui.rap.userMenu">
91 </command>
92 <command
93 commandId="org.eclipse.ui.window.preferences"
94 icon="icons/preferences.png"/>
95 <command
96 commandId="org.argeo.security.ui.rap.openChangePasswordDialog"
97 icon="icons/password.gif"
98 label="Change password"/>
99 <separator
100 name="org.argeo.security.ui.rap.beforeFile"
101 visible="true">
102 </separator>
103 <command
104 commandId="org.eclipse.ui.file.closeAll"
105 icon="icons/closeAll.gif"/>
106 <command commandId="org.eclipse.ui.file.save"/>
107 <command commandId="org.eclipse.ui.file.saveAll"/>
108 <separator
109 name="org.argeo.security.ui.rap.beforeExit"
110 visible="true">
111 </separator>
112 <command commandId="org.eclipse.ui.file.exit" icon="icons/exit.png"/>
113 </menuContribution>
114 </extension> -->
115
116 <!--<command commandId="org.eclipse.ui.views.showView"/>-->
117 <!--<command commandId="org.eclipse.ui.perspectives.showPerspective"/>-->
118
119
120 <!-- COMMANDS -->
121 <extension point="org.eclipse.ui.commands">
122 <command
123 id="org.argeo.security.ui.rap.openChangePasswordDialog"
124 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
125 name="Change Password">
126 </command>
127 <command
128 id="org.argeo.security.ui.rap.mainMenuCommand"
129 defaultHandler="org.argeo.security.ui.commands.OpenHomePerspective"
130 name="Main">
131 </command>
132
133 <!-- Register a default command that enable an "open file" action in a single sourced application -->
134 <command
135 defaultHandler="org.argeo.eclipse.spring.SpringExtensionFactory"
136 id="org.argeo.security.ui.specific.openFile"
137 name="OpenFile">
138 <commandParameter
139 id="param.fileName"
140 name="The name of the file to open (optional)">
141 </commandParameter>
142 <commandParameter
143 id="param.fileURI"
144 name="The URI of this file on the server">
145 </commandParameter>
146 <commandParameter
147 id="param.filePath"
148 name="The absolute path of this file on the server file system">
149 </commandParameter>
150 </command>
151 </extension>
152
153 <!-- SERVICE HANDLERS -->
154 <extension point="org.eclipse.rap.ui.serviceHandler">
155 <!-- The required rap specific handler to call the open file command over the internet-->
156 <serviceHandler
157 class="org.argeo.eclipse.ui.specific.OpenFileService"
158 id="org.argeo.security.ui.specific.openFileService">
159 </serviceHandler>
160 </extension>
161
162 <extension
163 point="org.eclipse.ui.activities">
164 <activity
165 description="Anonymous"
166 id="org.argeo.security.ui.rap.anonymousActivity"
167 name="Anonymous">
168 <enabledWhen>
169 <with variable="roles">
170 <iterate ifEmpty="false" operator="or">
171 <equals value="ROLE_ANONYMOUS" />
172 </iterate>
173 </with>
174 </enabledWhen>
175 </activity>
176 <activity
177 description="Not anonymous"
178 id="org.argeo.security.ui.rap.notAnonymousActivity"
179 name="NotAnonymous">
180 <enabledWhen>
181 <not>
182 <with variable="roles">
183 <iterate ifEmpty="false" operator="or">
184 <equals value="ROLE_ANONYMOUS" />
185 </iterate>
186 </with>
187 </not>
188 </enabledWhen>
189 </activity>
190 <activityPatternBinding
191 activityId="org.argeo.security.ui.rap.notAnonymousActivity"
192 pattern="org.argeo.security.ui.rap/org.argeo.security.ui.rap.userMenuCommand"/>
193 <activityPatternBinding
194 activityId="org.argeo.security.ui.rap.notAnonymousActivity"
195 pattern="org.argeo.security.ui.rap/org.eclipse.ui.window.preferences"/>
196 <activityPatternBinding
197 activityId="org.argeo.security.ui.rap.notAnonymousActivity"
198 pattern="org.argeo.security.ui.rap/org.argeo.security.ui.rap.openChangePasswordDialog"/>
199 </extension>
200 </plugin>