removed calls to deprecated methods

git-svn-id: https://svn.berlios.de/svnroot/repos/yacy/trunk@3865 6c8d7289-2bf4-0310-a012-ef5d649a1542
This commit is contained in:
orbiter 2007-06-11 21:33:45 +00:00
parent 4db73ee015
commit 5dd9acc2a7
5 changed files with 7 additions and 7 deletions

View File

@ -107,7 +107,7 @@ public class Blog {
if(!hasRights){
final userDB.Entry userentry = switchboard.userDB.proxyAuth((String)header.get("Authorization", "xxxxxx"));
if(userentry != null && userentry.hasBlogRight()){
if(userentry != null && userentry.hasRight(userDB.Entry.BLOG_RIGHT)){
hasRights=true;
} else if(post.containsKey("login")) {
//opens login window if login link is clicked - contrib [MN]

View File

@ -92,7 +92,7 @@ public class BlogComments {
if(!hasRights){
userDB.Entry userentry = switchboard.userDB.proxyAuth((String)header.get("Authorization", "xxxxxx"));
if(userentry != null && userentry.hasBlogRight()){
if(userentry != null && userentry.hasRight(userDB.Entry.BLOG_RIGHT)){
hasRights=true;
}
//opens login window if login link is clicked - contrib [MN]

View File

@ -128,9 +128,9 @@ public class dir {
uploadAuthorization = (adminAuthorization ||(uploadAccountBase64MD5.length() != 0 && uploadAccountBase64MD5.equals(authorizationMD5)));
downloadAuthorization = (adminAuthorization || uploadAuthorization || downloadAccountBase64MD5.length() == 0 || downloadAccountBase64MD5.equals(authorizationMD5));
}else{ //userDB
adminAuthorization=entry.hasAdminRight();
uploadAuthorization=entry.hasUploadRight();
downloadAuthorization=entry.hasDownloadRight();
adminAuthorization=entry.hasRight(userDB.Entry.ADMIN_RIGHT);
uploadAuthorization=entry.hasRight(userDB.Entry.UPLOAD_RIGHT);
downloadAuthorization=entry.hasRight(userDB.Entry.DOWNLOAD_RIGHT);
}
// do authentitcate processes by triggering the http authenticate method

View File

@ -72,7 +72,7 @@ public class kelondroFlexTable extends kelondroFlexWidthArray implements kelondr
long start = System.currentTimeMillis();
if (serverMemory.available(neededRAM, true)) {
if (serverMemory.request(neededRAM, true)) {
// we can use a RAM index
if (indexfile.exists()) {

View File

@ -84,7 +84,7 @@ public class ymageMatrix /*implements Cloneable*/ {
}
public ymageMatrix(int width, int height, long backgroundColor) {
if (!(serverMemory.available(1024 * 1024 + 3 * width * height, true))) throw new RuntimeException("ymage: not enough memory (" + serverMemory.available() + ") available");
if (!(serverMemory.request(1024 * 1024 + 3 * width * height, false))) throw new RuntimeException("ymage: not enough memory (" + serverMemory.available() + ") available");
this.width = width;
this.height = height;
this.defaultCol = new int[]{0xFF, 0xFF, 0xFF};