public class SegmentIOComponent extends DefaultComponent implements SegmentIO
Modifier and Type | Field and Description |
---|---|
static String |
CONFIG_EP |
static String |
FILTERS_EP |
static String |
MAPPER_EP |
static String |
PROVIDER_EP |
static String |
WRITE_KEY |
Constructor and Description |
---|
SegmentIOComponent() |
getAdapter, getApplicationStartedOrder, getLastModified, registerExtension, setLastModified, unregisterContribution, unregisterExtension
public static final String WRITE_KEY
public static final String CONFIG_EP
public static final String MAPPER_EP
public static final String PROVIDER_EP
public static final String FILTERS_EP
public org.osgi.framework.Bundle getBundle()
public void activate(ComponentContext context)
Component
This method is called by the runtime when a component is activated.
activate
in interface Component
activate
in class DefaultComponent
context
- the runtime contextpublic void deactivate(ComponentContext context)
Component
This method is called by the runtime when a component is deactivated.
deactivate
in interface Component
deactivate
in class DefaultComponent
context
- the runtime contextpublic void registerContribution(Object contribution, String extensionPoint, ComponentInstance contributor)
registerContribution
in class DefaultComponent
public void applicationStarted(ComponentContext context)
Component
applicationStarted
in interface Component
applicationStarted
in class DefaultComponent
public String getWriteKey()
getWriteKey
in interface SegmentIO
public Map<String,String> getGlobalParameters()
getGlobalParameters
in interface SegmentIO
public void identify(NuxeoPrincipal principal)
public com.github.segmentio.models.Providers getProviders()
getProviders
in interface SegmentIO
public void identify(NuxeoPrincipal principal, Map<String,Serializable> metadata)
public void track(NuxeoPrincipal principal, String eventName)
public void track(NuxeoPrincipal principal, String eventName, Map<String,Serializable> metadata)
public Map<String,List<SegmentIOMapper>> getAllMappers()
public SegmentIOUserFilter getUserFilters()
getUserFilters
in interface SegmentIO
Copyright © 2015 Nuxeo SA. All rights reserved.