org.pentaho.platform.repository.runtime
Class RuntimeRepository

java.lang.Object
  extended by org.pentaho.platform.engine.core.system.PentahoBase
      extended by org.pentaho.platform.repository.runtime.RuntimeRepository
All Implemented Interfaces:
Serializable, ILogger, IPentahoInitializer, IRuntimeRepository

public class RuntimeRepository
extends PentahoBase
implements IRuntimeRepository, IPentahoInitializer

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.pentaho.platform.engine.core.system.PentahoBase
EMPTYLOGID, 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
RuntimeRepository()
           
 
Method Summary
 Log getLogger()
           
 List getMessages()
           
static IPentahoSession getUserSession()
           
 void init(IPentahoSession sess)
          Simplifier for initialization of objects from the PentahoSystem object
 IRuntimeElement loadElementById(String instId, Collection allowableReadAttributeNames)
          Loads an existing RuntimeElement
 IRuntimeElement newRuntimeElement(String parId, String parType, boolean transientOnly)
          Creates a new RuntimeElement
 IRuntimeElement newRuntimeElement(String parId, String parType, String solnId, boolean transientOnly)
          Creates a new RuntimeElement
 void setSession(IPentahoSession sess)
           
 boolean usesHibernate()
           
 
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
equals, 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 Detail

RuntimeRepository

public RuntimeRepository()
Method Detail

getUserSession

public static IPentahoSession getUserSession()
Returns:
Returns the userSession.

getMessages

public List getMessages()

setSession

public void setSession(IPentahoSession sess)
Specified by:
setSession in interface IRuntimeRepository
Parameters:
sess - The IPentahoSession to set

init

public void init(IPentahoSession sess)
Description copied from interface: IPentahoInitializer
Simplifier for initialization of objects from the PentahoSystem object

Specified by:
init in interface IPentahoInitializer

loadElementById

public IRuntimeElement loadElementById(String instId,
                                       Collection allowableReadAttributeNames)
                                throws RepositoryException
Loads an existing RuntimeElement

Specified by:
loadElementById in interface IRuntimeRepository
Parameters:
instId - The instance Id
allowableReadAttributeNames - The attribute names that are allowed to be read by this process
Returns:
the RuntimeElement
Throws:
RepositoryException

newRuntimeElement

public IRuntimeElement newRuntimeElement(String parId,
                                         String parType,
                                         boolean transientOnly)
Creates a new RuntimeElement

Specified by:
newRuntimeElement in interface IRuntimeRepository
Parameters:
parId - Parent ID of this instance
parType - Parent type of the instance
transientOnly - Indicates whether this runtime element will be transient only (unsaved) or persistent. If true, then this will be in memory only, and will not be persisted when it goes out of scope.
Returns:
the created runtime element

newRuntimeElement

public IRuntimeElement newRuntimeElement(String parId,
                                         String parType,
                                         String solnId,
                                         boolean transientOnly)
Creates a new RuntimeElement

Specified by:
newRuntimeElement in interface IRuntimeRepository
Parameters:
parId - Parent Id of the runtime element
parType - Parent type of the runtime element
solnId - Solution Id of the element
transientOnly - Indicates whether this runtime element will be transient only (unsaved) or persistent. If true, then this will be in memory only, and will not be persisted when it goes out of scope.
Returns:
The created runtime element

getLogger

public Log getLogger()
Specified by:
getLogger in class PentahoBase

usesHibernate

public boolean usesHibernate()
Specified by:
usesHibernate in interface IRuntimeRepository