Klasse AbstractWorkflowEventSource
java.lang.Object
de.uplanet.lucy.server.workflow.eventsource.AbstractWorkflowEventSource
- Alle implementierten Schnittstellen:
IActivatableWorkflowObject,de.uplanet.lucy.server.workflow.IImpersonateUser,INamedWorkflowObject,INeedWorkflow,IWorkflowEventSource,IWorkflowObject,Serializable
- Bekannte direkte Unterklassen:
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.
- Siehe auch:
-
Feldübersicht
Von Schnittstelle geerbte Felder de.uplanet.lucy.server.workflow.IWorkflowObject
GUID_COMPARATOR -
Konstruktorübersicht
KonstruktorenKonstruktorBeschreibungAbstractWorkflowEventSource(String p_strGuid) Create anAbstractWorkflowEventSource. -
Methodenübersicht
Modifizierer und TypMethodeBeschreibunggetGuid()Get the GUID of this workflow object.Get the impersonation user.getName()Get the name of the workflow object.de.uplanet.lucy.server.workflow.IWorkflowGet the workflow this object belongs to.booleanCheck if this event source has an impersonation user.booleanisActive()Check if this workflow object is active or inactive.booleanRun 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.voidSet 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.toString()
-
Konstruktordetails
-
AbstractWorkflowEventSource
Create anAbstractWorkflowEventSource.- Parameter:
p_strGuid- The GUID of the workflow event source.- Löst aus:
IllegalArgumentException- If the GUID parameter isnullor if it does not represent a valid GUID.
-
-
Methodendetails
-
getGuid
Beschreibung aus Schnittstelle kopiert:IWorkflowObjectGet the GUID of this workflow object.Note: implementors must ensure that this is never
null.- Angegeben von:
getGuidin SchnittstelleIWorkflowObject- Gibt zurück:
- The GUID of this workflow object
-
isActive
public boolean isActive()Beschreibung aus Schnittstelle kopiert:IActivatableWorkflowObjectCheck if this workflow object is active or inactive.- Angegeben von:
isActivein SchnittstelleIActivatableWorkflowObject- Angegeben von:
isActivein SchnittstelleIWorkflowEventSource- Gibt zurück:
- The activation state of this workflow object.
-
setActive
public void setActive(boolean p_bActive) Beschreibung aus Schnittstelle kopiert:IActivatableWorkflowObjectSet this workflow object active or inactive.- Angegeben von:
setActivein SchnittstelleIActivatableWorkflowObject- Angegeben von:
setActivein SchnittstelleIWorkflowEventSource- Parameter:
p_bActive- The new activation state to be set.
-
getName
Beschreibung aus Schnittstelle kopiert:INamedWorkflowObjectGet the name of the workflow object.- Angegeben von:
getNamein SchnittstelleINamedWorkflowObject- Gibt zurück:
- The name of the workflow object.
-
setName
Beschreibung aus Schnittstelle kopiert:INamedWorkflowObjectSet the name of the workflow object.- Angegeben von:
setNamein SchnittstelleINamedWorkflowObject- Parameter:
p_strName- The name of the workflow object.
-
getWorkflow
public de.uplanet.lucy.server.workflow.IWorkflow getWorkflow()Beschreibung aus Schnittstelle kopiert:INeedWorkflowGet the workflow this object belongs to.- Angegeben von:
getWorkflowin SchnittstelleINeedWorkflow- Gibt zurück:
- The workflow this object belongs to.
-
setWorkflow
public void setWorkflow(de.uplanet.lucy.server.workflow.IWorkflow p_wf) Beschreibung aus Schnittstelle kopiert:INeedWorkflowSet the workflow this object belongs to.- Angegeben von:
setWorkflowin SchnittstelleINeedWorkflow- Parameter:
p_wf- The workflow this object belongs to.
-
hasImpersonateUserGuid
public boolean hasImpersonateUserGuid()Check if this event source has an impersonation user.- Angegeben von:
hasImpersonateUserGuidin Schnittstellede.uplanet.lucy.server.workflow.IImpersonateUser- Gibt zurück:
trueif this event source has an impersonation user, orfalseotherwise.
-
getImpersonateUserGuid
Get the impersonation user.- Angegeben von:
getImpersonateUserGuidin Schnittstellede.uplanet.lucy.server.workflow.IImpersonateUser- Gibt zurück:
- TThe impersonation user, or
null.
-
setImpersonateUserGuid
Set the impersonation user.- Angegeben von:
setImpersonateUserGuidin Schnittstellede.uplanet.lucy.server.workflow.IImpersonateUser- Parameter:
p_strImpersonateUserGuid- This GUID of the impersonation user.
-
isRunWithLocalSystemPrivileges
public boolean isRunWithLocalSystemPrivileges()Run impersonated code with local system privileges.Default is
true.- Gibt zurück:
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.- Parameter:
p_bRunWithLocalSystemPrivileges-trueif impersonated code should be run with local system privileges, orfalseotherwise.
-
toString
-