AuditEvent_scheduledjob_add.java revision c0c79a3f09914f35651895ffc111883455b7f62d
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi/*
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * CDDL HEADER START
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi *
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * The contents of this file are subject to the terms of the
74a31ce69a88d851777ca840d31ec610ce9ecab3timh * Common Development and Distribution License, Version 1.0 only
74a31ce69a88d851777ca840d31ec610ce9ecab3timh * (the "License"). You may not use this file except in compliance
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * with the License.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi *
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * or http://www.opensolaris.org/os/licensing.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * See the License for the specific language governing permissions
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * and limitations under the License.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi *
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * When distributing Covered Code, include this CDDL HEADER in each
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * If applicable, add the following below this CDDL HEADER, with the
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * fields enclosed by brackets "[]" replaced with your own identifying
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * information: Portions Copyright [yyyy] [name of copyright owner]
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi *
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * CDDL HEADER END
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi */
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi/*
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * Copyright (c) 2001-2002 by Sun Microsystems, Inc.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * All rights reserved.
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi *
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi * ident "%Z%%M% %I% %E% SMI"
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi */
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindipackage com.sun.audit;
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi// audit event: AUE_scheduledjob_add = 6190
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindipublic class AuditEvent_scheduledjob_add extends AuditEvent {
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi private native void putEvent(byte[]session,
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi int status, int ret_val,
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi String object_name,
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi String domain,
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi String name_service,
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi String auth_used,
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi String initial_values);
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi public AuditEvent_scheduledjob_add(AuditSession session)
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi throws Exception {
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi super(session);
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi }
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi private String object_name_val = ""; // required
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi public void object_name(String setTo) {
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi object_name_val = setTo;
0eb822a1c0c2bea495647510b75f77f0e57633ebcindi }
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi private String domain_val; // optional
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi public void domain(String setTo) {
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi domain_val = setTo;
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi }
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi private String name_service_val = ""; // required
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi public void name_service(String setTo) {
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi name_service_val = setTo;
7aec1d6e253b21f9e9b7ef68b4d81ab9859b51fecindi }
private String auth_used_val; // optional
public void auth_used(String setTo) {
auth_used_val = setTo;
}
private String initial_values_val = ""; // required
public void initial_values(String setTo) {
initial_values_val = setTo;
}
public void putEvent(int status, int ret_val) {
byte[] session = super.sh.getSession();
if ((super.sh.AuditIsOn) && (super.sh.ValidSession))
putEvent(session, status, ret_val,
object_name_val,
domain_val,
name_service_val,
auth_used_val,
initial_values_val);
}
}