org.jbpm.pvm.internal.repository
Class RepositorySessionImpl

java.lang.Object
  extended by org.jbpm.pvm.internal.repository.RepositorySessionImpl
All Implemented Interfaces:
RepositorySession

public class RepositorySessionImpl
extends java.lang.Object
implements RepositorySession

Author:
Tom Baeyens

Field Summary
protected  DeployerManager deployerManager
           
protected  RepositoryCache repositoryCache
           
protected  org.hibernate.Session session
           
 
Constructor Summary
RepositorySessionImpl()
           
 
Method Summary
 void cascadeDeploymentResume(DeploymentImpl deployment)
           
 void cascadeDeploymentSuspend(DeploymentImpl deployment)
           
 ProcessDefinitionQueryImpl createProcessDefinitionQuery()
          create a process definition query
 java.lang.String deploy(NewDeployment deployment)
           
 DeploymentProperty findDeploymentPropertyByProcessDefinitionId(java.lang.String processDefinitionId)
           
 ProcessDefinitionImpl findLatestProcessDefinitionByName(java.lang.String processDefinitionName)
           
 ProcessDefinitionImpl findProcessDefinitionById(java.lang.String processDefinitionId)
           
 ProcessDefinitionImpl findProcessDefinitionByKey(java.lang.String processDefinitionKey)
           
 byte[] getBytes(java.lang.String deploymentId, java.lang.String resourceName)
           
 DeploymentImpl getDeployment(java.lang.String deploymentId)
           
 java.lang.Object getObject(java.lang.String deploymentId, java.lang.String objectName)
           
 void updateDeploymentResource(java.lang.String deploymentId, java.lang.String resourceName, byte[] bytes)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

session

protected org.hibernate.Session session

repositoryCache

protected RepositoryCache repositoryCache

deployerManager

protected DeployerManager deployerManager
Constructor Detail

RepositorySessionImpl

public RepositorySessionImpl()
Method Detail

deploy

public java.lang.String deploy(NewDeployment deployment)
Specified by:
deploy in interface RepositorySession

updateDeploymentResource

public void updateDeploymentResource(java.lang.String deploymentId,
                                     java.lang.String resourceName,
                                     byte[] bytes)
Specified by:
updateDeploymentResource in interface RepositorySession

cascadeDeploymentSuspend

public void cascadeDeploymentSuspend(DeploymentImpl deployment)

cascadeDeploymentResume

public void cascadeDeploymentResume(DeploymentImpl deployment)

getDeployment

public DeploymentImpl getDeployment(java.lang.String deploymentId)
Specified by:
getDeployment in interface RepositorySession

getObject

public java.lang.Object getObject(java.lang.String deploymentId,
                                  java.lang.String objectName)
Specified by:
getObject in interface RepositorySession

getBytes

public byte[] getBytes(java.lang.String deploymentId,
                       java.lang.String resourceName)
Specified by:
getBytes in interface RepositorySession

createProcessDefinitionQuery

public ProcessDefinitionQueryImpl createProcessDefinitionQuery()
Description copied from interface: RepositorySession
create a process definition query

Specified by:
createProcessDefinitionQuery in interface RepositorySession

findProcessDefinitionByKey

public ProcessDefinitionImpl findProcessDefinitionByKey(java.lang.String processDefinitionKey)
Specified by:
findProcessDefinitionByKey in interface RepositorySession

findProcessDefinitionById

public ProcessDefinitionImpl findProcessDefinitionById(java.lang.String processDefinitionId)
Specified by:
findProcessDefinitionById in interface RepositorySession

findLatestProcessDefinitionByName

public ProcessDefinitionImpl findLatestProcessDefinitionByName(java.lang.String processDefinitionName)
Specified by:
findLatestProcessDefinitionByName in interface RepositorySession

findDeploymentPropertyByProcessDefinitionId

public DeploymentProperty findDeploymentPropertyByProcessDefinitionId(java.lang.String processDefinitionId)


Copyright © 2010 JBoss Community. All Rights Reserved.