Package com.jalios.jcms.policy
Class BasicImportPolicyFilter
- java.lang.Object
-
- com.jalios.jcms.policy.AbstractPolicyFilter
-
- com.jalios.jcms.policy.BasicImportPolicyFilter
-
- All Implemented Interfaces:
PluginComponent
,ImportPolicyFilter
,PolicyFilter
,java.lang.Comparable
public class BasicImportPolicyFilter extends AbstractPolicyFilter implements ImportPolicyFilter, PluginComponent
This class provides hooks for data export.- Since:
- jcms-5.7.2
- Version:
- $Revision: 20745 $
- Author:
- Olivier Dedieu
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
REVISION
-
Fields inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
order
-
-
Constructor Summary
Constructors Constructor Description BasicImportPolicyFilter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
afterImportData(org.jdom.Document doc, ImportOptions options, ImportStatus status, java.util.Map context)
This methods is called after an import as been performed.boolean
beforeImportData(org.jdom.Document doc, ImportOptions options, ImportStatus status, java.util.Map context)
This method is called before an import.boolean
init(Plugin plugin)
Initialize the component with the given plugin configuration-
Methods inherited from class com.jalios.jcms.policy.AbstractPolicyFilter
compareTo, equals, getOrder, setOrder
-
-
-
-
Field Detail
-
REVISION
public static final java.lang.String REVISION
- See Also:
- Constant Field Values
-
-
Method Detail
-
init
public boolean init(Plugin plugin)
Description copied from interface:PluginComponent
Initialize the component with the given plugin configuration- Specified by:
init
in interfacePluginComponent
- Parameters:
plugin
- the calling plugin- Returns:
- true if the component has been correctly initialized.
- Since:
- jcms-5.7.2
- See Also:
PluginComponent.init(Plugin)
-
beforeImportData
public boolean beforeImportData(org.jdom.Document doc, ImportOptions options, ImportStatus status, java.util.Map context)
Description copied from interface:ImportPolicyFilter
This method is called before an import. If it returns false, the import is rejected.- Specified by:
beforeImportData
in interfaceImportPolicyFilter
- Parameters:
doc
- the JDOM Document to importoptions
- the Import optionsstatus
- the Import statuscontext
- the import context- Returns:
- If it returns false, the import is rejected.
- See Also:
ImportPolicyFilter.beforeImportData(org.jdom.Document, com.jalios.jcms.mashup.ImportOptions, com.jalios.jcms.mashup.ImportStatus, java.util.Map)
-
afterImportData
public void afterImportData(org.jdom.Document doc, ImportOptions options, ImportStatus status, java.util.Map context)
Description copied from interface:ImportPolicyFilter
This methods is called after an import as been performed.- Specified by:
afterImportData
in interfaceImportPolicyFilter
- Parameters:
doc
- the JDOM Document that has been importedoptions
- the Import optionsstatus
- the Import statuscontext
- the import context- See Also:
ImportPolicyFilter.afterImportData(org.jdom.Document, com.jalios.jcms.mashup.ImportOptions, com.jalios.jcms.mashup.ImportStatus, java.util.Map)
-
-