com.cumulocity.model.event
Class AuditRecord

java.lang.Object
  extended by org.svenson.AbstractDynamicProperties
      extended by com.cumulocity.model.JSONBase
          extended by com.cumulocity.model.Document<GId>
              extended by com.cumulocity.model.event.Event
                  extended by com.cumulocity.model.event.AuditRecord
All Implemented Interfaces:
org.svenson.DynamicProperties

public class AuditRecord
extends Event

An audit record is a notification about an activity which might be relevant in terms of security or otherwise and should therefore be logged. The concept is defined in the Core Event Model.

Author:
dems16v0

Constructor Summary
AuditRecord()
           
 
Method Summary
 boolean equals(Object obj)
           
 String getActivity()
           
 String getApplication()
           
 Set<Change> getChanges()
           
 Severity getSeverity()
           
 String getUser()
           
 int hashCode()
           
 void setActivity(String activity)
           
 void setApplication(String application)
           
 void setChanges(Set<Change> changes)
           
 void setSeverity(Severity severity)
           
 void setUser(String user)
           
 
Methods inherited from class com.cumulocity.model.event.Event
getCreationTime, getSource, getText, getTime, getType, setCreationTime, setSource, setText, setTime, setType
 
Methods inherited from class com.cumulocity.model.Document
get, get, getFragment, getId, getInternalId, getRevision, set, set, set, setId, setInternalId, setRevision, toString
 
Methods inherited from class com.cumulocity.model.JSONBase
fromJSON, getJSONGenerator, getJSONParser, toJSON
 
Methods inherited from class org.svenson.AbstractDynamicProperties
getProperty, propertyNames, setProperty
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AuditRecord

public AuditRecord()
Method Detail

getUser

@JSONProperty(value="user",
              ignoreIfNull=true)
public String getUser()

setUser

public void setUser(String user)

getApplication

@JSONProperty(value="application",
              ignoreIfNull=true)
public String getApplication()

setApplication

public void setApplication(String application)

getActivity

@JSONProperty(value="activity",
              ignoreIfNull=true)
public String getActivity()

setActivity

public void setActivity(String activity)

getSeverity

@JSONConverter(type=SeverityConverter.class)
@JSONProperty(value="severity",
              ignoreIfNull=true)
public Severity getSeverity()

setSeverity

public void setSeverity(Severity severity)

getChanges

@JSONTypeHint(value=Change.class)
@JSONProperty(value="changes",
              ignoreIfNull=true)
public final Set<Change> getChanges()

setChanges

public final void setChanges(Set<Change> changes)

hashCode

public int hashCode()
Overrides:
hashCode in class Event

equals

public boolean equals(Object obj)
Overrides:
equals in class Event


Copyright © 2013 (C) Cumulocity GmbH. All Rights Reserved.