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 voidaddDisableConditionComponent(String conditionRole, Class<T> conditionClass, Configuration conditionConfiguration) Add a component of disable conditionvoidconfigure(Configuration configuration) protected StringconfigureDisableCondition(Configuration conditionConfiguration) Configures the disable condition from the given configurationvoidcontextualize(Context context) voiddispose()protected org.slf4j.LoggerReturns theLogger.voidservice(ServiceManager manager) voidsetLogger(org.slf4j.Logger logger) Called at creation time to provide aLogger.voidsetPluginInfo(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, setAssociationMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.ametys.runtime.model.disableconditions.DisableConditions
getExternalDisableConditions, init
-
Constructor Details
-
AbstractStaticRelativeDisableConditions
-
-
Method Details
-
contextualize
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
service
- Specified by:
servicein interfaceServiceable- Throws:
ServiceException
-
configure
- Specified by:
configurein 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:PluginAwareSets 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:
setPluginInfoin 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:LogEnabledCalled at creation time to provide aLogger.- Specified by:
setLoggerin interfaceLogEnabled- Parameters:
logger- aLoggerfor messages.
-
dispose
- Specified by:
disposein interfaceDisposable
-