Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 1.45 KB

README.md

File metadata and controls

31 lines (20 loc) · 1.45 KB

Time Control

It is required OpenKM version 6.3.8 or upper to get this feature working.

  1. Upload the control-time.html to /okm:templates OpenKM

  2. Copy the UUID of the control-time ( UUID available from profile tab ), then go to Administration > Database query and execute the query below, replacing the UUID by your own

INSERT INTO OKM_CONFIG (CFG_KEY, CFG_TYPE, CFG_VALUE) VALUES ('time.control.template.uuid','string','YOUR_CONTROL_TIME_FILE_UUID'); 
  1. Create a folder named /okm:root/control-time

  2. Copy the UUID of the control-time folder ( UUID available from profile tab ), then go to Administration > Database query and execute the query below, replacing the UUID by your own

INSERT INTO OKM_CONFIG (CFG_KEY, CFG_TYPE, CFG_VALUE) VALUES ('time.control.folder.uuid','string','YOUR_CONTROL_TIME_FOLDER_UUI');
  1. Set the date format. Go to Administration > Database query and execute the query below
INSERT INTO OKM_CONFIG (CFG_KEY, CFG_TYPE, CFG_VALUE) VALUES ('time.control.date.format','string','dd/MM/yyyy');
  1. Download the latest Time-control-1.0.jar from releases github section and copy into your $TOMCAT_HOME/plugins folder

  2. Restart OpenKM

  3. Register Automation Rule for the event "User login" in post stage with a action "TimeControl".

  4. Register Automation Rule for the event "User logout" in pre stage with a action "TimeControl".