1 18 19 package org.apache.roller.model; 20 21 import java.util.Date ; 22 import java.util.List ; 23 import java.util.Map ; 24 import org.apache.roller.RollerException; 25 import org.apache.roller.pojos.WeblogTemplate; 26 import org.apache.roller.pojos.PermissionsData; 27 import org.apache.roller.pojos.UserData; 28 import org.apache.roller.pojos.WebsiteData; 29 30 33 public interface UserManager { 34 35 40 public void addUser(UserData newUser) throws RollerException; 41 42 45 public void saveUser(UserData data) throws RollerException; 46 47 50 public void removeUser(UserData user) throws RollerException; 51 52 55 public UserData getUser(String id) throws RollerException; 56 57 58 61 public UserData getUserByUserName(String userName) throws RollerException; 62 63 66 public UserData getUserByUserName(String userName, Boolean enabled) 67 throws RollerException; 68 69 72 public List getUsers(int offset, int length) throws RollerException; 73 74 80 public List getUsers( 81 Boolean enabled, 82 Date startDate, 83 Date endDate, 84 int offset, 85 int length) throws RollerException; 86 87 93 public List getUsers( 94 WebsiteData website, 95 Boolean enabled, 96 int offset, 97 int length) throws RollerException; 98 99 107 public List getUsersStartingWith(String startsWith, 108 Boolean enabled, int offset, int length) throws RollerException; 109 110 115 public Map getUserNameLetterMap() throws RollerException; 116 117 118 public List getUsersByLetter(char letter, int offset, int length) throws RollerException; 119 120 125 public Map getWeblogHandleLetterMap() throws RollerException; 126 127 128 public List getWeblogsByLetter(char letter, int offset, int length) throws RollerException; 129 130 135 public void addWebsite(WebsiteData newWebsite) throws RollerException; 136 137 140 public void saveWebsite(WebsiteData data) throws RollerException; 141 142 145 public void removeWebsite(WebsiteData website) throws RollerException; 146 147 150 public WebsiteData getWebsite(String id) throws RollerException; 151 152 156 public WebsiteData getWebsiteByHandle(String handle) throws RollerException; 157 158 162 public WebsiteData getWebsiteByHandle(String handle, Boolean enabled) 163 throws RollerException; 164 165 176 public List getWebsites( 177 UserData user, 178 Boolean enabled, 179 Boolean active, 180 Date startDate, 181 Date endDate, 182 int offset, 183 int length) 184 throws RollerException; 185 186 194 public List getMostCommentedWebsites( 195 Date startDate, 196 Date endDate, 197 int offset, 198 int length) 199 throws RollerException; 200 201 204 public void savePermissions(PermissionsData perms) throws RollerException; 205 206 209 public void removePermissions(PermissionsData perms) throws RollerException; 210 211 214 public PermissionsData getPermissions(String id) throws RollerException; 215 216 221 public List getPendingPermissions(UserData user) throws RollerException; 222 223 228 public List getPendingPermissions(WebsiteData user) throws RollerException; 229 230 236 public PermissionsData getPermissions(WebsiteData website, UserData user) 237 throws RollerException; 238 239 244 public List getAllPermissions(WebsiteData website) throws RollerException; 245 246 251 public List getAllPermissions(UserData user) throws RollerException; 252 253 260 public PermissionsData inviteUser( 261 WebsiteData website, UserData user, short perms) 262 throws RollerException; 263 264 269 public void retireUser(WebsiteData website, UserData user) 270 throws RollerException; 271 272 275 public void savePage(WeblogTemplate data) throws RollerException; 276 277 280 public void removePage(WeblogTemplate page) throws RollerException; 281 282 285 public WeblogTemplate getPage(String id) throws RollerException; 286 287 290 public WeblogTemplate getPageByName(WebsiteData w, String p) throws RollerException; 291 292 295 public WeblogTemplate getPageByLink(WebsiteData w, String p) 296 throws RollerException; 297 298 301 public List getPages(WebsiteData w) throws RollerException; 302 303 306 public void release(); 307 308 } 309 310 311 312 | Popular Tags |