Class WorkflowLogger
Implements
Inherited Members
Namespace: DotNetNuke.Entities.Content.Workflow
Assembly: DotNetNuke.dll
Syntax
public class WorkflowLogger : ServiceLocator<IWorkflowLogger, WorkflowLogger>, IWorkflowLogger
Constructors
| Improve this Doc View SourceWorkflowLogger()
Initializes a new instance of the WorkflowLogger class.
Declaration
public WorkflowLogger()
Methods
| Improve this Doc View SourceAddWorkflowLog(Int32, Int32, WorkflowLogType, String, Int32)
Adds a log comment regarding a specific workflow.
Declaration
public void AddWorkflowLog(int contentItemId, int workflowId, WorkflowLogType type, string comment, int userId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | contentItemId | Content item Id related with the log. |
System.Int32 | workflowId | Workflow Id owner of the log. |
WorkflowLogType | type | Log Type. |
System.String | comment | Comment to be added. |
System.Int32 | userId | User Id who adds the log. |
AddWorkflowLog(Int32, Int32, String, String, Int32)
Adds a log comment regarding a specific workflow.
Declaration
public void AddWorkflowLog(int contentItemId, int workflowId, string action, string comment, int userId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | contentItemId | Content item Id related with the log. |
System.Int32 | workflowId | Workflow Id owner of the log. |
System.String | action | Custom action related with the log. |
System.String | comment | Comment to be added. |
System.Int32 | userId | User Id who adds the log. |
GetFactory()
Gets the service locator factory.
Declaration
protected override Func<IWorkflowLogger> GetFactory()
Returns
Type | Description |
---|---|
Func<IWorkflowLogger> | A factory function. |
Overrides
DotNetNuke.Framework.ServiceLocator<DotNetNuke.Entities.Content.Workflow.IWorkflowLogger, DotNetNuke.Entities.Content.Workflow.WorkflowLogger>.GetFactory()
|
Improve this Doc
View Source
GetWorkflowLogs(Int32, Int32)
Gets all logs regarding a specific workflow.
Declaration
public IEnumerable<WorkflowLog> GetWorkflowLogs(int contentItemId, int workflowId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | contentItemId | Content item Id related with the logs. |
System.Int32 | workflowId | Workflow Id owner of logs. |
Returns
Type | Description |
---|---|
IEnumerable<WorkflowLog> | A sequence of WorkflowLog instances. |