Class ContentWorkflowController
Inheritance
ContentWorkflowController
Assembly: DotNetNuke.dll
Syntax
[Obsolete("Deprecated in DotNetNuke 7.4.0. Use IWorkflowEngine. Scheduled for removal in v10.0.0.")]
public class ContentWorkflowController : ComponentBase<IContentWorkflowController, ContentWorkflowController>, IContentWorkflowController
Methods
AddWorkflow(ContentWorkflow)
Declaration
public void AddWorkflow(ContentWorkflow workflow)
Parameters
AddWorkflowLog(ContentItem, string, string, int)
Declaration
public void AddWorkflowLog(ContentItem item, string action, string comment, int userID)
Parameters
AddWorkflowState(ContentWorkflowState)
Declaration
public void AddWorkflowState(ContentWorkflowState state)
Parameters
AddWorkflowStatePermission(ContentWorkflowStatePermission, int)
Declaration
public void AddWorkflowStatePermission(ContentWorkflowStatePermission permission, int lastModifiedByUserID)
Parameters
CompleteState(int, string, string, string, int, int)
Declaration
public void CompleteState(int itemID, string subject, string body, string comment, int portalID, int userID)
Parameters
CompleteState(int, string, string, string, int, int, string, params string[])
Declaration
public void CompleteState(int itemID, string subject, string body, string comment, int portalID, int userID, string source, params string[] parameters)
Parameters
CompleteWorkflow(int, string, int, int)
Declaration
public void CompleteWorkflow(int contentItemId, string comment, int portalId, int userId)
Parameters
Type |
Name |
Description |
int |
contentItemId |
|
string |
comment |
|
int |
portalId |
|
int |
userId |
|
CreateDefaultWorkflows(int)
Declaration
public void CreateDefaultWorkflows(int portalId)
Parameters
Type |
Name |
Description |
int |
portalId |
|
DeleteWorkflowLogs(int, int)
Declaration
public void DeleteWorkflowLogs(int contentItemID, int workflowID)
Parameters
Type |
Name |
Description |
int |
contentItemID |
|
int |
workflowID |
|
DeleteWorkflowStatePermission(int)
Declaration
public void DeleteWorkflowStatePermission(int workflowStatePermissionID)
Parameters
Type |
Name |
Description |
int |
workflowStatePermissionID |
|
DiscardState(int, string, string, string, int, int)
Declaration
public void DiscardState(int itemID, string subject, string body, string comment, int portalID, int userID)
Parameters
DiscardWorkflow(int, string, int, int)
Declaration
public void DiscardWorkflow(int contentItemId, string comment, int portalId, int userId)
Parameters
Type |
Name |
Description |
int |
contentItemId |
|
string |
comment |
|
int |
portalId |
|
int |
userId |
|
GetDefaultWorkflow(int)
Declaration
public ContentWorkflow GetDefaultWorkflow(int portalID)
Parameters
Type |
Name |
Description |
int |
portalID |
|
Returns
GetWorkflow(ContentItem)
Declaration
public ContentWorkflow GetWorkflow(ContentItem item)
Parameters
Returns
GetWorkflowByID(int)
Declaration
public ContentWorkflow GetWorkflowByID(int workflowID)
Parameters
Type |
Name |
Description |
int |
workflowID |
|
Returns
GetWorkflowLogs(int, int)
Declaration
public IEnumerable<ContentWorkflowLog> GetWorkflowLogs(int contentItemId, int workflowId)
Parameters
Type |
Name |
Description |
int |
contentItemId |
|
int |
workflowId |
|
Returns
GetWorkflowSource(int, string)
Declaration
public ContentWorkflowSource GetWorkflowSource(int workflowId, string sourceName)
Parameters
Type |
Name |
Description |
int |
workflowId |
|
string |
sourceName |
|
Returns
GetWorkflowStateByID(int)
Declaration
public ContentWorkflowState GetWorkflowStateByID(int stateID)
Parameters
Type |
Name |
Description |
int |
stateID |
|
Returns
GetWorkflowStatePermissionByState(int)
Declaration
public IEnumerable<ContentWorkflowStatePermission> GetWorkflowStatePermissionByState(int stateID)
Parameters
Type |
Name |
Description |
int |
stateID |
|
Returns
GetWorkflowStates(int)
Declaration
public IEnumerable<ContentWorkflowState> GetWorkflowStates(int workflowID)
Parameters
Type |
Name |
Description |
int |
workflowID |
|
Returns
GetWorkflows(int)
Declaration
public IEnumerable<ContentWorkflow> GetWorkflows(int portalID)
Parameters
Type |
Name |
Description |
int |
portalID |
|
Returns
IsAnyReviewer(int)
Declaration
public bool IsAnyReviewer(int workflowID)
Parameters
Type |
Name |
Description |
int |
workflowID |
|
Returns
IsAnyReviewer(int, int, int)
Declaration
public bool IsAnyReviewer(int portalID, int userID, int workflowID)
Parameters
Type |
Name |
Description |
int |
portalID |
|
int |
userID |
|
int |
workflowID |
|
Returns
IsCurrentReviewer(int)
Declaration
public bool IsCurrentReviewer(int itemID)
Parameters
Type |
Name |
Description |
int |
itemID |
|
Returns
IsCurrentReviewer(int, int, int)
Declaration
public bool IsCurrentReviewer(int portalID, int userID, int itemID)
Parameters
Type |
Name |
Description |
int |
portalID |
|
int |
userID |
|
int |
itemID |
|
Returns
IsReviewer(int)
Declaration
public bool IsReviewer(int stateID)
Parameters
Type |
Name |
Description |
int |
stateID |
|
Returns
IsReviewer(int, int, int)
Declaration
public bool IsReviewer(int portalID, int userID, int stateID)
Parameters
Type |
Name |
Description |
int |
portalID |
|
int |
userID |
|
int |
stateID |
|
Returns
IsWorkflowCompleted(int)
Declaration
public bool IsWorkflowCompleted(int itemID)
Parameters
Type |
Name |
Description |
int |
itemID |
|
Returns
IsWorkflowOnDraft(int)
Declaration
public bool IsWorkflowOnDraft(int itemID)
Parameters
Type |
Name |
Description |
int |
itemID |
|
Returns
ReplaceNotificationTokens(string, ContentWorkflow, ContentItem, ContentWorkflowState, int, int, string)
Declaration
public string ReplaceNotificationTokens(string text, ContentWorkflow workflow, ContentItem item, ContentWorkflowState state, int portalID, int userID, string comment = "")
Parameters
Returns
SendWorkflowNotification(bool, bool, PortalSettings, IEnumerable<RoleInfo>, IEnumerable<UserInfo>, string, string, string, int)
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
StartWorkflow(int, int, int)
Declaration
public void StartWorkflow(int workflowID, int itemID, int userID)
Parameters
Type |
Name |
Description |
int |
workflowID |
|
int |
itemID |
|
int |
userID |
|
UpdateWorkflow(ContentWorkflow)
Declaration
public void UpdateWorkflow(ContentWorkflow workflow)
Parameters
UpdateWorkflowState(ContentWorkflowState)
Declaration
public void UpdateWorkflowState(ContentWorkflowState state)
Parameters
UpdateWorkflowStatePermission(ContentWorkflowStatePermission, int)
Declaration
public void UpdateWorkflowStatePermission(ContentWorkflowStatePermission permission, int lastModifiedByUserID)
Parameters
Implements
Extension Methods