]> git.argeo.org Git - lgpl/argeo-commons.git/blob - org.argeo.security.ui.admin/src/org/argeo/security/ui/admin/commands/UserBatchUpdate.java
Adapt commands to the new security model.
[lgpl/argeo-commons.git] / org.argeo.security.ui.admin / src / org / argeo / security / ui / admin / commands / UserBatchUpdate.java
1 /*
2 * Copyright (C) 2007-2012 Argeo GmbH
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16 package org.argeo.security.ui.admin.commands;
17
18 import org.eclipse.core.commands.AbstractHandler;
19 import org.eclipse.core.commands.ExecutionEvent;
20 import org.eclipse.core.commands.ExecutionException;
21
22 /** Launch a wizard to update various properties about users in JCR. */
23 public class UserBatchUpdate extends AbstractHandler {
24 // private Repository repository;
25 // private UserAdminService userAdminService;
26
27 public Object execute(ExecutionEvent event) throws ExecutionException {
28 // Session session = null;
29 // try {
30 // session = repository.login();
31 // UserBatchUpdateWizard userBatchUpdateWizard = new
32 // UserBatchUpdateWizard(
33 // session, userAdminService);
34 // WizardDialog dialog = new WizardDialog(
35 // HandlerUtil.getActiveShell(event), userBatchUpdateWizard);
36 // dialog.open();
37 // } catch (Exception e) {
38 // throw new ExecutionException("Cannot open wizard", e);
39 // } finally {
40 // JcrUtils.logoutQuietly(session);
41 // }
42 return null;
43 }
44
45 // public void setRepository(Repository repository) {
46 // this.repository = repository;
47 // }
48 //
49 // public void setUserAdminService(UserAdminService userAdminService) {
50 // this.userAdminService = userAdminService;
51 // }
52
53 // public void setJcrSecurityModel(JcrSecurityModel jcrSecurityModel) {
54 // this.jcrSecurityModel = jcrSecurityModel;
55 // }
56
57 }