Class AbstractStaticRelativeDisableConditions<T extends DisableCondition>
java.lang.Object
org.ametys.runtime.model.disableconditions.AbstractDisableConditions<T>
org.ametys.runtime.model.disableconditions.AbstractStaticRelativeDisableConditions<T>
- Type Parameters:
T
- The type of disable condition
- All Implemented Interfaces:
DisableConditions<T>
,LogEnabled
,PluginAware
,Disposable
,Component
,Configurable
,Contextualizable
,Serviceable
- Direct Known Subclasses:
ConfigDisableConditions
,DataHolderStaticRelativeDisableConditions
,SkinDisableConditions
,UsersAndGroupsDataDisableConditions
,VoidStaticRelativeDisableConditions
public abstract class AbstractStaticRelativeDisableConditions<T extends DisableCondition>
extends AbstractDisableConditions<T>
implements Component, Serviceable, Contextualizable, Configurable, Disposable, LogEnabled, PluginAware
List of disable conditions
Composed by a list of sub conditions or conditions and a association operator
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.ametys.runtime.model.disableconditions.DisableConditions
DisableConditions.ASSOCIATION_TYPE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addDisableConditionComponent
(String conditionRole, Class<T> conditionClass, Configuration conditionConfiguration) Add a component of disable conditionvoid
configure
(Configuration configuration) protected String
configureDisableCondition
(Configuration conditionConfiguration) Configures the disable condition from the given configurationvoid
contextualize
(Context context) void
dispose()
protected Logger
Returns theLogger
.void
service
(ServiceManager manager) void
Called at creation time to provide aLogger
.void
setPluginInfo
(String pluginName, String featureName, String id) Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.Methods inherited from class org.ametys.runtime.model.disableconditions.AbstractDisableConditions
getAssociationType, getConditions, getSubConditions, setAssociation
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.ametys.runtime.model.disableconditions.DisableConditions
getExternalDisableConditions, init
-
Constructor Details
-
AbstractStaticRelativeDisableConditions
-
-
Method Details
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
configureDisableCondition
protected String configureDisableCondition(Configuration conditionConfiguration) throws ConfigurationException Configures the disable condition from the given configuration- Parameters:
conditionConfiguration
- the condition's configuration- Returns:
- the role of the condition
- Throws:
ConfigurationException
- if an error occurs
-
addDisableConditionComponent
protected void addDisableConditionComponent(String conditionRole, Class<T> conditionClass, Configuration conditionConfiguration) Add a component of disable condition- Parameters:
conditionRole
- the condition's roleconditionClass
- the condition's classconditionConfiguration
- the condition's configuration
-
setPluginInfo
Description copied from interface:PluginAware
Sets the plugin info relative to the current component.
Note : The feature name may be null if the targeted component in declared at plugin level.- Specified by:
setPluginInfo
in interfacePluginAware
- Parameters:
pluginName
- Unique identifier for the plugin hosting the extensionfeatureName
- Unique feature identifier (unique for a given pluginName)id
- Unique identifier of this component
-
getLogger
Returns theLogger
.- Returns:
- the
Logger
.
-
setLogger
Description copied from interface:LogEnabled
Called at creation time to provide aLogger
.- Specified by:
setLogger
in interfaceLogEnabled
- Parameters:
logger
- aLogger
for messages.
-
dispose
- Specified by:
dispose
in interfaceDisposable
-