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 ofSynchronizableContentsCollectionModelable 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 voidconfigure(Configuration configuration)protected voidconfigureParameters(Configuration configuration)Configure the SCC parametersvoidcontextualize(Context context)voiddispose()I18nizableTextgetDescription()Get the description of this modelStringgetId()Retrieves the model id (an id must be unique in the familyModel.getFamilyId()I18nizableTextgetLabel()Get the label of this modelCollection<ModelItem>getModelItems()Retrieves all the model items of this accessorStringgetPluginName()Returns the plugin name of declaration (for debug purpose)Class<SynchronizableContentsCollection>getSynchronizableCollectionClass()Get the synchronizable collection classvoidservice(ServiceManager manager)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.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:
servicein interfaceServiceable- Throws:
ServiceException
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
setPluginInfo
public void setPluginInfo(String pluginName, String featureName, String id)
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
-
configure
public void configure(Configuration configuration) throws ConfigurationException
- Specified by:
configurein 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:
disposein interfaceDisposable
-
getId
public String getId()
Description copied from interface:ModelRetrieves the model id (an id must be unique in the familyModel.getFamilyId()
-
getLabel
public I18nizableText getLabel()
Description copied from interface:SynchronizableContentsCollectionModelGet the label of this model- Specified by:
getLabelin interfaceSynchronizableContentsCollectionModel- Returns:
- the label of this model
-
getDescription
public I18nizableText getDescription()
Description copied from interface:SynchronizableContentsCollectionModelGet the description of this model- Specified by:
getDescriptionin interfaceSynchronizableContentsCollectionModel- Returns:
- the description
-
getModelItems
public Collection<ModelItem> getModelItems()
Description copied from interface:ModelItemAccessorRetrieves all the model items of this accessor- Specified by:
getModelItemsin interfaceModelItemAccessor- Returns:
- the model items
-
getPluginName
public String getPluginName()
Description copied from interface:SynchronizableContentsCollectionModelReturns the plugin name of declaration (for debug purpose)- Specified by:
getPluginNamein interfaceSynchronizableContentsCollectionModel- Returns:
- the plugin name
-
getSynchronizableCollectionClass
public Class<SynchronizableContentsCollection> getSynchronizableCollectionClass()
Description copied from interface:SynchronizableContentsCollectionModelGet the synchronizable collection class- Specified by:
getSynchronizableCollectionClassin interfaceSynchronizableContentsCollectionModel- Returns:
- the synchronizable collection class
-
-