sync
[Bookkeeping.git] / src / com / interrupt / bookkeeping / users / Users.java
blobc065465f06b876fe1e888671e2df1b1578be626b
1 package com.interrupt.bookkeeping.users;
3 import com.interrupt.bookkeeping.action.Action;
4 import com.interrupt.bookkeeping.exception.AuthorisationException;
7 public class Users extends GUsers {
10 private static Users instance = null;
11 public Users() {
14 public static Users getInstance() {
16 if( instance == null ) {
17 instance = new Users();
19 return instance;
22 public void authorize( Action action, User user ) throws AuthorisationException {
24 // leave Authorization for later on
25 //** any user is authorized to perform any action
28 /* this is kind of a hack because java's reflection mechanism doesn't
29 * seem to recognize the fact that super-interfaces
31 public void addUser(com.interrupt.bookkeeping.users.User addition) {
32 super.addUser((com.interrupt.bookkeeping.users.IUser)addition);