Permission handling removed
[staff/due1/sed-hs15-srs-purple.git] / src / main / java / ch / bfh / ti / srs / dataschema / User.java
index 859938f..fc75482 100644 (file)
@@ -18,7 +18,6 @@ public class User implements Cloneable{
        private String mail;
        private String name;
        private String lastname;
-       private Set<Permissions> permissions;
 
        /**
         * Constructor for already existing <code>User</code> in the Datacontext.
@@ -37,7 +36,6 @@ public class User implements Cloneable{
                this.mail = mail;
                this.name = name;
                this.lastname = lastname;
-               permissions = new HashSet<>();
        }
 
        /**
@@ -138,33 +136,4 @@ public class User implements Cloneable{
     public User clone() throws CloneNotSupportedException {
         return (User)super.clone();
     }
-       
-       /**
-        * @param permission
-        */
-       public void addPermission(Permissions permission){
-               permissions.add(permission);
-       }
-       
-       /**
-        * @param permission
-        */
-       public void removePermission(Permissions permission){
-               if(permissions.contains(permission)) permissions.remove(permission);
-       }
-       
-       /**
-        * @return
-        */
-       public Set<Permissions> getPermissions(){
-               return permissions;
-       }
-       
-       /**
-        * @param permission
-        * @return
-        */
-       public boolean hasPermission(Permissions permission){
-               return permissions.contains(permission);
-       }
 }
\ No newline at end of file