root / src / gr / grnet / pithos / web / client / commands / AddUserCommand.java @ e6e9f6e6
History | View | Annotate | Download (2.4 kB)
1 | 4baffab1 | Christos Stathis | /*
|
---|---|---|---|
2 | e6e9f6e6 | Christos KK Loverdos | * Copyright 2011-2013 GRNET S.A. All rights reserved.
|
3 | 4baffab1 | Christos Stathis | *
|
4 | 4baffab1 | Christos Stathis | * Redistribution and use in source and binary forms, with or
|
5 | 4baffab1 | Christos Stathis | * without modification, are permitted provided that the following
|
6 | 4baffab1 | Christos Stathis | * conditions are met:
|
7 | 4baffab1 | Christos Stathis | *
|
8 | 4baffab1 | Christos Stathis | * 1. Redistributions of source code must retain the above
|
9 | 4baffab1 | Christos Stathis | * copyright notice, this list of conditions and the following
|
10 | 4baffab1 | Christos Stathis | * disclaimer.
|
11 | 4baffab1 | Christos Stathis | *
|
12 | 4baffab1 | Christos Stathis | * 2. Redistributions in binary form must reproduce the above
|
13 | 4baffab1 | Christos Stathis | * copyright notice, this list of conditions and the following
|
14 | 4baffab1 | Christos Stathis | * disclaimer in the documentation and/or other materials
|
15 | 4baffab1 | Christos Stathis | * provided with the distribution.
|
16 | 4baffab1 | Christos Stathis | *
|
17 | 4baffab1 | Christos Stathis | * THIS SOFTWARE IS PROVIDED BY GRNET S.A. ``AS IS'' AND ANY EXPRESS
|
18 | 4baffab1 | Christos Stathis | * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
19 | 4baffab1 | Christos Stathis | * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
20 | 4baffab1 | Christos Stathis | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL GRNET S.A OR
|
21 | 4baffab1 | Christos Stathis | * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
|
22 | 4baffab1 | Christos Stathis | * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
|
23 | 4baffab1 | Christos Stathis | * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
|
24 | 4baffab1 | Christos Stathis | * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
25 | 4baffab1 | Christos Stathis | * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
26 | 4baffab1 | Christos Stathis | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
|
27 | 4baffab1 | Christos Stathis | * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
|
28 | 4baffab1 | Christos Stathis | * POSSIBILITY OF SUCH DAMAGE.
|
29 | 4baffab1 | Christos Stathis | *
|
30 | 4baffab1 | Christos Stathis | * The views and conclusions contained in the software and
|
31 | 4baffab1 | Christos Stathis | * documentation are those of the authors and should not be
|
32 | 4baffab1 | Christos Stathis | * interpreted as representing official policies, either expressed
|
33 | 4baffab1 | Christos Stathis | * or implied, of GRNET S.A.
|
34 | 4baffab1 | Christos Stathis | */
|
35 | 4baffab1 | Christos Stathis | package gr.grnet.pithos.web.client.commands; |
36 | 4baffab1 | Christos Stathis | |
37 | 53f8abed | Christos Stathis | import gr.grnet.pithos.web.client.AddUserDialog; |
38 | 4baffab1 | Christos Stathis | import gr.grnet.pithos.web.client.Pithos; |
39 | 4baffab1 | Christos Stathis | import gr.grnet.pithos.web.client.grouptree.Group; |
40 | 4baffab1 | Christos Stathis | |
41 | 4baffab1 | Christos Stathis | import com.google.gwt.user.client.Command; |
42 | 4baffab1 | Christos Stathis | import com.google.gwt.user.client.ui.PopupPanel; |
43 | 4baffab1 | Christos Stathis | |
44 | 4baffab1 | Christos Stathis | /**
|
45 | 4baffab1 | Christos Stathis | * Display the 'new folder' dialog for creating a new folder.
|
46 | 4baffab1 | Christos Stathis | *
|
47 | 4baffab1 | Christos Stathis | */
|
48 | 4baffab1 | Christos Stathis | public class AddUserCommand implements Command { |
49 | 4baffab1 | Christos Stathis | private PopupPanel containerPanel;
|
50 | 4baffab1 | Christos Stathis | |
51 | 4baffab1 | Christos Stathis | Group group;
|
52 | 4baffab1 | Christos Stathis | |
53 | 4baffab1 | Christos Stathis | Pithos app; |
54 | 4baffab1 | Christos Stathis | |
55 | 4baffab1 | Christos Stathis | /**
|
56 | 4baffab1 | Christos Stathis | * @param aContainerPanel
|
57 | 4baffab1 | Christos Stathis | */
|
58 | 4baffab1 | Christos Stathis | public AddUserCommand(Pithos _app, PopupPanel aContainerPanel, Group _group){ |
59 | 4baffab1 | Christos Stathis | app = _app; |
60 | 4baffab1 | Christos Stathis | containerPanel = aContainerPanel; |
61 | 4baffab1 | Christos Stathis | group = _group; |
62 | 4baffab1 | Christos Stathis | } |
63 | 4baffab1 | Christos Stathis | |
64 | 4baffab1 | Christos Stathis | @Override
|
65 | 4baffab1 | Christos Stathis | public void execute() { |
66 | 4baffab1 | Christos Stathis | if (containerPanel != null) |
67 | 4baffab1 | Christos Stathis | containerPanel.hide(); |
68 | 53f8abed | Christos Stathis | AddUserDialog dlg = new AddUserDialog(app, group);
|
69 | 53f8abed | Christos Stathis | dlg.center(); |
70 | 4baffab1 | Christos Stathis | } |
71 | 4baffab1 | Christos Stathis | } |