Interface LogEntry
- All Superinterfaces:
Browsable, Extensible, Identifiable, OsidObject
A log entry consists of a time, an agent, and a priority type.
-
Method Summary
Modifier and TypeMethodDescriptiongetAgent()Gets theAgentwho created this entry.Gets the agentIdwho created this entry.getLogEntryRecord(Type logEntryRecordType) Gets the log entry record corresponding to the givenLogEntryrecordType.This method is used to retrieve an object implementing the requested record.Gets the priority level of this entry.Gets theResourcewho created this entry.Gets the resourceIdwho created this entry.Gets the time this entry was logged.Methods inherited from interface Browsable
getProperties, getPropertiesByRecordTypeModifier and TypeMethodDescriptionGets a list of properties.getPropertiesByRecordType(Type recordType) Gets a list of properties corresponding to the specified record type.Methods inherited from interface Extensible
getRecordTypes, hasRecordTypeModifier and TypeMethodDescriptionGets the record types available in this object.booleanhasRecordType(Type recordType) Tests if this object supports the given recordType.Methods inherited from interface Identifiable
getId, isCurrentMethods inherited from interface OsidObject
getDescription, getDisplayName, getGenusType, isOfGenusTypeModifier and TypeMethodDescriptionGets the description associated with this instance of this OSID object.Gets the preferred display name associated with this instance of this OSID object appropriate for display to the user.Gets the genus type of this object.booleanisOfGenusType(Type genusType) Tests if this object is of the given genusType.
-
Method Details
-
getPriority
Type getPriority()Gets the priority level of this entry.- Returns:
- the priority level
- Compliance:
mandatory- This method must be implemented.
-
getTimestamp
DateTime getTimestamp()Gets the time this entry was logged.- Returns:
- the time stamp of this entry
- Compliance:
mandatory- This method must be implemented.
-
getResourceId
Id getResourceId()Gets the resourceIdwho created this entry.- Returns:
- the resource
Id - Compliance:
mandatory- This method must be implemented.
-
getResource
Gets theResourcewho created this entry.- Returns:
- the
Resource - Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getAgentId
Id getAgentId()Gets the agentIdwho created this entry.- Returns:
- the agent
Id - Compliance:
mandatory- This method must be implemented.
-
getAgent
Gets theAgentwho created this entry.- Returns:
- the
Agent - Throws:
OperationFailedException- unable to complete request- Compliance:
mandatory- This method must be implemented.
-
getLogEntryRecord
Gets the log entry record corresponding to the givenLogEntryrecordType.This method is used to retrieve an object implementing the requested record. ThelogEntryRecordTypemay be theTypereturned ingetRecordTypes()or any of its parents in aTypehierarchy wherehasRecordType(logEntryRecordType)istrue.- Parameters:
logEntryRecordType- the type of log entry record to retrieve- Returns:
- the log entry record
- Throws:
NullArgumentException-logEntryRecordTypeisnullOperationFailedException- unable to complete requestUnsupportedException-hasRecordType(logEntryRecordType)isfalse- Compliance:
mandatory- This method must be implemented.
-