]> git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.security.ui.rap/plugin.xml
a4d007367c1274b322cf673f2b4076a4d1bc4739
[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.views.showView"/>-->
113 <!--<command commandId="org.eclipse.ui.perspectives.showPerspective"/>-->
114 <command commandId="org.eclipse.ui.file.exit" icon="icons/exit.png"/>
115 </menuContribution>
116 </extension>
117
118 <!-- COMMANDS -->
119 <extension point="org.eclipse.ui.commands">
120 <command
121 id="org.argeo.security.ui.rap.openChangePasswordDialog"
122 defaultHandler="org.argeo.eclipse.spring.SpringCommandHandler"
123 name="Change Password">
124 </command>
125 <command
126 id="org.argeo.security.ui.rap.mainMenuCommand"
127 defaultHandler="org.argeo.security.ui.commands.OpenHomePerspective"
128 name="Main">
129 </command>
130
131 <!-- Register a default command that enable an "open file" action in a single sourced application -->
132 <command
133 defaultHandler="org.argeo.eclipse.spring.SpringExtensionFactory"
134 id="org.argeo.security.ui.specific.openFile"
135 name="OpenFile">
136 <commandParameter
137 id="param.fileName"
138 name="The name of the file to open (optional)">
139 </commandParameter>
140 <commandParameter
141 id="param.fileURI"
142 name="The URI of this file on the server">
143 </commandParameter>
144 <commandParameter
145 id="param.filePath"
146 name="The absolute path of this file on the server file system">
147 </commandParameter>
148 </command>
149 </extension>
150
151 <!-- SERVICE HANDLERS -->
152 <extension point="org.eclipse.rap.ui.serviceHandler">
153 <!-- The required rap specific handler to call the open file command over the internet-->
154 <serviceHandler
155 class="org.argeo.eclipse.ui.specific.OpenFileService"
156 id="org.argeo.security.ui.specific.openFileService">
157 </serviceHandler>
158 </extension>
159
160 <extension
161 point="org.eclipse.ui.activities">
162 <activity
163 description="Anonymous"
164 id="org.argeo.security.ui.rap.anonymousActivity"
165 name="Anonymous">
166 <enabledWhen>
167 <with variable="roles">
168 <iterate ifEmpty="false" operator="or">
169 <equals value="ROLE_ANONYMOUS" />
170 </iterate>
171 </with>
172 </enabledWhen>
173 </activity>
174 <activity
175 description="Not anonymous"
176 id="org.argeo.security.ui.rap.notAnonymousActivity"
177 name="NotAnonymous">
178 <enabledWhen>
179 <not>
180 <with variable="roles">
181 <iterate ifEmpty="false" operator="or">
182 <equals value="ROLE_ANONYMOUS" />
183 </iterate>
184 </with>
185 </not>
186 </enabledWhen>
187 </activity>
188 <activityPatternBinding
189 activityId="org.argeo.security.ui.rap.notAnonymousActivity"
190 pattern="org.argeo.security.ui.rap/org.argeo.security.ui.rap.userMenuCommand"/>
191 <activityPatternBinding
192 activityId="org.argeo.security.ui.rap.notAnonymousActivity"
193 pattern="org.argeo.security.ui.rap/org.eclipse.ui.window.preferences"/>
194 <activityPatternBinding
195 activityId="org.argeo.security.ui.rap.notAnonymousActivity"
196 pattern="org.argeo.security.ui.rap/org.argeo.security.ui.rap.openChangePasswordDialog"/>
197 </extension>
198 </plugin>