public abstract class AmbientDataContext extends Object
You can use this to get current state information from the ambient data framework, for example to get the current claim store:
ClaimStore claimStore = AmbientDataContext.getCurrentClaimStore();
Modifier | Constructor and Description |
---|---|
protected |
AmbientDataContext() |
protected |
AmbientDataContext(com.tridion.ambientdata.configuration.CartridgeCategory cartridgeCategory) |
Modifier and Type | Method and Description |
---|---|
static AmbientDataConfig |
getAmbientDataConfig()
Loads the
AmbientDataConfig from the context. |
com.tridion.ambientdata.configuration.CartridgeCategory |
getCartridgeCategory()
Gets configured cartridge category.
|
static AmbientDataContext |
getContext()
Gets the current ambient data context.
|
static ClaimStore |
getCurrentClaimStore()
Gets the current claim store.
|
protected abstract ClaimStore |
getCurrentClaimStoreImpl()
Gets the current claim store, to be implemented by subclasses.
|
static void |
setContext(AmbientDataContext context)
Sets the current ambient data context.
|
protected AmbientDataContext()
protected AmbientDataContext(com.tridion.ambientdata.configuration.CartridgeCategory cartridgeCategory)
public com.tridion.ambientdata.configuration.CartridgeCategory getCartridgeCategory()
public static AmbientDataContext getContext()
public static void setContext(AmbientDataContext context)
context
- The AmbientDataContext
to set as the current context.public static ClaimStore getCurrentClaimStore()
public static AmbientDataConfig getAmbientDataConfig()
AmbientDataConfig
from the context.protected abstract ClaimStore getCurrentClaimStoreImpl()
Copyright (c) 2014-2021 All Rights Reserved by the RWS Group for and on behalf of its affiliates and subsidiaries