Dashboard samples
Methods
getUserCheckedOutDocuments
Description:
Method | Return values | Description |
---|---|---|
getUserCheckedOutDocuments() |
List<DashboardDocumentResult> |
Returns a list of the documents in edition by the user. |
Example:
package com.openkm;
import com.openkm.sdk4j.OKMWebservices;
import com.openkm.sdk4j.OKMWebservicesFactory;
import com.openkm.sdk4j.bean.DashboardDocumentResult;
import java.util.List;
public class Test {
public static void main(String[] args) {
String host = "http://localhost:8080/OpenKM";
String username = "okmAdmin";
String password = "admin";
OKMWebservices ws = OKMWebservicesFactory.newInstance(host, username, password);
try {
List<DashboardDocumentResult> dashboardDocumentResults = ws.getUserCheckedOutDocuments();
for (DashboardDocumentResult dashboardDocumentResult : dashboardDocumentResults) {
System.out.println(dashboardDocumentResult);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
getUserLastModifiedDocuments
Description:
Method | Return values | Description |
---|---|---|
getUserLastModifiedDocuments() |
List<DashboardDocumentResult> |
Returns a list of the last documents modified by the user. |
Example:
package com.openkm;
import com.openkm.sdk4j.OKMWebservices;
import com.openkm.sdk4j.OKMWebservicesFactory;
import com.openkm.sdk4j.bean.DashboardDocumentResult;
import java.util.List;
public class Test {
public static void main(String[] args) {
String host = "http://localhost:8080/OpenKM";
String username = "okmAdmin";
String password = "admin";
OKMWebservices ws = OKMWebservicesFactory.newInstance(host, username, password);
try {
List<DashboardDocumentResult> dashboardDocumentResults = ws.getUserLastModifiedDocuments();
for (DashboardDocumentResult dashboardDocumentResult : dashboardDocumentResults) {
System.out.println(dashboardDocumentResult);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
getUserLockedDocuments
Description:
Method | Return values | Description |
---|---|---|
getUserLockedDocuments() |
List<DashboardDocumentResult> |
Returns a list of the documents locked by the user. |
Example:
package com.openkm;
import com.openkm.sdk4j.OKMWebservices;
import com.openkm.sdk4j.OKMWebservicesFactory;
import com.openkm.sdk4j.bean.DashboardDocumentResult;
import java.util.List;
public class Test {
public static void main(String[] args) {
String host = "http://localhost:8080/OpenKM";
String username = "okmAdmin";
String password = "admin";
OKMWebservices ws = OKMWebservicesFactory.newInstance(host, username, password);
try {
List<DashboardDocumentResult> dashboardDocumentResults = ws.getUserLockedDocuments();
for (DashboardDocumentResult dashboardDocumentResult : dashboardDocumentResults) {
System.out.println(dashboardDocumentResult);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
getUserSubscribedDocuments
Description:
Method | Return values | Description |
---|---|---|
getUserSubscribedDocuments() |
List<DashboardDocumentResult> |
Returns a list of the documents subscribed by the user. |
Example:
package com.openkm;
import com.openkm.sdk4j.OKMWebservices;
import com.openkm.sdk4j.OKMWebservicesFactory;
import com.openkm.sdk4j.bean.DashboardDocumentResult;
import java.util.List;
public class Test {
public static void main(String[] args) {
String host = "http://localhost:8080/OpenKM";
String username = "okmAdmin";
String password = "admin";
OKMWebservices ws = OKMWebservicesFactory.newInstance(host, username, password);
try {
List<DashboardDocumentResult> dashboardDocumentResults = ws.getUserSubscribedDocuments();
for (DashboardDocumentResult dashboardDocumentResult : dashboardDocumentResults) {
System.out.println(dashboardDocumentResult);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
getUserSubscribedFolders
Description:
Method | Return values | Description |
---|---|---|
getUserSubscribedFolders() |
List<DashboardFolderResult> |
Returns a list of the folders subscribed by the user. |
Example:
package com.openkm;
import com.openkm.sdk4j.OKMWebservices;
import com.openkm.sdk4j.OKMWebservicesFactory;
import com.openkm.sdk4j.bean.DashboardFolderResult;
import java.util.List;
public class Test {
public static void main(String[] args) {
String host = "http://localhost:8080/OpenKM";
String username = "okmAdmin";
String password = "admin";
OKMWebservices ws = OKMWebservicesFactory.newInstance(host, username, password);
try {
List<DashboardFolderResult> dashboardFolderResults = ws.getUserSubscribedFolders();
for (DashboardFolderResult dashboardFolderResult : dashboardFolderResults) {
System.out.println(dashboardFolderResult);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
getUserLastUploadedDocuments
Description:
Method | Return values | Description |
---|---|---|
getUserLastUploadedDocuments() |
List<DashboardDocumentResult> |
Returns a list of the last documents uploaded by the user. |
Example:
package com.openkm;
import com.openkm.sdk4j.OKMWebservices;
import com.openkm.sdk4j.OKMWebservicesFactory;
import com.openkm.sdk4j.bean.DashboardDocumentResult;
import java.util.List;
public class Test {
public static void main(String[] args) {
String host = "http://localhost:8080/OpenKM";
String username = "okmAdmin";
String password = "admin";
OKMWebservices ws = OKMWebservicesFactory.newInstance(host, username, password);
try {
List<DashboardDocumentResult> dashboardDocumentResults = ws.getUserLastUploadedDocuments();
for (DashboardDocumentResult dashboardDocumentResult : dashboardDocumentResults) {
System.out.println(dashboardDocumentResult);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
getUserLastDownloadedDocuments
Description:
Method | Return values | Description |
---|---|---|
getUserLastDownloadedDocuments() |
List<DashboardDocumentResult> |
Returns a list of the last documents downloaded by the user. |
Example:
package com.openkm;
import com.openkm.sdk4j.OKMWebservices;
import com.openkm.sdk4j.OKMWebservicesFactory;
import com.openkm.sdk4j.bean.DashboardDocumentResult;
import java.util.List;
public class Test {
public static void main(String[] args) {
String host = "http://localhost:8080/OpenKM";
String username = "okmAdmin";
String password = "admin";
OKMWebservices ws = OKMWebservicesFactory.newInstance(host, username, password);
try {
List<DashboardDocumentResult> dashboardDocumentResults = ws.getUserLastDownloadedDocuments();
for (DashboardDocumentResult dashboardDocumentResult : dashboardDocumentResults) {
System.out.println(dashboardDocumentResult);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
getUserLastImportedMails
Description:
Method | Return values | Description |
---|---|---|
getUserLastImportedMails() |
List<DashboardMailResult> |
Returns a list of the last mails imported by the user. |
Example:
package com.openkm;
import com.openkm.sdk4j.OKMWebservices;
import com.openkm.sdk4j.OKMWebservicesFactory;
import com.openkm.sdk4j.bean.DashboardMailResult;
import java.util.List;
public class Test {
public static void main(String[] args) {
String host = "http://localhost:8080/OpenKM";
String username = "okmAdmin";
String password = "admin";
OKMWebservices ws = OKMWebservicesFactory.newInstance(host, username, password);
try {
List<DashboardMailResult> dashboardMailResults = ws.getUserLastImportedMails();
for (DashboardMailResult dashboardMailResult : dashboardMailResults) {
System.out.println(dashboardMailResult);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
getUserLastImportedMailAttachments
Description:
Method | Return values | Description |
---|---|---|
getUserLastImportedMailAttachments() |
List<DashboardDocumentResult> |
Returns a list of the last mails imported with attachments by the user. |
Example:
package com.openkm;
import com.openkm.sdk4j.OKMWebservices;
import com.openkm.sdk4j.OKMWebservicesFactory;
import com.openkm.sdk4j.bean.DashboardDocumentResult;
import java.util.List;
public class Test {
public static void main(String[] args) {
String host = "http://localhost:8080/OpenKM";
String username = "okmAdmin";
String password = "admin";
OKMWebservices ws = OKMWebservicesFactory.newInstance(host, username, password);
try {
List<DashboardDocumentResult> dashboardDocumentResults = ws.getUserLastImportedMailAttachments();
for (DashboardDocumentResult dashboardDocumentResult : dashboardDocumentResults) {
System.out.println(dashboardDocumentResult);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
getUserSearches
Description:
Method | Return values | Description |
---|---|---|
getUserSearches() |
List<QueryParams> |
Returns a list of the searches saved by the user as user news. |
Example:
package com.openkm;
import com.openkm.sdk4j.OKMWebservices;
import com.openkm.sdk4j.OKMWebservicesFactory;
import com.openkm.sdk4j.bean.QueryParams;
import java.util.List;
public class Test {
public static void main(String[] args) {
String host = "http://localhost:8080/OpenKM";
String username = "okmAdmin";
String password = "admin";
OKMWebservices ws = OKMWebservicesFactory.newInstance(host, username, password);
try {
List<QueryParams> queryParams = ws.getUserSearchs();
for (QueryParams params : queryParams) {
System.out.println(params);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
findUserSearches
Description:
Method | Return values | Description |
---|---|---|
findUserSearches(int qpId) |
List<DashboardDocumentResult> |
Returns a list of nodes based in a search saved by the user ( search of type user news ). |
Example:
package com.openkm;
import com.openkm.sdk4j.OKMWebservices;
import com.openkm.sdk4j.OKMWebservicesFactory;
import com.openkm.sdk4j.bean.DashboardDocumentResult;
import java.util.List;
public class Test {
public static void main(String[] args) {
String host = "http://localhost:8080/OpenKM";
String username = "okmAdmin";
String password = "admin";
OKMWebservices ws = OKMWebservicesFactory.newInstance(host, username, password);
try {
List<DashboardDocumentResult> dashboardDocumentResults = ws.findUserSearches(3);
for (DashboardDocumentResult dashboardDocumentResult : dashboardDocumentResults) {
System.out.println(dashboardDocumentResult);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
getLastWeekTopDownloadedDocuments
Description:
Method | Return values | Description |
---|---|---|
getLastWeekTopDownloadedDocuments() |
List<DashboardDocumentResult> |
Returns a list of the last week top documents downloaded. |
Example:
package com.openkm;
import com.openkm.sdk4j.OKMWebservices;
import com.openkm.sdk4j.OKMWebservicesFactory;
import com.openkm.sdk4j.bean.DashboardDocumentResult;
import java.util.List;
public class Test {
public static void main(String[] args) {
String host = "http://localhost:8080/OpenKM";
String username = "okmAdmin";
String password = "admin";
OKMWebservices ws = OKMWebservicesFactory.newInstance(host, username, password);
try {
List<DashboardDocumentResult> dashboardDocumentResults = ws.getLastWeekTopDownloadedDocuments();
for (DashboardDocumentResult dashboardDocumentResult : dashboardDocumentResults) {
System.out.println(dashboardDocumentResult);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
getLastMonthTopDownloadedDocuments
Description:
Method | Return values | Description |
---|---|---|
getLastMonthTopDownloadedDocuments() |
List<DashboardDocumentResult> |
Returns a list of the last month top documents downloaded. |
Example:
package com.openkm;
import com.openkm.sdk4j.OKMWebservices;
import com.openkm.sdk4j.OKMWebservicesFactory;
import com.openkm.sdk4j.bean.DashboardDocumentResult;
import java.util.List;
public class Test {
public static void main(String[] args) {
String host = "http://localhost:8080/OpenKM";
String username = "okmAdmin";
String password = "admin";
OKMWebservices ws = OKMWebservicesFactory.newInstance(host, username, password);
try {
List<DashboardDocumentResult> dashboardDocumentResults = ws.getLastMonthTopDownloadedDocuments();
for (DashboardDocumentResult dashboardDocumentResult : dashboardDocumentResults) {
System.out.println(dashboardDocumentResult);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
getLastWeekTopModifiedDocuments
Description:
Method | Return values | Description |
---|---|---|
getLastWeekTopModifiedDocuments() |
List<DashboardDocumentResult> |
Returns a list of the last week top documents modified. |
Example:
package com.openkm;
import com.openkm.sdk4j.OKMWebservices;
import com.openkm.sdk4j.OKMWebservicesFactory;
import com.openkm.sdk4j.bean.DashboardDocumentResult;
import java.util.List;
public class Test {
public static void main(String[] args) {
String host = "http://localhost:8080/OpenKM";
String username = "okmAdmin";
String password = "admin";
OKMWebservices ws = OKMWebservicesFactory.newInstance(host, username, password);
try {
List<DashboardDocumentResult> dashboardDocumentResults = ws.getLastWeekTopModifiedDocuments();
for (DashboardDocumentResult dashboardDocumentResult : dashboardDocumentResults) {
System.out.println(dashboardDocumentResult);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
getLastMonthTopModifiedDocuments
Description:
Method | Return values | Description |
---|---|---|
getLastMonthTopModifiedDocuments() |
List<DashboardDocumentResult> |
Returns a list of the last month top documents modified. |
Example:
package com.openkm;
import com.openkm.sdk4j.OKMWebservices;
import com.openkm.sdk4j.OKMWebservicesFactory;
import com.openkm.sdk4j.bean.DashboardDocumentResult;
import java.util.List;
public class Test {
public static void main(String[] args) {
String host = "http://localhost:8080/OpenKM";
String username = "okmAdmin";
String password = "admin";
OKMWebservices ws = OKMWebservicesFactory.newInstance(host, username, password);
try {
List<DashboardDocumentResult> dashboardDocumentResults = ws.getLastMonthTopModifiedDocuments();
for (DashboardDocumentResult dashboardDocumentResult : dashboardDocumentResults) {
System.out.println(dashboardDocumentResult);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
getLastModifiedDocuments
Description:
Method | Return values | Description |
---|---|---|
getLastModifiedDocuments() |
List<DashboardDocumentResult> |
Returns a list of the last documents modified. |
Example:
package com.openkm;
import com.openkm.sdk4j.OKMWebservices;
import com.openkm.sdk4j.OKMWebservicesFactory;
import com.openkm.sdk4j.bean.DashboardDocumentResult;
import java.util.List;
public class Test {
public static void main(String[] args) {
String host = "http://localhost:8080/OpenKM";
String username = "okmAdmin";
String password = "admin";
OKMWebservices ws = OKMWebservicesFactory.newInstance(host, username, password);
try {
List<DashboardDocumentResult> dashboardDocumentResults = ws.getLastModifiedDocuments();
for (DashboardDocumentResult dashboardDocumentResult : dashboardDocumentResults) {
System.out.println(dashboardDocumentResult);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}
getLastUploadedDocuments
Description:
Method | Return values | Description |
---|---|---|
getLastUploadedDocuments() |
List<DashboardDocumentResult> |
Returns a list of the last documents uploaded. |
Example:
package com.openkm;
import com.openkm.sdk4j.OKMWebservices;
import com.openkm.sdk4j.OKMWebservicesFactory;
import com.openkm.sdk4j.bean.DashboardDocumentResult;
import java.util.List;
public class Test {
public static void main(String[] args) {
String host = "http://localhost:8080/OpenKM";
String username = "okmAdmin";
String password = "admin";
OKMWebservices ws = OKMWebservicesFactory.newInstance(host, username, password);
try {
List<DashboardDocumentResult> dashboardDocumentResults = ws.getLastUploadedDocuments();
for (DashboardDocumentResult dashboardDocumentResult : dashboardDocumentResults) {
System.out.println(dashboardDocumentResult);
}
} catch (Exception e) {
e.printStackTrace();
}
}
}