Interface ProductProvidedPropertyExtractor
public interface ProductProvidedPropertyExtractor
Extractor which allows a product to define how properties are provided to this analytics module
This interface defines commonly used methods from com.atlassian.analytics.client.extractor.PropertyExtractor which require product specific implementations. Allowing the product to define how information is extracted from an event within its own repository and exporting it via OSGi.
-
Method Summary
Modifier and TypeMethodDescriptionenrichProperties(Object event) Enrich propertiesdefault StringextractName(Object event) Extract the name of this event from the event objectextractProperty(String name, Object value) Extract propertiesdefault StringextractUser(Object event, Map<String, Object> properties) Extract the user from the eventdefault StringGet the application access for the logged in user associated with this event.
-
Method Details
-
extractProperty
Extract properties- Returns:
- a mapping of all valid properties on the value, prefixed with name + '.' or null if the calling class should handle the extraction
-
extractUser
Extract the user from the event- Returns:
- the user to be associated with this event or null if the calling class should handle the extraction
-
getApplicationAccess
Get the application access for the logged in user associated with this event. For un-logged in user, empty string "" should be returned- Returns:
- comma separated string representing application access or null if the calling class should handle the extraction
-
enrichProperties
Enrich properties- Returns:
- a map of properties to be added to the event or null if the calling class should handle the extraction
-
extractName
Extract the name of this event from the event object- Returns:
- the name of this event or null if the calling class should handle the extraction
-