org.figure8.join.util
Class ScriptLogAccessorProxy

java.lang.Object
  extended by org.figure8.join.util.ScriptLogAccessorProxy

public class ScriptLogAccessorProxy
extends java.lang.Object

This is a simple proxy for accessing script logs information whether the accessor is local or remote (in case of exploded deployment mode).

Version:
$Revision: 1.1 $
Author:
Laurent Broudoux

Constructor Summary
ScriptLogAccessorProxy()
           
 
Method Summary
static ScriptLogAccessorProxy getInstance()
          Factory method to retrieve a proxy
protected  java.util.List getLocalObjects(RemoteScriptLogInfo[] remoteInfos)
          Convert an array of remote object into a list of local domain object
 java.util.List getScriptLogInfos(long entityId, java.lang.String entityClass)
          Retrieve all the info beans on available script logs for given entity
 java.util.List getScriptLogInfos(java.lang.String scriptName, java.lang.String scriptCategory)
          Get all the info beans on available script logs for script having this name and category
protected  void initializeManagerOrService()
          Initialize the local consumer manager or the remote service depending on the application setup and the application side we are on.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScriptLogAccessorProxy

public ScriptLogAccessorProxy()
Method Detail

getInstance

public static ScriptLogAccessorProxy getInstance()
Factory method to retrieve a proxy

Returns:
A ScriptLogAccessorProcy instance

getScriptLogInfos

public java.util.List getScriptLogInfos(long entityId,
                                        java.lang.String entityClass)
Retrieve all the info beans on available script logs for given entity

Parameters:
entityId - The id of entity to retrieve ScriptLogInfo objects for
entityClass - The class of entity to retrieve ScriptLogInfo objects for
Returns:
A list of ScriptLogInfo available for entity

getScriptLogInfos

public java.util.List getScriptLogInfos(java.lang.String scriptName,
                                        java.lang.String scriptCategory)
Get all the info beans on available script logs for script having this name and category

Parameters:
scriptName - The name of the script to retrieve log for
scriptCategory - The category of the script to retrive log for
Returns:
A list of ScriptLogInfo available for script

initializeManagerOrService

protected void initializeManagerOrService()
                                   throws java.lang.Exception
Initialize the local consumer manager or the remote service depending on the application setup and the application side we are on.

Throws:
java.lang.Exception - if manager cannot be found or remote service is not available

getLocalObjects

protected java.util.List getLocalObjects(RemoteScriptLogInfo[] remoteInfos)
                                  throws java.lang.Exception
Convert an array of remote object into a list of local domain object

Throws:
java.lang.Exception


Copyright © 2005-2008 Join. All Rights Reserved.