Started refactoring user and group functionality
[taxeditor.git] / taxeditor-store / src / main / java / eu / etaxonomy / taxeditor / account / group / view / GroupView.java
1 // $Id$
2 /**
3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
6 *
7 * The contents of this file are subject to the Mozilla Public License Version 1.1
8 * See LICENSE.TXT at the top of this package for the full license terms.
9 */
10
11 package eu.etaxonomy.taxeditor.account.group.view;
12
13 import java.util.Collection;
14
15 import org.eclipse.jface.viewers.IBaseLabelProvider;
16 import org.eclipse.jface.viewers.TableViewer;
17
18 import eu.etaxonomy.cdm.api.service.IUserService;
19 import eu.etaxonomy.cdm.model.common.Group;
20 import eu.etaxonomy.taxeditor.account.AbstractAccountView;
21 import eu.etaxonomy.taxeditor.store.CdmStore;
22
23 /**
24 * @author n.hoffmann
25 * @created Feb 16, 2011
26 * @version 1.0
27 */
28 public class GroupView extends AbstractAccountView<Group>{
29
30 public static String ID = "eu.etaxonomy.taxeditor.store.groupView";
31
32 /* (non-Javadoc)
33 * @see eu.etaxonomy.taxeditor.account.AbstractAccountView#getInput()
34 */
35 @Override
36 public Collection<String> getInput() {
37 return CdmStore.getService(IUserService.class).findAllGroups();
38 }
39
40 /* (non-Javadoc)
41 * @see eu.etaxonomy.taxeditor.account.AbstractAccountView#getLabelProvider()
42 */
43 @Override
44 protected IBaseLabelProvider getLabelProvider() {
45 return new GroupLabelProvider();
46 }
47
48 /* (non-Javadoc)
49 * @see eu.etaxonomy.taxeditor.account.AbstractAccountView#createColumns(org.eclipse.jface.viewers.TableViewer)
50 */
51 @Override
52 protected void createColumns(TableViewer viewer) {
53 }
54
55 }