1 17 18 package org.jahia.services.audit; 19 20 import java.util.ArrayList ; 21 22 import org.jahia.data.JahiaDOMObject; 23 import org.jahia.data.events.JahiaEvent; 24 import org.jahia.exceptions.JahiaException; 25 import org.jahia.params.ParamBean; 26 import org.jahia.services.JahiaService; 27 import org.jahia.services.usermanager.JahiaUser; 28 29 30 38 39 public abstract class JahiaAuditLogManagerService extends JahiaService { 40 41 private String mServiceName = "JahiaAuditLogManager"; 42 43 44 51 public abstract boolean logEvent (JahiaEvent je, int objectType, String operationStr); 52 53 54 61 public abstract ArrayList getLog (int objectType, int objectID, ParamBean jParams); 62 63 64 69 public abstract ArrayList getLog (ParamBean jParams); 70 71 79 public abstract int flushLogs (int objectType, int objectID, ParamBean jParams); 80 81 87 89 95 public abstract boolean flushLogs (JahiaUser theUser, Integer maxlogsdays); 96 97 103 public abstract boolean flushSiteLogs (JahiaUser theUser, String siteKey); 104 105 106 114 public abstract int enforceMaxLogs (int MaxLogs); 115 116 126 public abstract JahiaDOMObject getLogsAsDOM (String siteKey) 127 throws JahiaException; 128 129 130 } 132 133 134 | Popular Tags |