Package org.ametys.core.ui
Class StaticClientSideRelation
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.core.ui.StaticFileImportsClientSideElement
-
- org.ametys.core.ui.StaticClientSideElement
-
- org.ametys.core.ui.StaticClientSideRelation
-
- All Implemented Interfaces:
ClientSideElement
,ClientSideRelation
,LogEnabled
,PluginAware
,Configurable
,Serviceable
- Direct Known Subclasses:
SetContentAttributeClientSideElement
public class StaticClientSideRelation extends StaticClientSideElement implements ClientSideRelation
Default implementation of the ClientSideRelation that expects the configuration to define the supported relations.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.ametys.core.ui.ClientSideElement
ClientSideElement.Script, ClientSideElement.ScriptFile
-
-
Field Summary
Fields Modifier and Type Field Description (package private) List<String>
_sourceRelationType
(package private) List<String>
_targetRelationType
-
Fields inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_currentUserProvider, _dependencies, _featureName, _id, _pluginName, _rightManager, _rights, _rightsMode, _script
-
-
Constructor Summary
Constructors Constructor Description StaticClientSideRelation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private void
_addMessageTargetDependency(String messageTargetFactory)
void
configure(Configuration configuration)
List<String>
getSourceRelationType()
Return the type of source relation supported by this Client Side RelationList<String>
getTargetRelationType()
Return the type of target relation supported by this Client Side Relation-
Methods inherited from class org.ametys.core.ui.StaticClientSideElement
_configureClass, _configureParameters, _configureScript, configureInitialParameters
-
Methods inherited from class org.ametys.core.ui.StaticFileImportsClientSideElement
_configureDependencies, _configureImports, _configureRights, _configureRightsMode, getDependencies, getId, getPluginName, getRights, getScripts, getScripts, hasRight, service, setPluginInfo, toString
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.ametys.core.ui.ClientSideElement
getDependencies, getId, getPluginName, getRights, getScripts, getScripts
-
-
-
-
Field Detail
-
_sourceRelationType
List<String> _sourceRelationType
-
_targetRelationType
List<String> _targetRelationType
-
-
Constructor Detail
-
StaticClientSideRelation
public StaticClientSideRelation()
-
-
Method Detail
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Overrides:
configure
in classStaticFileImportsClientSideElement
- Throws:
ConfigurationException
-
_addMessageTargetDependency
private void _addMessageTargetDependency(String messageTargetFactory)
-
getSourceRelationType
public List<String> getSourceRelationType()
Description copied from interface:ClientSideRelation
Return the type of source relation supported by this Client Side Relation- Specified by:
getSourceRelationType
in interfaceClientSideRelation
- Returns:
- the type of source relation supported by this Client Side Relation
-
getTargetRelationType
public List<String> getTargetRelationType()
Description copied from interface:ClientSideRelation
Return the type of target relation supported by this Client Side Relation- Specified by:
getTargetRelationType
in interfaceClientSideRelation
- Returns:
- the type of target relation supported by this Client Side Relation
-
-