Class DefaultSynchronizableContentsCollectionModel
java.lang.Object
org.ametys.runtime.plugin.component.AbstractLogEnabled
org.ametys.plugins.contentio.synchronize.impl.DefaultSynchronizableContentsCollectionModel
- All Implemented Interfaces:
SynchronizableContentsCollectionModel
,Model
,ModelItemAccessor
,ModelItemContainer
,LogEnabled
,PluginAware
,Disposable
,Configurable
,Contextualizable
,Serviceable
public class DefaultSynchronizableContentsCollectionModel
extends AbstractLogEnabled
implements SynchronizableContentsCollectionModel, Serviceable, Contextualizable, PluginAware, Configurable, Disposable
Implementation of
SynchronizableContentsCollectionModel
able to populate contents from a LDAP source-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(Configuration configuration) protected void
configureParameters
(Configuration configuration) Configure the SCC parametersvoid
contextualize
(Context context) void
dispose()
Get the description of this modelgetId()
Retrieves the model id (an id must be unique in the familyModel.getFamilyId()
getLabel()
Get the label of this modelRetrieves all the model items of this accessorReturns the plugin name of declaration (for debug purpose)Get the synchronizable collection classvoid
service
(ServiceManager manager) 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.plugin.component.AbstractLogEnabled
getLogger, setLogger
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.ModelItemAccessor
getChild, getModelItem, hasModelItem
Methods inherited from interface org.ametys.plugins.contentio.synchronize.SynchronizableContentsCollectionModel
getFamilyId
-
Constructor Details
-
DefaultSynchronizableContentsCollectionModel
-
-
Method Details
-
service
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
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
-
configure
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
configureParameters
Configure the SCC parameters- Parameters:
configuration
- the model configuration- Throws:
ConfigurationException
- if a configuration exception occurred
-
dispose
- Specified by:
dispose
in interfaceDisposable
-
getId
Description copied from interface:Model
Retrieves the model id (an id must be unique in the familyModel.getFamilyId()
-
getLabel
Description copied from interface:SynchronizableContentsCollectionModel
Get the label of this model- Specified by:
getLabel
in interfaceSynchronizableContentsCollectionModel
- Returns:
- the label of this model
-
getDescription
Description copied from interface:SynchronizableContentsCollectionModel
Get the description of this model- Specified by:
getDescription
in interfaceSynchronizableContentsCollectionModel
- Returns:
- the description
-
getModelItems
Description copied from interface:ModelItemAccessor
Retrieves all the model items of this accessor- Specified by:
getModelItems
in interfaceModelItemAccessor
- Returns:
- the model items
-
getPluginName
Description copied from interface:SynchronizableContentsCollectionModel
Returns the plugin name of declaration (for debug purpose)- Specified by:
getPluginName
in interfaceSynchronizableContentsCollectionModel
- Returns:
- the plugin name
-
getSynchronizableCollectionClass
Description copied from interface:SynchronizableContentsCollectionModel
Get the synchronizable collection class- Specified by:
getSynchronizableCollectionClass
in interfaceSynchronizableContentsCollectionModel
- Returns:
- the synchronizable collection class
-