org.productivity.java.syslog4j.impl.message.pci
Class PCISyslogMessage

java.lang.Object
  extended by org.productivity.java.syslog4j.impl.message.AbstractSyslogMessage
      extended by org.productivity.java.syslog4j.impl.message.pci.PCISyslogMessage
All Implemented Interfaces:
java.io.Serializable, PCISyslogMessageIF, SyslogMessageIF

public class PCISyslogMessage
extends AbstractSyslogMessage
implements PCISyslogMessageIF

PCISyslogMessage provides support for audit trails defined by section 10.3 of the PCI Data Security Standard (PCI DSS) versions 1.1 and 1.2.

More information on the PCI DSS specification is available here:

https://www.pcisecuritystandards.org/security_standards/pci_dss.shtml

The PCI DSS specification is Copyright 2008 PCI Security Standards Council LLC.

Syslog4j is licensed under the Lesser GNU Public License v2.1. A copy of the LGPL license is available in the META-INF folder in all distributions of Syslog4j and in the base directory of the "doc" ZIP.

Version:
$Id: PCISyslogMessage.java,v 1.3 2008/11/14 04:32:00 cvs Exp $
Author:
<syslog4j@productivity.org>
See Also:
Serialized Form

Field Summary
static java.lang.String AFFECTED_RESOURCE
           
protected  java.lang.String affectedResource
           
protected  java.lang.String date
           
static java.lang.String DATE
           
static java.lang.String EVENT_TYPE
           
protected  java.lang.String eventType
           
protected  java.lang.String origination
           
static java.lang.String ORIGINATION
           
protected  java.lang.String status
           
static java.lang.String STATUS
           
protected  java.lang.String time
           
static java.lang.String TIME
           
static java.lang.String USER_ID
           
protected  java.lang.String userId
           
 
Fields inherited from class org.productivity.java.syslog4j.impl.message.AbstractSyslogMessage
DEFAULT_DATE_FORMAT, DEFAULT_DELIMITER, DEFAULT_REPLACE_DELIMITER, DEFAULT_TIME_FORMAT, UNDEFINED
 
Constructor Summary
PCISyslogMessage()
           
PCISyslogMessage(java.util.Map fields)
           
PCISyslogMessage(PCISyslogMessageIF message)
           
PCISyslogMessage(java.lang.String userId, java.lang.String eventType, java.util.Date date, java.lang.String status, java.lang.String affectedResource)
           
PCISyslogMessage(java.lang.String userId, java.lang.String eventType, java.util.Date date, java.lang.String status, java.lang.String origination, java.lang.String affectedResource)
           
PCISyslogMessage(java.lang.String userId, java.lang.String eventType, java.lang.String status, java.lang.String affectedResource)
           
PCISyslogMessage(java.lang.String userId, java.lang.String eventType, java.lang.String status, java.lang.String origination, java.lang.String affectedResource)
           
PCISyslogMessage(java.lang.String userId, java.lang.String eventType, java.lang.String date, java.lang.String time, java.lang.String status, java.lang.String affectedResource)
           
PCISyslogMessage(java.lang.String userId, java.lang.String eventType, java.lang.String date, java.lang.String time, java.lang.String status, java.lang.String origination, java.lang.String affectedResource)
           
 
Method Summary
 java.lang.String createMessage()
           
 java.lang.String getAffectedResource()
           
 java.lang.String getDate()
           
 java.lang.String getEventType()
           
 java.lang.String getOrigination()
           
 java.lang.String getStatus()
           
 java.lang.String getTime()
           
 java.lang.String getUserId()
           
protected  void init(java.util.Map fields)
           
protected  void init(PCISyslogMessageIF message)
           
 void setAffectedResource(java.lang.String affectedResource)
           
 void setDate(java.util.Date date)
           
 void setDate(java.lang.String date)
           
 void setEventType(java.lang.String eventType)
           
 void setOrigination(java.lang.String origination)
           
 void setStatus(java.lang.String status)
           
 void setTime(java.lang.String time)
           
 void setUserId(java.lang.String userId)
           
 
