public class ServicesAwareAuditEventBuilder
extends org.jbpm.process.audit.event.DefaultAuditEventBuilderImpl
Constructor and Description |
---|
ServicesAwareAuditEventBuilder() |
Modifier and Type | Method and Description |
---|---|
org.jbpm.process.audit.event.AuditEvent |
buildEvent(org.kie.api.event.process.ProcessCompletedEvent pce,
Object log) |
org.jbpm.process.audit.event.AuditEvent |
buildEvent(org.kie.api.event.process.ProcessNodeLeftEvent pnle,
Object log) |
org.jbpm.process.audit.event.AuditEvent |
buildEvent(org.kie.api.event.process.ProcessNodeTriggeredEvent pnte) |
org.jbpm.process.audit.event.AuditEvent |
buildEvent(org.kie.api.event.process.ProcessStartedEvent pse) |
org.jbpm.process.audit.event.AuditEvent |
buildEvent(org.kie.api.event.process.ProcessVariableChangedEvent pvce) |
protected RequestScopedBackupIdentityProvider |
getBackupIdentityProvider()
This retrieves a
RequestScopedBackupIdentityProvider bean from the CDI (request scoped) context. |
String |
getDeploymentUnitId() |
protected String |
getIdentityName()
This method returns the identity of the user who initiated the command.
|
IdentityProvider |
getIdentityProvider() |
void |
setBeanManager(javax.enterprise.inject.spi.BeanManager beanManager)
Sets the
BeanManager field. |
void |
setDeploymentUnitId(String deploymentUnitId) |
void |
setIdentityProvider(IdentityProvider identityProvider) |
public IdentityProvider getIdentityProvider()
public void setIdentityProvider(IdentityProvider identityProvider)
public org.jbpm.process.audit.event.AuditEvent buildEvent(org.kie.api.event.process.ProcessStartedEvent pse)
buildEvent
in interface org.jbpm.process.audit.event.AuditEventBuilder
buildEvent
in class org.jbpm.process.audit.event.DefaultAuditEventBuilderImpl
public org.jbpm.process.audit.event.AuditEvent buildEvent(org.kie.api.event.process.ProcessCompletedEvent pce, Object log)
buildEvent
in interface org.jbpm.process.audit.event.AuditEventBuilder
buildEvent
in class org.jbpm.process.audit.event.DefaultAuditEventBuilderImpl
public org.jbpm.process.audit.event.AuditEvent buildEvent(org.kie.api.event.process.ProcessNodeTriggeredEvent pnte)
buildEvent
in interface org.jbpm.process.audit.event.AuditEventBuilder
buildEvent
in class org.jbpm.process.audit.event.DefaultAuditEventBuilderImpl
public org.jbpm.process.audit.event.AuditEvent buildEvent(org.kie.api.event.process.ProcessNodeLeftEvent pnle, Object log)
buildEvent
in interface org.jbpm.process.audit.event.AuditEventBuilder
buildEvent
in class org.jbpm.process.audit.event.DefaultAuditEventBuilderImpl
public org.jbpm.process.audit.event.AuditEvent buildEvent(org.kie.api.event.process.ProcessVariableChangedEvent pvce)
buildEvent
in interface org.jbpm.process.audit.event.AuditEventBuilder
buildEvent
in class org.jbpm.process.audit.event.DefaultAuditEventBuilderImpl
public String getDeploymentUnitId()
public void setDeploymentUnitId(String deploymentUnitId)
protected String getIdentityName()
public void setBeanManager(javax.enterprise.inject.spi.BeanManager beanManager)
BeanManager
field.
This field is necessary in order to retrieve a RequestScopedBackupIdentityProvider
bean from the CDI context.
A RequestScopedBackupIdentityProvider
bean is necessary when the a command is issued to the a RuntimeEngine
in a context or scope where HTTP is *not* used. The normal IdentityProvider
bean is only available if HTTP is being
used, because it relies on HTTP authorization mechanisms in order to get the user (See the UberfireIdentityProvider class).beanManager
- A BeanManager
instanceprotected RequestScopedBackupIdentityProvider getBackupIdentityProvider()
RequestScopedBackupIdentityProvider
bean from the CDI (request scoped) context.RequestScopedBackupIdentityProvider
instanceCopyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.