Class ApprovalService
Service registered with ExternalDataExchangeService. Used for communication beteen host instances for approval activities.
Inheritance
System.Object
ApprovalService
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.WorkflowFoundation.Workflows
Assembly: EPiServer.WorkflowFoundation.dll
Version: 8.11.0Syntax
public class ApprovalService : IApprovalCommunication, IInitializableService
Constructors
ApprovalService()
Initializes a new instance of the ApprovalService class.
Declaration
public ApprovalService()
ApprovalService(LocalizationService)
Initializes a new instance of the ApprovalService class.
Declaration
public ApprovalService(LocalizationService localizationService)
Parameters
Type | Name | Description |
---|---|---|
LocalizationService | localizationService | The LocalizationService used for translations. |
Remarks
If localizationService
is null
the static instance Current will be used.
Methods
HasReadAndPublishRights(String, PageReference)
Determines whether the specified has read and publish rights for the specified page
Declaration
public bool HasReadAndPublishRights(string userName, PageReference pageLink)
Parameters
Type | Name | Description |
---|---|---|
System.String | userName | Name of the user. |
PageReference | pageLink | The page link to check access for |
Returns
Type | Description |
---|---|
System.Boolean |
|
Initialize()
Declaration
public void Initialize()
InvokeApprovalEvent(ApprovalEventArgs)
invokes the ApprovalEvent
Declaration
public void InvokeApprovalEvent(ApprovalEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
ApprovalEventArgs | args |
InvokeSetApproversEvent(SetApproversEventArgs)
Invokes the SetApproversEvent
Declaration
public void InvokeSetApproversEvent(SetApproversEventArgs args)
Parameters
Type | Name | Description |
---|---|---|
SetApproversEventArgs | args |
Events
ApprovalEvent
Specifies the ApprovalEvent activity
Declaration
public event EventHandler<ApprovalEventArgs> ApprovalEvent
Event Type
Type | Description |
---|---|
System.EventHandler<ApprovalEventArgs> |
SetApproversEvent
Specifies the SetApproversEvent activity
Declaration
public event EventHandler<SetApproversEventArgs> SetApproversEvent
Event Type
Type | Description |
---|---|
System.EventHandler<SetApproversEventArgs> |