Class AuditEvent
- java.lang.Object
-
- org.eclipse.lyo.oslc4j.core.model.AbstractResource
-
- com.sodius.oslc.server.audit.model.AuditEvent
-
- All Implemented Interfaces:
IExtendedResource
,IResource
@OslcNamespace("http://www.sodius.com/ns/audit#") @OslcResourceShape(title="Audit Event Shape", describes="http://www.sodius.com/ns/audit#AuditEvent") public class AuditEvent extends AbstractResource
An event to report in Audit Log. Events can be generated usingbuilder(String)
.- Since:
- 3.7.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
AuditEvent.AuditEventBuilder
A builder of audit events.
-
Constructor Summary
Constructors Constructor Description AuditEvent()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAffectedResource(Link affectedResource)
void
addAuditAttribute(AuditAttribute attribute)
void
addChangedValue(ChangedValue changedValue)
static AuditEvent.AuditEventBuilder
builder(String title)
Creates an event builder for the given event title.Link[]
getAffectedResources()
AuditAttribute[]
getAuditAttributes()
ChangedValue[]
getChangedValues()
String
getLevel()
String
getTitle()
boolean
hasChangedValues()
void
setAffectedResources(Link[] affectedResources)
void
setAuditAttributes(AuditAttribute[] attributes)
void
setChangedValues(ChangedValue[] changedValues)
void
setLevel(String coverageLevel)
void
setTitle(String title)
-
Methods inherited from class org.eclipse.lyo.oslc4j.core.model.AbstractResource
addType, getAbout, getExtendedProperties, getTypes, setAbout, setExtendedProperties, setTypes
-
-
-
-
Method Detail
-
builder
public static AuditEvent.AuditEventBuilder builder(String title)
Creates an event builder for the given event title. The builder usesCoverageLevel.BASE
as default coverage level.- Parameters:
title
- the title of the event- Returns:
- an event builder.
- Throws:
NullPointerException
- if title is null
-
getTitle
@OslcDescription("Title (reference: Dublin Core) or often a single line summary of the resource represented as rich text in XHTML content.") @OslcOccurs(ExactlyOne) @OslcPropertyDefinition("http://purl.org/dc/terms/title") @OslcTitle("Title") @OslcValueType(XMLLiteral) public String getTitle()
-
setTitle
public void setTitle(String title)
-
getLevel
@OslcPropertyDefinition("http://www.sodius.com/ns/audit#level") public String getLevel()
-
setLevel
public void setLevel(String coverageLevel)
-
getAuditAttributes
@OslcName("auditAttribute") @OslcPropertyDefinition("http://www.sodius.com/ns/audit#auditAttribute") @OslcTitle("Attributes") @OslcRepresentation(Inline) @OslcValueType(LocalResource) public AuditAttribute[] getAuditAttributes()
-
addAuditAttribute
public void addAuditAttribute(AuditAttribute attribute)
-
setAuditAttributes
public void setAuditAttributes(AuditAttribute[] attributes)
-
getChangedValues
@OslcName("changedValue") @OslcPropertyDefinition("http://www.sodius.com/ns/audit#changedValue") @OslcTitle("ChangedValues") @OslcRepresentation(Inline) @OslcValueType(LocalResource) public ChangedValue[] getChangedValues()
-
hasChangedValues
public boolean hasChangedValues()
-
addChangedValue
public void addChangedValue(ChangedValue changedValue)
-
setChangedValues
public void setChangedValues(ChangedValue[] changedValues)
-
getAffectedResources
@OslcName("affectedResource") @OslcPropertyDefinition("http://www.sodius.com/ns/audit#affectedResource") public Link[] getAffectedResources()
-
addAffectedResource
public void addAffectedResource(Link affectedResource)
-
setAffectedResources
public void setAffectedResources(Link[] affectedResources)
-
-