Class AbstractWorkflowEventSource
java.lang.Object
de.uplanet.lucy.server.workflow.eventsource.AbstractWorkflowEventSource
- All Implemented Interfaces:
IActivatableWorkflowObject
,de.uplanet.lucy.server.workflow.IImpersonateUser
,INamedWorkflowObject
,INeedWorkflow
,IWorkflowEventSource
,IWorkflowObject
,Serializable
- Direct Known Subclasses:
AbstractSingleThreadedWorkflowEventSource
public abstract class AbstractWorkflowEventSource
extends Object
implements IWorkflowEventSource, INamedWorkflowObject, INeedWorkflow, de.uplanet.lucy.server.workflow.IImpersonateUser
This event source base class provides the ability to create events in
an impersonated thread context.
- See Also:
-
Field Summary
Fields inherited from interface de.uplanet.lucy.server.workflow.IWorkflowObject
GUID_COMPARATOR
-
Constructor Summary
ConstructorsConstructorDescriptionAbstractWorkflowEventSource
(String p_strGuid) Create anAbstractWorkflowEventSource
. -
Method Summary
Modifier and TypeMethodDescriptiongetGuid()
Get the GUID of this workflow object.Get the impersonation user.getName()
Get the name of the workflow object.de.uplanet.lucy.server.workflow.IWorkflow
Get the workflow this object belongs to.boolean
Check if this event source has an impersonation user.boolean
isActive()
Check if this workflow object is active or inactive.boolean
Run impersonated code with local system privileges.void
setActive
(boolean p_bActive) Set this workflow object active or inactive.void
setImpersonateUserGuid
(String p_strImpersonateUserGuid) Set the impersonation user.void
Set the name of the workflow object.void
setRunWithLocalSystemPrivileges
(boolean p_bRunWithLocalSystemPrivileges) Run impersonated code with local system privileges.void
setWorkflow
(de.uplanet.lucy.server.workflow.IWorkflow p_wf) Set the workflow this object belongs to.toString()
-
Constructor Details
-
AbstractWorkflowEventSource
Create anAbstractWorkflowEventSource
.- Parameters:
p_strGuid
- The GUID of the workflow event source.- Throws:
IllegalArgumentException
- If the GUID parameter isnull
or if it does not represent a valid GUID.
-
-
Method Details
-
getGuid
Description copied from interface:IWorkflowObject
Get the GUID of this workflow object.Note: implementors must ensure that this is never
null
.- Specified by:
getGuid
in interfaceIWorkflowObject
- Returns:
- The GUID of this workflow object
-
isActive
public boolean isActive()Description copied from interface:IActivatableWorkflowObject
Check if this workflow object is active or inactive.- Specified by:
isActive
in interfaceIActivatableWorkflowObject
- Specified by:
isActive
in interfaceIWorkflowEventSource
- Returns:
- The activation state of this workflow object.
-
setActive
public void setActive(boolean p_bActive) Description copied from interface:IActivatableWorkflowObject
Set this workflow object active or inactive.- Specified by:
setActive
in interfaceIActivatableWorkflowObject
- Specified by:
setActive
in interfaceIWorkflowEventSource
- Parameters:
p_bActive
- The new activation state to be set.
-
getName
Description copied from interface:INamedWorkflowObject
Get the name of the workflow object.- Specified by:
getName
in interfaceINamedWorkflowObject
- Returns:
- The name of the workflow object.
-
setName
Description copied from interface:INamedWorkflowObject
Set the name of the workflow object.- Specified by:
setName
in interfaceINamedWorkflowObject
- Parameters:
p_strName
- The name of the workflow object.
-
getWorkflow
public de.uplanet.lucy.server.workflow.IWorkflow getWorkflow()Description copied from interface:INeedWorkflow
Get the workflow this object belongs to.- Specified by:
getWorkflow
in interfaceINeedWorkflow
- Returns:
- The workflow this object belongs to.
-
setWorkflow
public void setWorkflow(de.uplanet.lucy.server.workflow.IWorkflow p_wf) Description copied from interface:INeedWorkflow
Set the workflow this object belongs to.- Specified by:
setWorkflow
in interfaceINeedWorkflow
- Parameters:
p_wf
- The workflow this object belongs to.
-
hasImpersonateUserGuid
public boolean hasImpersonateUserGuid()Check if this event source has an impersonation user.- Specified by:
hasImpersonateUserGuid
in interfacede.uplanet.lucy.server.workflow.IImpersonateUser
- Returns:
true
if this event source has an impersonation user, orfalse
otherwise.
-
getImpersonateUserGuid
Get the impersonation user.- Specified by:
getImpersonateUserGuid
in interfacede.uplanet.lucy.server.workflow.IImpersonateUser
- Returns:
- TThe impersonation user, or
null
.
-
setImpersonateUserGuid
Set the impersonation user.- Specified by:
setImpersonateUserGuid
in interfacede.uplanet.lucy.server.workflow.IImpersonateUser
- Parameters:
p_strImpersonateUserGuid
- This GUID of the impersonation user.
-
isRunWithLocalSystemPrivileges
public boolean isRunWithLocalSystemPrivileges()Run impersonated code with local system privileges.Default is
true
.- Returns:
true
if impersonated code is run with local system privileges, orfalse
otherwise.
-
setRunWithLocalSystemPrivileges
public void setRunWithLocalSystemPrivileges(boolean p_bRunWithLocalSystemPrivileges) Run impersonated code with local system privileges.Default is
true
.- Parameters:
p_bRunWithLocalSystemPrivileges
-true
if impersonated code should be run with local system privileges, orfalse
otherwise.
-
toString
-