org.fao.geonet.services.mef
Class Import

java.lang.Object
  extended by org.fao.geonet.services.MailSendingService
      extended by org.fao.geonet.services.NotInReadOnlyModeService
          extended by org.fao.geonet.services.mef.Import
All Implemented Interfaces:
Service

public class Import
extends NotInReadOnlyModeService

Import MEF file.


Constructor Summary
Import()
           
 
Method Summary
 void init(String appPath, ServiceConfig params)
           
 org.jdom.Element serviceSpecificExec(org.jdom.Element params, ServiceContext context)
          Service to import MEF File.
 
Methods inherited from class org.fao.geonet.services.NotInReadOnlyModeService
exec
 
Methods inherited from class org.fao.geonet.services.MailSendingService
sendMail
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Import

public Import()
Method Detail

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.