Class WorkflowSecurity
Implements
Inherited Members
Namespace: DotNetNuke.Entities.Content.Workflow
Assembly: DotNetNuke.dll
Syntax
public class WorkflowSecurity : ServiceLocator<IWorkflowSecurity, WorkflowSecurity>, IWorkflowSecurity
Methods
| Improve this Doc View SourceGetFactory()
Gets the service locator factory.
Declaration
protected override Func<IWorkflowSecurity> GetFactory()
Returns
| Type | Description |
|---|---|
| Func<IWorkflowSecurity> | A factory function. |
Overrides
GetStateReviewPermission()
This method gets the PermissionInfo of the State Review permission.
Declaration
public PermissionInfo GetStateReviewPermission()
Returns
| Type | Description |
|---|---|
| PermissionInfo | PermissionInfo of the State Review permission. |
HasStateReviewerPermission(PortalSettings, UserInfo, Int32)
This method returns true if the user has review permission on the specified state.
Declaration
public bool HasStateReviewerPermission(PortalSettings settings, UserInfo user, int stateId)
Parameters
| Type | Name | Description |
|---|---|---|
| PortalSettings | settings | |
| UserInfo | user | User entity. |
| System.Int32 | stateId | State Id. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the user has review permission, false otherwise. |
HasStateReviewerPermission(Int32, Int32, Int32)
This method returns true if the user has review permission on the specified state.
Declaration
public bool HasStateReviewerPermission(int portalId, int userId, int stateId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | portalId | Portal Id. |
| System.Int32 | userId | User Id. |
| System.Int32 | stateId | State Id. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the user has review permission, false otherwise. |
HasStateReviewerPermission(Int32)
This method returns true if the current user has review permission on the specified state.
Declaration
public bool HasStateReviewerPermission(int stateId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | stateId | State Id. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the user has review permission, false otherwise. |
IsWorkflowReviewer(Int32, Int32)
This method returns true if the user has review permission on at least one workflow state.
Declaration
public bool IsWorkflowReviewer(int workflowId, int userId)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | workflowId | Workflow Id. |
| System.Int32 | userId | User Id. |
Returns
| Type | Description |
|---|---|
| System.Boolean | True if the user has review permission on at least on workflow state, false otherwise. |