replaced deprecated methods

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3828 6c8d7289-2bf4-0310-a012-ef5d649a1542
pull/1/head
allo 18 years ago
parent e9e3ab4ecc
commit 41c60ab3bc

@ -108,13 +108,13 @@ public class User_p {
prop.put("address", entry.getAddress());
prop.put("timelimit", entry.getTimeLimit());
prop.put("timeused", entry.getTimeUsed());
prop.put("proxyRight", (entry.hasProxyRight()?1:0));
prop.put("uploadRight", (entry.hasUploadRight()?1:0));
prop.put("downloadRight", (entry.hasDownloadRight()?1:0));
prop.put("adminRight", (entry.hasAdminRight()?1:0));
prop.put("blogRight", (entry.hasBlogRight()?1:0));
prop.put("wikiAdminRight", (entry.hasWikiAdminRight()?1:0));
prop.put("bookmarkRight", (entry.hasBookmarkRight()?1:0));
prop.put("proxyRight", (entry.hasRight(userDB.Entry.PROXY_RIGHT)?1:0));
prop.put("uploadRight", (entry.hasRight(userDB.Entry.UPLOAD_RIGHT)?1:0));
prop.put("downloadRight", (entry.hasRight(userDB.Entry.DOWNLOAD_RIGHT)?1:0));
prop.put("adminRight", (entry.hasRight(userDB.Entry.ADMIN_RIGHT)?1:0));
prop.put("blogRight", (entry.hasRight(userDB.Entry.BLOG_RIGHT)?1:0));
prop.put("wikiAdminRight", (entry.hasRight(userDB.Entry.WIKIADMIN_RIGHT)?1:0));
prop.put("bookmarkRight", (entry.hasRight(userDB.Entry.BOOKMARK_RIGHT)?1:0));
}
}else if( post.containsKey("delete_user") && !((String)post.get("user")).equals("newuser") ){
sb.userDB.removeEntry((String)post.get("user"));

Loading…
Cancel
Save