Methods inherited from class org.productivity.java.syslog4j.impl.message.AbstractSyslogMessage
generateDate, generateDateAndTime, generateLocalHostName, generateTime, getDateFormat, getDelimiter, getReplaceDelimiter, getTimeFormat, nullOrEmpty, replaceDelimiter
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

USER_ID

public static final java.lang.String USER_ID
See Also:
Constant Field Values

EVENT_TYPE

public static final java.lang.String EVENT_TYPE
See Also:
Constant Field Values

DATE

public static final java.lang.String DATE
See Also:
Constant Field Values

TIME

public static final java.lang.String TIME
See Also:
Constant Field Values

STATUS

public static final java.lang.String STATUS
See Also:
Constant Field Values

ORIGINATION

public static final java.lang.String ORIGINATION
See Also:
Constant Field Values

AFFECTED_RESOURCE

public static final java.lang.String AFFECTED_RESOURCE
See Also:
Constant Field Values

userId

protected java.lang.String userId

eventType

protected java.lang.String eventType

date

protected java.lang.String date

time

protected java.lang.String time

status

protected java.lang.String status

origination

protected java.lang.String origination

affectedResource

protected java.lang.String affectedResource
Constructor Detail

PCISyslogMessage

public PCISyslogMessage()

PCISyslogMessage

public PCISyslogMessage(PCISyslogMessageIF message)

PCISyslogMessage

public PCISyslogMessage(java.util.Map fields)

PCISyslogMessage

public PCISyslogMessage(java.lang.String userId,
                        java.lang.String eventType,
                        java.lang.String status,
                        java.lang.String affectedResource)

PCISyslogMessage

public PCISyslogMessage(java.lang.String userId,
                        java.lang.String eventType,
                        java.lang.String status,
                        java.lang.String origination,
                        java.lang.String affectedResource)

PCISyslogMessage

public PCISyslogMessage(java.lang.String userId,
                        java.lang.String eventType,
                        java.lang.String date,
                        java.lang.String time,
                        java.lang.String status,
                        java.lang.String affectedResource)

PCISyslogMessage

public PCISyslogMessage(java.lang.String userId,
                        java.lang.String eventType,
                        java.lang.String date,
                        java.lang.String time,
                        java.lang.String status,
                        java.lang.String origination,
                        java.lang.String affectedResource)

PCISyslogMessage

public PCISyslogMessage(java.lang.String userId,
                        java.lang.String eventType,
                        java.util.Date date,
                        java.lang.String status,
                        java.lang.String affectedResource)

PCISyslogMessage

public PCISyslogMessage(java.lang.String userId,
                        java.lang.String eventType,
                        java.util.Date date,
                        java.lang.String status,
                        java.lang.String origination,
                        java.lang.String affectedResource)
Method Detail

init

protected void init(PCISyslogMessageIF message)

init

protected void init(java.util.Map fields)

getUserId

public java.lang.String getUserId()
Specified by:
getUserId in interface PCISyslogMessageIF

setUserId

public void setUserId(java.lang.String userId)

getEventType

public java.lang.String getEventType()
Specified by:
getEventType in interface PCISyslogMessageIF

setEventType

public void setEventType(java.lang.String eventType)

getDate

public java.lang.String getDate()
Specified by:
getDate in interface PCISyslogMessageIF

setDate

public void setDate(java.lang.String date)

setDate

public void setDate(java.util.Date date)

getTime

public java.lang.String getTime()
Specified by:
getTime in interface PCISyslogMessageIF

setTime

public void setTime(java.lang.String time)

getStatus

public java.lang.String getStatus()
Specified by:
getStatus in interface PCISyslogMessageIF

setStatus

public void setStatus(java.lang.String status)

getOrigination

public java.lang.String getOrigination()
Specified by:
getOrigination in interface PCISyslogMessageIF

setOrigination

public void setOrigination(java.lang.String origination)

getAffectedResource

public java.lang.String getAffectedResource()
Specified by:
getAffectedResource in interface PCISyslogMessageIF

setAffectedResource

public void setAffectedResource(java.lang.String affectedResource)

createMessage

public java.lang.String createMessage()
Specified by:
createMessage in interface SyslogMessageIF
Specified by:
createMessage in class AbstractSyslogMessage