Package org.ametys.odf
Class PopulateOdfTableRef
- java.lang.Object
-
- org.ametys.runtime.plugin.component.AbstractLogEnabled
-
- org.ametys.odf.PopulateOdfTableRef
-
- All Implemented Interfaces:
LogEnabled
,Init
,Contextualizable
,Serviceable
public class PopulateOdfTableRef extends AbstractLogEnabled implements Init, Serviceable, Contextualizable
This init class populates reference tables contents base on WEB-INF/params/odf files
-
-
Field Summary
Fields Modifier and Type Field Description private Context
_cocoonContext
private ContentTypeExtensionPoint
_cTypeExtensionPoint
private I18nUtils
_i18nUtils
private ServiceManager
_manager
private AmetysObjectResolver
_resolver
private ContentWorkflowHelper
_workflowHelper
-
Constructor Summary
Constructors Constructor Description PopulateOdfTableRef()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private int
_createEntryIfNotExists(String cTypeId, Configuration itemConfig, String parentCategoryId)
private String
_transform2ContentTypeId(String filename)
void
contextualize(Context context)
void
init()
Method to be implemented by user Init class.void
service(ServiceManager manager)
-
Methods inherited from class org.ametys.runtime.plugin.component.AbstractLogEnabled
getLogger, setLogger
-
-
-
-
Field Detail
-
_resolver
private AmetysObjectResolver _resolver
-
_cocoonContext
private Context _cocoonContext
-
_i18nUtils
private I18nUtils _i18nUtils
-
_cTypeExtensionPoint
private ContentTypeExtensionPoint _cTypeExtensionPoint
-
_manager
private ServiceManager _manager
-
_workflowHelper
private ContentWorkflowHelper _workflowHelper
-
-
Constructor Detail
-
PopulateOdfTableRef
public PopulateOdfTableRef()
-
-
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
-
init
public void init() throws Exception
Description copied from interface:Init
Method to be implemented by user Init class. Here you should manage the business part of your application init. As an Avalon component, class extending this interface have access to all Cocoon-managed components, all plugins, ...
-
_transform2ContentTypeId
private String _transform2ContentTypeId(String filename)
-
_createEntryIfNotExists
private int _createEntryIfNotExists(String cTypeId, Configuration itemConfig, String parentCategoryId) throws com.opensymphony.workflow.WorkflowException, ConfigurationException
- Throws:
com.opensymphony.workflow.WorkflowException
ConfigurationException
-
-