Class SubscriptionContext
java.lang.Object
org.ametys.plugins.pagesubscription.context.SubscriptionContext
- Direct Known Subclasses:
PageSubscriptionContext,TagSubscriptionContext
Class to represent a context for
SubscriptionType-
Field Summary
FieldsModifier and TypeFieldDescriptionThe map of parameters -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends SubscriptionContext>
TaddParameter(String key, Object value) Add a parameter to the context<T extends SubscriptionContext>
TaddParameters(Map<String, Object> parameters) Add parameters to the contextgetParameterValue(String key) Get the parameter valuestatic SubscriptionContextCreates a new instance of aSubscriptionContext
-
Field Details
-
_contextParameters
The map of parameters
-
-
Constructor Details
-
SubscriptionContext
protected SubscriptionContext()Creates a new instance of aSubscriptionContext
-
-
Method Details
-
newInstance
Creates a new instance of aSubscriptionContext- Returns:
- the created instance
-
addParameter
Add a parameter to the context- Type Parameters:
T- theSubscriptionContext- Parameters:
key- the parameter keyvalue- the parameter value- Returns:
- the context
-
addParameters
Add parameters to the context- Type Parameters:
T- theSubscriptionContext- Parameters:
parameters- the parameters- Returns:
- the context
-
getParameterValue
Get the parameter value- Parameters:
key- the parameter key- Returns:
- the parameter value
-