org.figure8.join.services.scripting
Class DefaultScriptLogAccessor

java.lang.Object
  extended by org.figure8.join.services.scripting.DefaultScriptLogAccessor
All Implemented Interfaces:
ScriptLogAccessor

public class DefaultScriptLogAccessor
extends java.lang.Object
implements ScriptLogAccessor

This is the default implementation of ScriptLogAccessor.

Version:
$Revision: 1.2 $
Author:
Laurent Broudoux

Constructor Summary
DefaultScriptLogAccessor()
          Creates a new instance of DefaultScriptLogAccessor.
 
Method Summary
 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
 void saveScriptLogInfo(ScriptLogInfo logInfo)
          Save a ScriptLogInfo (indeed a create or update method)
 void setScriptLogInfoDao(ScriptLogInfoDao scriptLogInfoDao)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultScriptLogAccessor

public DefaultScriptLogAccessor()
Creates a new instance of DefaultScriptLogAccessor.

Method Detail

setScriptLogInfoDao

public void setScriptLogInfoDao(ScriptLogInfoDao scriptLogInfoDao)
Parameters:
scriptLogInfoDao - The script log dao instance to use

saveScriptLogInfo

public void saveScriptLogInfo(ScriptLogInfo logInfo)
Save a ScriptLogInfo (indeed a create or update method)

Specified by:
saveScriptLogInfo in interface ScriptLogAccessor
Parameters:
logInfo - The ScriptLogInfo object to save

getScriptLogInfos

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

Specified by:
getScriptLogInfos in interface ScriptLogAccessor
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

Specified by:
getScriptLogInfos in interface ScriptLogAccessor
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


Copyright © 2005-2008 Join. All Rights Reserved.