Enum Class ObservedActivity
- All Implemented Interfaces:
Serializable,Comparable<ObservedActivity>,Constable
ObservedActivity maps each of the anchor element activity messages that the metadata access servers write to
their audit log onto the UsageActivity count that it increments. The anchor element that the activity is about is
always the third message parameter ({2}), and the calling user is the first ({0}). The creation of an anchor
element (METADATA-OBSERVABILITY-0001) is not counted.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe UsageActivity counts that an activity can increment.Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMETADATA-OBSERVABILITY-0008 - the anchor element was returned by a search.METADATA-OBSERVABILITY-0002 - the anchor element was retrieved by its identifier or name.METADATA-OBSERVABILITY-0007 - an element anchored to the anchor element was deleted.METADATA-OBSERVABILITY-0009 - an element anchored to the anchor element was returned by a search.METADATA-OBSERVABILITY-0003 - an element anchored to the anchor element was retrieved by its identifier or name.METADATA-OBSERVABILITY-0004 - an element anchored to the anchor element was created, linked, unlinked or updated.METADATA-OBSERVABILITY-0011 - feedback attached to the anchor element was deleted.METADATA-OBSERVABILITY-0005 - feedback attached to the anchor element was added or updated.METADATA-OBSERVABILITY-0006 - the properties of the anchor element were updated. -
Method Summary
Modifier and TypeMethodDescriptionstatic ObservedActivitygetActivity(String messageId) Return the activity reported by an audit log message, or null if the message is not one of the counted anchor element activity messages.Return the identifier of the audit log message that reports this activity.Return the count that this activity increments.toString()JSON-style toStringstatic ObservedActivityReturns the enum constant of this class with the specified name.static ObservedActivity[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANCHOR_RETRIEVED
METADATA-OBSERVABILITY-0002 - the anchor element was retrieved by its identifier or name. -
ATTACHMENT_RETRIEVED
METADATA-OBSERVABILITY-0003 - an element anchored to the anchor element was retrieved by its identifier or name. -
ATTACHMENT_UPDATED
METADATA-OBSERVABILITY-0004 - an element anchored to the anchor element was created, linked, unlinked or updated. -
FEEDBACK_UPDATED
METADATA-OBSERVABILITY-0005 - feedback attached to the anchor element was added or updated. -
PROPERTIES_UPDATED
METADATA-OBSERVABILITY-0006 - the properties of the anchor element were updated. -
ATTACHMENT_DELETED
METADATA-OBSERVABILITY-0007 - an element anchored to the anchor element was deleted. -
ANCHOR_FOUND
METADATA-OBSERVABILITY-0008 - the anchor element was returned by a search. -
ATTACHMENT_FOUND
METADATA-OBSERVABILITY-0009 - an element anchored to the anchor element was returned by a search. -
FEEDBACK_DELETED
METADATA-OBSERVABILITY-0011 - feedback attached to the anchor element was deleted.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getMessageId
Return the identifier of the audit log message that reports this activity.- Returns:
- message id
-
getUsageCount
Return the count that this activity increments.- Returns:
- usage count
-
getActivity
Return the activity reported by an audit log message, or null if the message is not one of the counted anchor element activity messages.- Parameters:
messageId- identifier of an audit log message- Returns:
- activity or null
-
toString
JSON-style toString- Overrides:
toStringin classEnum<ObservedActivity>- Returns:
- string of property names and values for this enum
-