Execute JAR
A JAR file is a compressed file that uses the same compression algorithms and format as ZIP files.
JAR files normally contain a number of Java classes and some metadata (a manifest file). Java classes are part of applications written in Java.
This feature helps administrators create their own classes, package them into a JAR file, and execute them from OpenKM.
Examples of usage:
- When an administrator wants to perform an operation across the entire repository that affects many nodes, based on some logic or specific conditions, they can take advantage of building minimal code with the OpenKM API. Some examples include changing security, removing or moving files, or renaming files based on their metadata values, among others.
- Check a crontab task.
Requirements:
- Must implement the class "public static void main(String[] args)".
package com.openkm;
public class CronTabTest {
public static void main(String[] args) {
// Some stuff here
}
}