it.eng.spago.cms.util
Class Utils

java.lang.Object
  extended by it.eng.spago.cms.util.Utils

public class Utils
extends java.lang.Object

Implements some general utilities


Constructor Summary
Utils()
           
 
Method Summary
static void critical(java.lang.String message)
          Logs a critical message
static void debug(java.lang.String message)
          Logs a debug message
static Session getSession(IRepositoryProvider repFactory, java.lang.String user, java.lang.String password, java.lang.String workspace)
          Creates and returns a JCR Session object
static void major(java.lang.String message)
          Logs a major message
static void warning(java.lang.String message)
          Logs a warning message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Utils

public Utils()
Method Detail

getSession

public static Session getSession(IRepositoryProvider repFactory,
                                 java.lang.String user,
                                 java.lang.String password,
                                 java.lang.String workspace)
Creates and returns a JCR Session object

Parameters:
repFactory, - jsr 170 repository target of the connection
user, - user name used to open the connection to the repository
password, - password used to open the connection to the repository
workspace, - name of the workspace used to open the connection

debug

public static void debug(java.lang.String message)
Logs a debug message

Parameters:
message - Message to log

major

public static void major(java.lang.String message)
Logs a major message

Parameters:
message - Message to log

critical

public static void critical(java.lang.String message)
Logs a critical message

Parameters:
message - Message to log

warning

public static void warning(java.lang.String message)
Logs a warning message

Parameters:
message - Message to log