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 ofSynchronizableContentsCollectionModel
able to populate contents from a LDAP source
-
-
Constructor Summary
Constructors Constructor Description DefaultSynchronizableContentsCollectionModel()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
configure(Configuration configuration)
protected void
configureParameters(Configuration configuration)
Configure the SCC parametersvoid
contextualize(Context context)
void
dispose()
I18nizableText
getDescription()
Get the description of this modelString
getId()
Retrieves the model id (an id must be unique in the familyModel.getFamilyId()
I18nizableText
getLabel()
Get the label of this modelCollection<ModelItem>
getModelItems()
Retrieves all the model items of this accessorString
getPluginName()
Returns the plugin name of declaration (for debug purpose)Class<SynchronizableContentsCollection>
getSynchronizableCollectionClass()
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 Detail
-
DefaultSynchronizableContentsCollectionModel
public DefaultSynchronizableContentsCollectionModel()
-
-
Method Detail
-
service
public void service(ServiceManager manager) throws ServiceException
- Specified by:
service
in interfaceServiceable
- Throws:
ServiceException
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualize
in interfaceContextualizable
- Throws:
ContextException
-
setPluginInfo
public void setPluginInfo(String pluginName, String featureName, String id)
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
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configure
in interfaceConfigurable
- Throws:
ConfigurationException
-
configureParameters
protected void configureParameters(Configuration configuration) throws ConfigurationException
Configure the SCC parameters- Parameters:
configuration
- the model configuration- Throws:
ConfigurationException
- if a configuration exception occurred
-
dispose
public void dispose()
- Specified by:
dispose
in interfaceDisposable
-
getId
public String getId()
Description copied from interface:Model
Retrieves the model id (an id must be unique in the familyModel.getFamilyId()
-
getLabel
public I18nizableText getLabel()
Description copied from interface:SynchronizableContentsCollectionModel
Get the label of this model- Specified by:
getLabel
in interfaceSynchronizableContentsCollectionModel
- Returns:
- the label of this model
-
getDescription
public I18nizableText getDescription()
Description copied from interface:SynchronizableContentsCollectionModel
Get the description of this model- Specified by:
getDescription
in interfaceSynchronizableContentsCollectionModel
- Returns:
- the description
-
getModelItems
public Collection<ModelItem> getModelItems()
Description copied from interface:ModelItemAccessor
Retrieves all the model items of this accessor- Specified by:
getModelItems
in interfaceModelItemAccessor
- Returns:
- the model items
-
getPluginName
public String 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
public Class<SynchronizableContentsCollection> getSynchronizableCollectionClass()
Description copied from interface:SynchronizableContentsCollectionModel
Get the synchronizable collection class- Specified by:
getSynchronizableCollectionClass
in interfaceSynchronizableContentsCollectionModel
- Returns:
- the synchronizable collection class
-
-