Interface IWorkflowSecurity
This class is responsible of provide information around Workflow Review permission.
Namespace: DotNetNuke.Entities.Content.Workflow
Assembly: DotNetNuke.dll
Syntax
public interface IWorkflowSecurity
Methods
| Improve this Doc View SourceGetStateReviewPermission()
This method gets the PermissionInfo of the State Review permission.
Declaration
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
bool HasStateReviewerPermission(PortalSettings portalSettings, UserInfo user, int stateId)
Parameters
Type | Name | Description |
---|---|---|
PortalSettings | portalSettings | Portal 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
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
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
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. |