Class ReadOnlyBeanContextItemProvider
- java.lang.Object
-
- com.atlassian.confluence.impl.velocity.ReadOnlyBeanContextItemProvider
-
- All Implemented Interfaces:
VelocityContextItemProvider
public class ReadOnlyBeanContextItemProvider extends Object implements VelocityContextItemProvider
This provider should be used to put beans in ReadOnly wrappers prior to exposing them on the Velocity context. This is in contrast toNamedBeanContextItemProvider
which exposes the beans directly.- Since:
- 8.5.5
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ReadOnlyBeanContextItemProvider.ContextItems
-
Nested classes/interfaces inherited from interface com.atlassian.confluence.setup.velocity.VelocityContextItemProvider
VelocityContextItemProvider.VelocityContextItemKeys
-
-
Constructor Summary
Constructors Constructor Description ReadOnlyBeanContextItemProvider(SpaceSettingsManager spaceSettingsManager, UserAccessorInternal userAccessor, PersonService personService, com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager)
-
-
-
Constructor Detail
-
ReadOnlyBeanContextItemProvider
public ReadOnlyBeanContextItemProvider(SpaceSettingsManager spaceSettingsManager, UserAccessorInternal userAccessor, PersonService personService, com.atlassian.plugin.web.WebInterfaceManager webInterfaceManager)
-
-
Method Detail
-
getContextMap
public @NonNull Map<String,Object> getContextMap()
- Specified by:
getContextMap
in interfaceVelocityContextItemProvider
- Returns:
- A map of values to be used within a Velocity
Context
. Must not be null
-
-