org.pentaho.platform.repository.runtime
Class RuntimeRepository
java.lang.Object
org.pentaho.platform.engine.core.system.PentahoBase
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
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 |
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 interface org.pentaho.platform.api.engine.ILogger |
debug, debug, error, error, fatal, fatal, getLoggingLevel, info, info, setLoggingLevel, trace, trace, warn, warn |
RuntimeRepository
public RuntimeRepository()
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 IdallowableReadAttributeNames
- 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 instanceparType
- Parent type of the instancetransientOnly
- 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 elementparType
- Parent type of the runtime elementsolnId
- Solution Id of the elementtransientOnly
- 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