1 13 package info.magnolia.cms.security; 14 15 import java.util.Collection ; 16 17 18 23 public interface User { 24 25 30 public boolean hasRole(String roleName); 31 32 35 public void removeRole(String roleName) throws UnsupportedOperationException ; 36 37 41 public void addRole(String roleName) throws UnsupportedOperationException ; 42 43 48 public boolean inGroup(String groupName); 49 50 54 public void removeGroup(String groupName) throws UnsupportedOperationException ; 55 56 60 public void addGroup(String groupName) throws UnsupportedOperationException ; 61 62 66 67 public abstract String getLanguage(); 68 69 73 public abstract String getName(); 74 75 79 public abstract String getPassword(); 80 81 85 public abstract Collection getGroups(); 86 87 91 public abstract Collection getRoles(); 92 } | Popular Tags |