Open SiteSearch 4.1.1
Final

ORG.oclc.mantisbase.util
Class MBUtil

java.lang.Object
  |
  +--ORG.oclc.mantisbase.util.MBUtil

public class MBUtil
extends Object


Constructor Summary
MBUtil()
           
 
Method Summary
static int countRecs(String fname)
           
static int exec(String dbname, String installationRoot, String currUpdateFile, String op)
           
static long getNextSequentialId(String lockServerPort, String lockServerHost, String userKey, IniFile ini, String dbname)
           
static long getNextSequentialId(String lockServerPort, String lockServerHost, String userKey, IniFile ini, String dbname, int num)
           
static String getUrlWithProtocol(String url, DataDir dir856)
           
static String HTMLEncode(String s)
          HTML encodes the input String for display in HTML.
static boolean lockRecord(String lockServerPort, String lockServerHost, String userKey, String recNum, String recTitle, String dbname, int timeout)
           
static String normalizeURL(String url, DataDir d)
           
static DataDir retag(DataDir d, TagFile stf, TagFile dtf)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MBUtil

public MBUtil()
Method Detail

getUrlWithProtocol

public static String getUrlWithProtocol(String url,
                                        DataDir dir856)

normalizeURL

public static String normalizeURL(String url,
                                  DataDir d)

retag

public static DataDir retag(DataDir d,
                            TagFile stf,
                            TagFile dtf)

getNextSequentialId

public static long getNextSequentialId(String lockServerPort,
                                       String lockServerHost,
                                       String userKey,
                                       IniFile ini,
                                       String dbname)

getNextSequentialId

public static long getNextSequentialId(String lockServerPort,
                                       String lockServerHost,
                                       String userKey,
                                       IniFile ini,
                                       String dbname,
                                       int num)

lockRecord

public static boolean lockRecord(String lockServerPort,
                                 String lockServerHost,
                                 String userKey,
                                 String recNum,
                                 String recTitle,
                                 String dbname,
                                 int timeout)

countRecs

public static int countRecs(String fname)

exec

public static int exec(String dbname,
                       String installationRoot,
                       String currUpdateFile,
                       String op)

HTMLEncode

public static String HTMLEncode(String s)
HTML encodes the input String for display in HTML.
Parameters:
s - the string to be URL encoded.
Returns:
a String containing the URL encoded HTML.

Open SiteSearch 4.1.1
Final