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:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface de.uplanet.lucy.server.workflow.IWorkflowObject
GUID_COMPARATOR
-
-
Constructor Summary
Constructors Constructor Description AbstractWorkflowEventSource(String p_strGuid)Create anAbstractWorkflowEventSource.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetGuid()Get the GUID of this workflow object.StringgetImpersonateUserGuid()Get the impersonation user.StringgetName()Get the name of the workflow object.de.uplanet.lucy.server.workflow.IWorkflowgetWorkflow()Get the workflow this object belongs to.booleanhasImpersonateUserGuid()Check if this event source has an impersonation user.booleanisActive()Check if this workflow object is active or inactive.booleanisRunWithLocalSystemPrivileges()Run impersonated code with local system privileges.voidsetActive(boolean p_bActive)Set this workflow object active or inactive.voidsetImpersonateUserGuid(String p_strImpersonateUserGuid)Set the impersonation user.voidsetName(String p_strName)Set the name of the workflow object.voidsetRunWithLocalSystemPrivileges(boolean p_bRunWithLocalSystemPrivileges)Run impersonated code with local system privileges.voidsetWorkflow(de.uplanet.lucy.server.workflow.IWorkflow p_wf)Set the workflow this object belongs to.StringtoString()
-
-
-
Constructor Detail
-
AbstractWorkflowEventSource
public AbstractWorkflowEventSource(String p_strGuid)
Create anAbstractWorkflowEventSource.- Parameters:
p_strGuid- The GUID of the workflow event source.- Throws:
IllegalArgumentException- If the GUID parameter isnullor if it does not represent a valid GUID.
-
-
Method Detail
-
getGuid
public String getGuid()
Description copied from interface:IWorkflowObjectGet the GUID of this workflow object.Note: implementors must ensure that this is never
null.- Specified by:
getGuidin interfaceIWorkflowObject- Returns:
- The GUID of this workflow object
-
isActive
public boolean isActive()
Description copied from interface:IActivatableWorkflowObjectCheck if this workflow object is active or inactive.- Specified by:
isActivein interfaceIActivatableWorkflowObject- Specified by:
isActivein interfaceIWorkflowEventSource- Returns:
- The activation state of this workflow object.
-
setActive
public void setActive(boolean p_bActive)
Description copied from interface:IActivatableWorkflowObjectSet this workflow object active or inactive.- Specified by:
setActivein interfaceIActivatableWorkflowObject- Specified by:
setActivein interfaceIWorkflowEventSource- Parameters:
p_bActive- The new activation state to be set.
-
getName
public String getName()
Description copied from interface:INamedWorkflowObjectGet the name of the workflow object.- Specified by:
getNamein interfaceINamedWorkflowObject- Returns:
- The name of the workflow object.
-
setName
public void setName(String p_strName)
Description copied from interface:INamedWorkflowObjectSet the name of the workflow object.- Specified by:
setNamein interfaceINamedWorkflowObject- Parameters:
p_strName- The name of the workflow object.
-
getWorkflow
public de.uplanet.lucy.server.workflow.IWorkflow getWorkflow()
Description copied from interface:INeedWorkflowGet the workflow this object belongs to.- Specified by:
getWorkflowin interfaceINeedWorkflow- Returns:
- The workflow this object belongs to.
-
setWorkflow
public void setWorkflow(de.uplanet.lucy.server.workflow.IWorkflow p_wf)
Description copied from interface:INeedWorkflowSet the workflow this object belongs to.- Specified by:
setWorkflowin 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:
hasImpersonateUserGuidin interfacede.uplanet.lucy.server.workflow.IImpersonateUser- Returns:
trueif this event source has an impersonation user, orfalseotherwise.
-
getImpersonateUserGuid
public String getImpersonateUserGuid()
Get the impersonation user.- Specified by:
getImpersonateUserGuidin interfacede.uplanet.lucy.server.workflow.IImpersonateUser- Returns:
- TThe impersonation user, or
null.
-
setImpersonateUserGuid
public void setImpersonateUserGuid(String p_strImpersonateUserGuid)
Set the impersonation user.- Specified by:
setImpersonateUserGuidin 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:
trueif impersonated code is run with local system privileges, orfalseotherwise.
-
setRunWithLocalSystemPrivileges
public void setRunWithLocalSystemPrivileges(boolean p_bRunWithLocalSystemPrivileges)
Run impersonated code with local system privileges.Default is
true.- Parameters:
p_bRunWithLocalSystemPrivileges-trueif impersonated code should be run with local system privileges, orfalseotherwise.
-
-