/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. */
  17. package mpv5.pluginhandling;
  18. import javax.swing.JComponent;
  19. import mpv5.db.common.Context;
  20. import mpv5.db.common.DatabaseObject;
  21. import mpv5.utils.images.MPIcon;
  22. /**
  23. * This binds plugins to users
  24. *
  25. */
  26. public class UserPlugin extends DatabaseObject {
  27. private int pluginsids;
  28. private int usersids;
  29. public UserPlugin() {
  30. setContext(Context.getPluginsToUsers());
  31. }
  32. @Override
  33. public JComponent getView() {
  34. throw new UnsupportedOperationException("Not supported yet.");
  35. }
  36. /**
  37. * @return the contactsids
  38. */
  39. public int __getUsersids() {
  40. return usersids;
  41. }
  42. /**
  43. * @param contactsids the contactsids to set
  44. */
  45. public void setUsersids(int contactsids) {
  46. this.usersids = contactsids;
  47. }
  48. /**
  49. * @return the pluginsids
  50. */
  51. public int __getPluginsids() {
  52. return pluginsids;
  53. }
  54. /**
  55. * @param pluginsids the pluginsids to set
  56. */
  57. public void setPluginsids(int pluginsids) {
  58. this.pluginsids = pluginsids;
  59. }
  60. @Override
  61. public MPIcon getIcon() {
  62. return null;
  63. }
  64. }