1 12 13 package com.openedit.users; 14 15 import java.util.Collection ; 16 import java.util.Date ; 17 import java.util.List ; 18 19 20 25 public interface User extends PropertyContainer 26 { 27 public static final String FIRST_NAME_PROPERTY = "firstName"; 28 public static final String LAST_NAME_PROPERTY = "lastName"; 29 public static final String EMAIL_PROPERTY = "email"; 30 31 35 public static final String USERNAME_PROPERTY = "user-name"; 36 37 43 String getFirstName(); 44 45 51 String getLastName(); 52 53 59 String getEmail(); 60 61 66 Date getCreationDate(); 67 68 75 void setFirstName( String inFirstName ); 76 77 84 void setLastName( String inLastName ); 85 86 93 void setEmail( String inEmail ); 94 95 100 Collection getGroups(); 101 102 106 public String getPassword(); 107 108 public String getClearPassword(); 109 110 121 void setPassword(String inPassword) throws UserManagerException; 122 123 128 String getUserName(); 129 137 boolean hasPermission(String inPermission); 138 139 boolean hasProperty(String inProperty); 140 141 public String getShortDescription(); 142 143 void setUserName(String inUserName); 144 145 public List listGroupPermissions(); 146 147 public void addGroup(Group inGroup); 148 149 void clearGroups(); 150 151 void removeGroup(Group inGroup); 152 153 boolean isInGroup(Group inGroup); 154 155 Object getProperty(String inPropertyName); 156 157 public PropertyContainer getPropertyContainer(); 158 } 159 | Popular Tags |