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_cocoonContextprivate ContentTypeExtensionPoint_cTypeExtensionPointprivate I18nUtils_i18nUtilsprivate ServiceManager_managerprivate AmetysObjectResolver_resolverprivate 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)voidcontextualize(Context context)voidinit()Method to be implemented by user Init class.voidservice(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:
servicein interfaceServiceable- Throws:
ServiceException
-
contextualize
public void contextualize(Context context) throws ContextException
- Specified by:
contextualizein interfaceContextualizable- Throws:
ContextException
-
init
public void init() throws Exception
Description copied from interface:InitMethod 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.WorkflowExceptionConfigurationException
-
-