org.fao.geonet.services.mef
Class Import
java.lang.Object
org.fao.geonet.services.MailSendingService
org.fao.geonet.services.NotInReadOnlyModeService
org.fao.geonet.services.mef.Import
- All Implemented Interfaces:
- Service
public class Import
- extends NotInReadOnlyModeService
Import MEF file.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Import
public Import()
init
public void init(String appPath,
ServiceConfig params)
throws Exception
- Specified by:
init in interface Service- Overrides:
init in class NotInReadOnlyModeService
- Parameters:
appPath - params -
- Throws:
Exception
serviceSpecificExec
public org.jdom.Element serviceSpecificExec(org.jdom.Element params,
ServiceContext context)
throws Exception
- Service to import MEF File.
- Specified by:
serviceSpecificExec in class NotInReadOnlyModeService
- Parameters:
params - List of parameters:
- mefFile: file to upload
- file_type: "single" for loading a single XML file, "mef" to
load MEF file (version 1 or 2). "mef" is the default value.
- Returns:
- List of imported ids.
- Throws:
Exception
Copyright © 2003-2013. All Rights Reserved.