• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class WorkflowSecurity

Inheritance
System.Object
ServiceLocator<IWorkflowSecurity, WorkflowSecurity>
WorkflowSecurity
Implements
IWorkflowSecurity
Inherited Members
ServiceLocator<IWorkflowSecurity, WorkflowSecurity>.Instance
ServiceLocator<IWorkflowSecurity, WorkflowSecurity>.Factory
ServiceLocator<IWorkflowSecurity, WorkflowSecurity>.SetTestableInstance(IWorkflowSecurity)
ServiceLocator<IWorkflowSecurity, WorkflowSecurity>.ClearInstance()
ServiceLocator<IWorkflowSecurity, WorkflowSecurity>.GetFactory()
Namespace: DotNetNuke.Entities.Content.Workflow
Assembly: DotNetNuke.dll
Syntax
public class WorkflowSecurity : ServiceLocator<IWorkflowSecurity, WorkflowSecurity>, IWorkflowSecurity

Methods

| Improve this Doc View Source

GetFactory()

Gets the service locator factory.

Declaration
protected override Func<IWorkflowSecurity> GetFactory()
Returns
Type Description
Func<IWorkflowSecurity>

A factory function.

Overrides
DotNetNuke.Framework.ServiceLocator<DotNetNuke.Entities.Content.Workflow.IWorkflowSecurity, DotNetNuke.Entities.Content.Workflow.WorkflowSecurity>.GetFactory()
| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

| Improve this Doc View Source

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.

Implements

IWorkflowSecurity

Extension Methods

JsonExtensionsWeb.ToJson(Object)
  • View Source
Back to top by the community, for the community... #DNNCMS