mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
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:
parent
4db73ee015
commit
5dd9acc2a7
|
@ -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]
|
||||
|
|
|
@ -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]
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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()) {
|
||||
|
|
|
@ -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};
|
||||
|
|
Loading…
Reference in New Issue
Block a user