/* * NOTE: This copyright does *not* cover user programs that use HQ * program services by normal system calls through the application * program interfaces provided as part of the Hyperic Plug-in Development * Kit or the Hyperic Client Development Kit - this is merely considered * normal use of the program, and does *not* fall under the heading of * "derived work". * * Copyright (C) [2004, 2005, 2006], Hyperic, Inc. * This file is part of HQ. * * HQ is free software; you can redistribute it and/or modify * it under the terms version 2 of the GNU General Public License as * published by the Free Software Foundation. This program is distributed * in the hope that it will be useful, but WITHOUT ANY WARRANTY; without * even the implied warranty of MERCHANTABILITY or FITNESS FOR A * PARTICULAR PURPOSE. See the GNU General Public License for more * details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 * USA. */ package org.hyperic.hq.events.server.session; import org.hyperic.hibernate.PersistedObject; import org.hyperic.hq.authz.server.session.Resource; import org.hyperic.util.data.IEventPoint; public class EventLog extends PersistedObject implements IEventPoint { private String _detail; private String _type; private long _timestamp; private String _subject; private String _status; private Resource _resource; private Integer instanceId; // Not persisted private int _eventId; protected EventLog() { } protected EventLog(Resource r, String subject, String type, String detail, long timestamp, String status, Integer instanceId) { _resource = r; _subject = subject; _type = type; _detail = detail; _timestamp = timestamp; _status = status; this.instanceId = instanceId; } public Integer getInstanceId() { return instanceId; } public void setInstanceId(Integer instanceId) { this.instanceId = instanceId; } public String getDetail() { return _detail; } protected void setDetail(String detail) { _detail = detail; } public String getType() { return _type; } protected void setType(String type) { _type = type; } public long getTimestamp() { return _timestamp; } protected void setTimestamp(long timestamp) { _timestamp = timestamp; } public String getSubject() { return _subject; } protected void setSubject(String subject) { _subject = subject; } public String getStatus() { return _status; } protected void setStatus(String status) { _status = status; } public Resource getResource() { return _resource; } protected void setResource(Resource r) { _resource = r; } public int getEventID() { return _eventId; } public void setEventID(int eventId) { _eventId = eventId; } }