Class ContentWorkflowController
Inheritance
System.Object
ContentWorkflowController
Assembly: DotNetNuke.dll
Syntax
public class ContentWorkflowController : ComponentBase<IContentWorkflowController, ContentWorkflowController>, IContentWorkflowController
Methods
|
Improve this Doc
View Source
AddWorkflow(ContentWorkflow)
Declaration
public void AddWorkflow(ContentWorkflow workflow)
Parameters
|
Improve this Doc
View Source
AddWorkflowLog(ContentItem, String, String, Int32)
Declaration
public void AddWorkflowLog(ContentItem item, string action, string comment, int userID)
Parameters
Type |
Name |
Description |
ContentItem |
item |
|
System.String |
action |
|
System.String |
comment |
|
System.Int32 |
userID |
|
|
Improve this Doc
View Source
AddWorkflowState(ContentWorkflowState)
Declaration
public void AddWorkflowState(ContentWorkflowState state)
Parameters
|
Improve this Doc
View Source
AddWorkflowStatePermission(ContentWorkflowStatePermission, Int32)
Declaration
public void AddWorkflowStatePermission(ContentWorkflowStatePermission permission, int lastModifiedByUserID)
Parameters
|
Improve this Doc
View Source
CompleteState(Int32, String, String, String, Int32, Int32, String, String[])
Declaration
public void CompleteState(int itemID, string subject, string body, string comment, int portalID, int userID, string source, params string[] parameters)
Parameters
Type |
Name |
Description |
System.Int32 |
itemID |
|
System.String |
subject |
|
System.String |
body |
|
System.String |
comment |
|
System.Int32 |
portalID |
|
System.Int32 |
userID |
|
System.String |
source |
|
System.String[] |
parameters |
|
|
Improve this Doc
View Source
CompleteState(Int32, String, String, String, Int32, Int32)
Declaration
public void CompleteState(int itemID, string subject, string body, string comment, int portalID, int userID)
Parameters
Type |
Name |
Description |
System.Int32 |
itemID |
|
System.String |
subject |
|
System.String |
body |
|
System.String |
comment |
|
System.Int32 |
portalID |
|
System.Int32 |
userID |
|
|
Improve this Doc
View Source
CompleteWorkflow(Int32, String, Int32, Int32)
Declaration
public void CompleteWorkflow(int contentItemId, string comment, int portalId, int userId)
Parameters
Type |
Name |
Description |
System.Int32 |
contentItemId |
|
System.String |
comment |
|
System.Int32 |
portalId |
|
System.Int32 |
userId |
|
|
Improve this Doc
View Source
CreateDefaultWorkflows(Int32)
Declaration
public void CreateDefaultWorkflows(int portalId)
Parameters
Type |
Name |
Description |
System.Int32 |
portalId |
|
|
Improve this Doc
View Source
DeleteWorkflowLogs(Int32, Int32)
Declaration
public void DeleteWorkflowLogs(int contentItemID, int workflowID)
Parameters
Type |
Name |
Description |
System.Int32 |
contentItemID |
|
System.Int32 |
workflowID |
|
|
Improve this Doc
View Source
DeleteWorkflowStatePermission(Int32)
Declaration
public void DeleteWorkflowStatePermission(int workflowStatePermissionID)
Parameters
Type |
Name |
Description |
System.Int32 |
workflowStatePermissionID |
|
|
Improve this Doc
View Source
DiscardState(Int32, String, String, String, Int32, Int32)
Declaration
public void DiscardState(int itemID, string subject, string body, string comment, int portalID, int userID)
Parameters
Type |
Name |
Description |
System.Int32 |
itemID |
|
System.String |
subject |
|
System.String |
body |
|
System.String |
comment |
|
System.Int32 |
portalID |
|
System.Int32 |
userID |
|
|
Improve this Doc
View Source
DiscardWorkflow(Int32, String, Int32, Int32)
Declaration
public void DiscardWorkflow(int contentItemId, string comment, int portalId, int userId)
Parameters
Type |
Name |
Description |
System.Int32 |
contentItemId |
|
System.String |
comment |
|
System.Int32 |
portalId |
|
System.Int32 |
userId |
|
|
Improve this Doc
View Source
GetDefaultWorkflow(Int32)
Declaration
public ContentWorkflow GetDefaultWorkflow(int portalID)
Parameters
Type |
Name |
Description |
System.Int32 |
portalID |
|
Returns
|
Improve this Doc
View Source
GetWorkflow(ContentItem)
Declaration
public ContentWorkflow GetWorkflow(ContentItem item)
Parameters
Returns
|
Improve this Doc
View Source
GetWorkflowByID(Int32)
Declaration
public ContentWorkflow GetWorkflowByID(int workflowID)
Parameters
Type |
Name |
Description |
System.Int32 |
workflowID |
|
Returns
|
Improve this Doc
View Source
GetWorkflowLogs(Int32, Int32)
Declaration
public IEnumerable<ContentWorkflowLog> GetWorkflowLogs(int contentItemId, int workflowId)
Parameters
Type |
Name |
Description |
System.Int32 |
contentItemId |
|
System.Int32 |
workflowId |
|
Returns
|
Improve this Doc
View Source
GetWorkflows(Int32)
Declaration
public IEnumerable<ContentWorkflow> GetWorkflows(int portalID)
Parameters
Type |
Name |
Description |
System.Int32 |
portalID |
|
Returns
|
Improve this Doc
View Source
GetWorkflowSource(Int32, String)
Declaration
public ContentWorkflowSource GetWorkflowSource(int workflowId, string sourceName)
Parameters
Type |
Name |
Description |
System.Int32 |
workflowId |
|
System.String |
sourceName |
|
Returns
|
Improve this Doc
View Source
GetWorkflowStateByID(Int32)
Declaration
public ContentWorkflowState GetWorkflowStateByID(int stateID)
Parameters
Type |
Name |
Description |
System.Int32 |
stateID |
|
Returns
|
Improve this Doc
View Source
GetWorkflowStatePermissionByState(Int32)
Declaration
public IEnumerable<ContentWorkflowStatePermission> GetWorkflowStatePermissionByState(int stateID)
Parameters
Type |
Name |
Description |
System.Int32 |
stateID |
|
Returns
|
Improve this Doc
View Source
GetWorkflowStates(Int32)
Declaration
public IEnumerable<ContentWorkflowState> GetWorkflowStates(int workflowID)
Parameters
Type |
Name |
Description |
System.Int32 |
workflowID |
|
Returns
|
Improve this Doc
View Source
IsAnyReviewer(Int32, Int32, Int32)
Declaration
public bool IsAnyReviewer(int portalID, int userID, int workflowID)
Parameters
Type |
Name |
Description |
System.Int32 |
portalID |
|
System.Int32 |
userID |
|
System.Int32 |
workflowID |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsAnyReviewer(Int32)
Declaration
public bool IsAnyReviewer(int workflowID)
Parameters
Type |
Name |
Description |
System.Int32 |
workflowID |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsCurrentReviewer(Int32, Int32, Int32)
Declaration
public bool IsCurrentReviewer(int portalID, int userID, int itemID)
Parameters
Type |
Name |
Description |
System.Int32 |
portalID |
|
System.Int32 |
userID |
|
System.Int32 |
itemID |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsCurrentReviewer(Int32)
Declaration
public bool IsCurrentReviewer(int itemID)
Parameters
Type |
Name |
Description |
System.Int32 |
itemID |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsReviewer(Int32, Int32, Int32)
Declaration
public bool IsReviewer(int portalID, int userID, int stateID)
Parameters
Type |
Name |
Description |
System.Int32 |
portalID |
|
System.Int32 |
userID |
|
System.Int32 |
stateID |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsReviewer(Int32)
Declaration
public bool IsReviewer(int stateID)
Parameters
Type |
Name |
Description |
System.Int32 |
stateID |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsWorkflowCompleted(Int32)
Declaration
public bool IsWorkflowCompleted(int itemID)
Parameters
Type |
Name |
Description |
System.Int32 |
itemID |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsWorkflowOnDraft(Int32)
Declaration
public bool IsWorkflowOnDraft(int itemID)
Parameters
Type |
Name |
Description |
System.Int32 |
itemID |
|
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
ReplaceNotificationTokens(String, ContentWorkflow, ContentItem, ContentWorkflowState, Int32, Int32, String)
Declaration
public string ReplaceNotificationTokens(string text, ContentWorkflow workflow, ContentItem item, ContentWorkflowState state, int portalID, int userID, string comment = "")
Parameters
Returns
Type |
Description |
System.String |
|
|
Improve this Doc
View Source
SendWorkflowNotification(Boolean, Boolean, PortalSettings, IEnumerable<RoleInfo>, IEnumerable<UserInfo>, String, String, String, Int32)
Declaration
public void SendWorkflowNotification(bool sendEmail, bool sendMessage, PortalSettings settings, IEnumerable<RoleInfo> roles, IEnumerable<UserInfo> users, string subject, string body, string comment, int userID)
Parameters
Type |
Name |
Description |
System.Boolean |
sendEmail |
|
System.Boolean |
sendMessage |
|
PortalSettings |
settings |
|
IEnumerable<RoleInfo> |
roles |
|
IEnumerable<UserInfo> |
users |
|
System.String |
subject |
|
System.String |
body |
|
System.String |
comment |
|
System.Int32 |
userID |
|
|
Improve this Doc
View Source
StartWorkflow(Int32, Int32, Int32)
Declaration
public void StartWorkflow(int workflowID, int itemID, int userID)
Parameters
Type |
Name |
Description |
System.Int32 |
workflowID |
|
System.Int32 |
itemID |
|
System.Int32 |
userID |
|
|
Improve this Doc
View Source
UpdateWorkflow(ContentWorkflow)
Declaration
public void UpdateWorkflow(ContentWorkflow workflow)
Parameters
|
Improve this Doc
View Source
UpdateWorkflowState(ContentWorkflowState)
Declaration
public void UpdateWorkflowState(ContentWorkflowState state)
Parameters
|
Improve this Doc
View Source
UpdateWorkflowStatePermission(ContentWorkflowStatePermission, Int32)
Declaration
public void UpdateWorkflowStatePermission(ContentWorkflowStatePermission permission, int lastModifiedByUserID)
Parameters
Implements
Extension Methods