org.fao.geonet.services.mef
Class Export
java.lang.Object
org.fao.geonet.services.mef.Export
- All Implemented Interfaces:
- Service
public class Export
- extends Object
- implements Service
Export one or more metadata records in Metadata Exchange Format (MEF) file
format. See http ://trac.osgeo.org/geonetwork/wiki/MEF for more details.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Export
public Export()
init
public void init(String appPath,
ServiceConfig params)
throws Exception
- Specified by:
init in interface Service
- Throws:
Exception
exec
public org.jdom.Element exec(org.jdom.Element params,
ServiceContext context)
throws Exception
- Service to do a MEF export.
- Specified by:
exec in interface Service
- Parameters:
params - Service input parameters:
- uuid: Required for MEF1. Optional for MEF2, Current
selection is used
- format: One of
MEFLib.Format
- skipUuid: Does not add uuid and site information for
information file.
- version: If
MEFLib.Version parameter not set, return MEF
version 1 file (ie. need an UUID parameter).
- relation: export related metadata or not. True by default.
Related metadata is : child metadata (Using parentUuid search
field), service metadata (Using operatesOn search field),
related metadata (Using xml.relation.get service).
- Throws:
Exception
Copyright © 2003-2013. All Rights Reserved.