Activity samples

Methods

findActivityLog

Description:

MethodReturn valuesDescription

findActivityLog(int page, int length, DateTime beginDate, DateTime endDate, String user, String action, String item)

ActivityList

Returns a list of all activity log by date, user, action and item.

The value of the item is the UUID of the node ( document, folder, mail or record ).

Example:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using com.openkm.sdk4csharp;
using com.openkm.sdk4csharp.bean;

namespace OKMRest
{
    public class Program
    {
        static void Main(string[] args)
        {
            String host = "http://localhost:8180/openkm";
            String username = "okmAdmin";
            String password = "admin";
            OKMWebservice ws = OKMWebservicesFactory.newInstance(host);

            try
            {
                ws.login(user, password);
                DateTime beginDate = new DateTime(2019, 7, 1);
DateTime endDate = new DateTime(2019, 8, 1);
ActivityList activityList = ws.findActivityLog(0, 10, beginDate, endDate, "testUser", "LOGIN", null); } catch (Exception e) { System.Console.WriteLine(e.ToString()); } } } }

getActivityActions

Description:

MethodReturn valuesDescription

getActivityActions()

List<String>

Returns a list of all the activity log actions.

Example:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using com.openkm.sdk4csharp;
using com.openkm.sdk4csharp.bean;

namespace OKMRest
{
    public class Program
    {
        static void Main(string[] args)
        {
            String host = "http://localhost:8180/openkm";
            String username = "okmAdmin";
            String password = "admin";
            OKMWebservice ws = OKMWebservicesFactory.newInstance(host);

            try
            {
                ws.login(user, password);
                List<string> actions = ws.getActivityActions();
foreach(string action in actions)
{
System.Console.WriteLine(action);
} } catch (Exception e) { System.Console.WriteLine(e.ToString()); } } } }