Class SimpleRuntimeRepository

java.lang.Object
org.pentaho.platform.engine.core.system.PentahoBase
org.pentaho.platform.repository.SimpleRuntimeRepository
All Implemented Interfaces:
Serializable, org.pentaho.platform.api.engine.ILogger, org.pentaho.platform.api.engine.ISessionContainer, org.pentaho.platform.api.repository.IRuntimeRepository

public class SimpleRuntimeRepository extends org.pentaho.platform.engine.core.system.PentahoBase implements org.pentaho.platform.api.repository.IRuntimeRepository
Author:
James Dixon This is a lightweight version on the runtime repository that will not persist any runtime elements. This class is intended for simple standalone applications that do not require workflow
See Also:
  • Field Summary

    Fields inherited from class org.pentaho.platform.engine.core.system.PentahoBase

    EMPTYLOGID, loggingLevel, LOGID_MASK1, LOGID_MASK2, LOGID_SEPARATOR

    Fields inherited from interface org.pentaho.platform.api.engine.ILogger

    ACTIVITY_LOG, DEBUG, ERROR, FATAL, INFO, INSTANCE_LOG, SESSION_LOG, SOLUTION_LOG, TRACE, UNKNOWN, WARN
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    org.apache.commons.logging.Log
     
     
    static org.pentaho.platform.api.engine.IPentahoSession
     
    org.pentaho.platform.api.repository.IRuntimeElement
    loadElementById(String instanceId, Collection allowableReadAttributeNames)
    Loads an existing RuntimeElement
    org.pentaho.platform.api.repository.IRuntimeElement
    newRuntimeElement(String parId, String parType, boolean transientOnly)
    Creates a new RuntimeElement
    org.pentaho.platform.api.repository.IRuntimeElement
    newRuntimeElement(String parId, String parType, String solnId, boolean transientOnly)
    Creates a new RuntimeElement
    void
    setSession(org.pentaho.platform.api.engine.IPentahoSession sess)
     
    boolean
     

    Methods inherited from class org.pentaho.platform.engine.core.system.PentahoBase

    debug, debug, error, error, fatal, fatal, genLogIdFromInfo, genLogIdFromInfo, genLogIdFromSession, getLoggingLevel, getLogId, getObjectName, info, info, setLoggingLevel, setLogId, trace, trace, warn, warn

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.pentaho.platform.api.engine.ILogger

    debug, debug, error, error, fatal, fatal, getLoggingLevel, info, info, setLoggingLevel, trace, trace, warn, warn
  • Constructor Details

    • SimpleRuntimeRepository

      public SimpleRuntimeRepository()
  • Method Details

    • getUserSession

      public static org.pentaho.platform.api.engine.IPentahoSession getUserSession()
      Returns:
      Returns the userSession.
    • getMessages

      public List getMessages()
    • setSession

      public void setSession(org.pentaho.platform.api.engine.IPentahoSession sess)
      Specified by:
      setSession in interface org.pentaho.platform.api.engine.ISessionContainer
    • loadElementById

      public org.pentaho.platform.api.repository.IRuntimeElement loadElementById(String instanceId, Collection allowableReadAttributeNames) throws org.pentaho.platform.api.repository.RepositoryException
      Loads an existing RuntimeElement
      Specified by:
      loadElementById in interface org.pentaho.platform.api.repository.IRuntimeRepository
      Parameters:
      instId - The instance Id
      Returns:
      the RuntimeElement
      Throws:
      org.pentaho.platform.api.repository.RepositoryException
    • newRuntimeElement

      public org.pentaho.platform.api.repository.IRuntimeElement newRuntimeElement(String parId, String parType, boolean transientOnly)
      Creates a new RuntimeElement
      Specified by:
      newRuntimeElement in interface org.pentaho.platform.api.repository.IRuntimeRepository
      Parameters:
      parId - Parent ID of this instance
      parType - Parent type of the instance
      Returns:
      the created runtime element
    • newRuntimeElement

      public org.pentaho.platform.api.repository.IRuntimeElement newRuntimeElement(String parId, String parType, String solnId, boolean transientOnly)
      Creates a new RuntimeElement
      Specified by:
      newRuntimeElement in interface org.pentaho.platform.api.repository.IRuntimeRepository
      Parameters:
      parId - Parent Id of the runtime element
      parType - Parent type of the runtime element
      solnId - Solution Id of the element
      Returns:
      The created runtime element
    • getLogger

      public org.apache.commons.logging.Log getLogger()
      Specified by:
      getLogger in class org.pentaho.platform.engine.core.system.PentahoBase
    • usesHibernate

      public boolean usesHibernate()
      Specified by:
      usesHibernate in interface org.pentaho.platform.api.repository.IRuntimeRepository
    • exitPoint

      public void exitPoint()