PageRenderTime 102ms CodeModel.GetById 60ms app.highlight 4ms RepoModel.GetById 37ms app.codeStats 0ms

/src/mpv5/pluginhandling/UserPlugin.java

http://mp-rechnungs-und-kundenverwaltung.googlecode.com/
Java | 77 lines | 32 code | 13 blank | 32 comment | 0 complexity | 8f6bf4b5969b6790b19adf2e6b447428 MD5 | raw file
 1/*
 2 *  This file is part of YaBS.
 3 *
 4 *      YaBS is free software: you can redistribute it and/or modify
 5 *      it under the terms of the GNU General Public License as published by
 6 *      the Free Software Foundation, either version 3 of the License, or
 7 *      (at your option) any later version.
 8 *
 9 *      YaBS is distributed in the hope that it will be useful,
10 *      but WITHOUT ANY WARRANTY; without even the implied warranty of
11 *      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 *      GNU General Public License for more details.
13 *
14 *      You should have received a copy of the GNU General Public License
15 *      along with YaBS.  If not, see <http://www.gnu.org/licenses/>.
16 */
17package mpv5.pluginhandling;
18
19import javax.swing.JComponent;
20import mpv5.db.common.Context;
21import mpv5.db.common.DatabaseObject;
22import mpv5.utils.images.MPIcon;
23
24/**
25 * This binds plugins to users
26 *  
27 */
28public class UserPlugin extends DatabaseObject {
29
30    private int pluginsids;
31    private int usersids;
32
33    public UserPlugin() {
34       setContext(Context.getPluginsToUsers());
35    }
36
37    @Override
38    public JComponent getView() {
39        throw new UnsupportedOperationException("Not supported yet.");
40    }
41
42
43    /**
44     * @return the contactsids
45     */
46    public int __getUsersids() {
47        return usersids;
48    }
49
50    /**
51     * @param contactsids the contactsids to set
52     */
53    public void setUsersids(int contactsids) {
54        this.usersids = contactsids;
55    }
56
57    /**
58     * @return the pluginsids
59     */
60    public int __getPluginsids() {
61        return pluginsids;
62    }
63
64    /**
65     * @param pluginsids the pluginsids to set
66     */
67    public void setPluginsids(int pluginsids) {
68        this.pluginsids = pluginsids;
69    }
70
71
72    @Override
73    public MPIcon getIcon() {
74        return null;
75    }
76
77}