1 2 package org.roller.model; 3 4 import org.roller.RollerException; 5 import org.roller.pojos.PageData; 6 import org.roller.pojos.RoleData; 7 import org.roller.pojos.UserData; 8 import org.roller.pojos.WebsiteData; 9 10 import java.io.Serializable ; 11 import java.util.Map ; 12 import java.util.List ; 13 14 15 20 public interface UserManager extends Serializable 21 { 22 25 public void release(); 26 27 29 30 public List getUsers() throws RollerException; 31 32 33 public List getUsers(boolean enabledOnly) throws RollerException; 34 35 36 public UserData getUser( String userName ) throws RollerException; 37 38 39 public UserData getUser( String userName, boolean enabledOnly ) throws RollerException; 40 41 45 public void addUser( UserData user, Map page, String theme, 46 String locale, String timezone) 47 throws RollerException; 48 49 52 public UserData retrieveUser(String id)throws RollerException; 53 56 public void storeUser( UserData data ) throws RollerException; 57 58 61 public List getUserRoles(UserData user) throws RollerException; 62 65 public RoleData retrieveRole(String id) throws RollerException; 66 69 public void storeRole( RoleData data ) throws RollerException; 70 73 public void removeRole( String id ) throws RollerException; 74 75 77 78 public WebsiteData getWebsite(String userName) throws RollerException; 79 86 public WebsiteData getWebsite(String userName, boolean enabledOnly) throws RollerException; 87 88 91 public WebsiteData retrieveWebsite(String id) throws RollerException; 92 95 public void storeWebsite(WebsiteData data) throws RollerException; 96 99 public void removeWebsite(String id) throws RollerException; 100 101 103 104 public PageData getPageByName(WebsiteData w, String p) throws RollerException; 105 106 107 public PageData getPageByLink(WebsiteData w, String p) throws RollerException; 108 109 110 public String fixPageLink(PageData data) throws RollerException; 111 112 113 public List getPages(WebsiteData w) throws RollerException; 114 115 118 public PageData retrievePage(String id) throws RollerException; 119 122 public void storePage(PageData data) throws RollerException; 123 126 public void removePage(String id) throws RollerException; 127 128 129 136 public void removePageSafely(String id) throws RollerException; 137 138 141 public PageData retrievePageReadOnly(String id) throws RollerException; 142 143 151 public String checkLoginCookie(String value) throws RollerException; 152 153 161 public String createLoginCookie(String username) throws RollerException; 162 163 167 public void removeLoginCookies(String username) throws RollerException; 168 169 172 public void removeUserWebsites(UserData data) throws RollerException; 173 174 177 public void removeWebsiteContents(WebsiteData data) throws RollerException; 178 } 179 180 181 182 | Popular Tags |