org.fao.geonet.services.util.z3950
Class Repositories

java.lang.Object
  extended by org.fao.geonet.services.util.z3950.Repositories

public class Repositories
extends Object

Z3950 Repositories - setup needed for both client and server ops


Constructor Summary
Repositories()
           
 
Method Summary
static boolean addRepo(ServiceContext context, String code, org.jdom.Element repo)
          Add a element to the template file or replace one that is already present
static boolean build(URL cfgUrl, ServiceContext context)
          builds the repositories config file from template
static boolean clearTemplate(ServiceContext context)
          clear the repositories template file - read the file and remove all entries except the GNSearchable one
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Repositories

public Repositories()
Method Detail

build

public static boolean build(URL cfgUrl,
                            ServiceContext context)
builds the repositories config file from template


clearTemplate

public static boolean clearTemplate(ServiceContext context)
clear the repositories template file - read the file and remove all entries except the GNSearchable one


addRepo

public static boolean addRepo(ServiceContext context,
                              String code,
                              org.jdom.Element repo)
Add a element to the template file or replace one that is already present



Copyright © 2003-2013. All Rights Reserved.