Class RuntimeRepository
- java.lang.Object
-
- org.pentaho.platform.engine.core.system.PentahoBase
-
- org.pentaho.platform.repository.runtime.RuntimeRepository
-
- All Implemented Interfaces:
Serializable
,org.pentaho.platform.api.engine.ILogger
,org.pentaho.platform.api.engine.IPentahoInitializer
,org.pentaho.platform.api.engine.ISessionContainer
,org.pentaho.platform.api.repository.IRuntimeRepository
public class RuntimeRepository extends org.pentaho.platform.engine.core.system.PentahoBase implements org.pentaho.platform.api.repository.IRuntimeRepository, org.pentaho.platform.api.engine.IPentahoInitializer
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RuntimeRepository()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description org.apache.commons.logging.Log
getLogger()
List
getMessages()
static org.pentaho.platform.api.engine.IPentahoSession
getUserSession()
void
init(org.pentaho.platform.api.engine.IPentahoSession sess)
org.pentaho.platform.api.repository.IRuntimeElement
loadElementById(String instId, Collection allowableReadAttributeNames)
Loads an existing RuntimeElementorg.pentaho.platform.api.repository.IRuntimeElement
newRuntimeElement(String parId, String parType, boolean transientOnly)
Creates a new RuntimeElementorg.pentaho.platform.api.repository.IRuntimeElement
newRuntimeElement(String parId, String parType, String solnId, boolean transientOnly)
Creates a new RuntimeElementvoid
setSession(org.pentaho.platform.api.engine.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
-
-
-
-
Method Detail
-
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 interfaceorg.pentaho.platform.api.engine.ISessionContainer
-
init
public void init(org.pentaho.platform.api.engine.IPentahoSession sess)
- Specified by:
init
in interfaceorg.pentaho.platform.api.engine.IPentahoInitializer
-
loadElementById
public org.pentaho.platform.api.repository.IRuntimeElement loadElementById(String instId, Collection allowableReadAttributeNames) throws org.pentaho.platform.api.repository.RepositoryException
Loads an existing RuntimeElement- Specified by:
loadElementById
in interfaceorg.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 interfaceorg.pentaho.platform.api.repository.IRuntimeRepository
- Parameters:
parId
- Parent ID of this instanceparType
- 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 interfaceorg.pentaho.platform.api.repository.IRuntimeRepository
- Parameters:
parId
- Parent Id of the runtime elementparType
- Parent type of the runtime elementsolnId
- Solution Id of the element- Returns:
- The created runtime element
-
getLogger
public org.apache.commons.logging.Log getLogger()
- Specified by:
getLogger
in classorg.pentaho.platform.engine.core.system.PentahoBase
-
usesHibernate
public boolean usesHibernate()
- Specified by:
usesHibernate
in interfaceorg.pentaho.platform.api.repository.IRuntimeRepository
-
-