com.indexdata.torus2
Class Realm

java.lang.Object
  extended by com.indexdata.torus2.Realm

public class Realm
extends Object

Author:
jakub

Nested Class Summary
static class Realm.LayerType
           
 
Constructor Summary
protected Realm(RealmReaderWriter rw, RealmDefinition rd, String host)
           
 
Method Summary
 Record createMasterRecord(Record master)
           
 ParentRealm createParentRealm(ParentRealm pr)
           
static Realm createRealm(RealmDefinition rd, com.indexdata.masterkey.config.MasterkeyConfiguration cfg, String host, String proto)
           
 Record createRealmRecord(Record initial)
           
 void deleteMasterRecord(String id)
           
 void deleteParentRealm(String prId)
           
 void deleteRealmRecord(String id)
           
static void destroyRealm(String realmName, com.indexdata.masterkey.config.MasterkeyConfiguration cfg, String host, String proto)
           
 ResultSet getAllRecords(org.z3950.zing.cql.CQLNode query, List<Realm.LayerType> layerNames, List<String> facetNames, boolean allowTimedRefresh, boolean includeUnusedWorld)
           
 RealmDefinition getDefinition()
           
 Record getMasterRecord(String id)
           
 ParentRealm getParentRealm(String prId)
           
 List<ParentRealm> getParentRealms()
           
 Record getRealmRecord(String id, List<Realm.LayerType> layerNames, boolean allowTimedRefresh)
           
 ResultSet getRealmRecords(org.z3950.zing.cql.CQLNode query, List<Realm.LayerType> layerNames, List<String> facetNames, boolean allowTimedRefresh)
           
 Record getWorldRecord(String id, boolean allowTimedRefresh)
           
 ResultSet getWorldRecords(org.z3950.zing.cql.CQLNode query, List<String> facetNames, int recursive, boolean allowTimedRefresh)
           
 List<RealmDefinition> listAllRealms()
           
 List<Record> listMasterRecords()
           
static Realm openRealm(String realmName, com.indexdata.masterkey.config.MasterkeyConfiguration cfg, String host, String proto)
           
 Record updateMasterRecord(String id, Record update)
           
 ParentRealm updateParentRealm(String prId, ParentRealm pr)
           
 Record updateRealmRecord(String id, Record update)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Realm

protected Realm(RealmReaderWriter rw,
                RealmDefinition rd,
                String host)
Method Detail

createRealm

public static Realm createRealm(RealmDefinition rd,
                                com.indexdata.masterkey.config.MasterkeyConfiguration cfg,
                                String host,
                                String proto)
                         throws InternalIOException
Throws:
InternalIOException

openRealm

public static Realm openRealm(String realmName,
                              com.indexdata.masterkey.config.MasterkeyConfiguration cfg,
                              String host,
                              String proto)
                       throws InternalIOException
Throws:
InternalIOException

destroyRealm

public static void destroyRealm(String realmName,
                                com.indexdata.masterkey.config.MasterkeyConfiguration cfg,
                                String host,
                                String proto)
                         throws InternalIOException
Throws:
InternalIOException

getDefinition

public RealmDefinition getDefinition()

getWorldRecord

public Record getWorldRecord(String id,
                             boolean allowTimedRefresh)
                      throws InternalIOException,
                             MalformedInputException
Throws:
InternalIOException
MalformedInputException

getWorldRecords

public ResultSet getWorldRecords(org.z3950.zing.cql.CQLNode query,
                                 List<String> facetNames,
                                 int recursive,
                                 boolean allowTimedRefresh)
                          throws InternalIOException,
                                 QueryException
Throws:
InternalIOException
QueryException

getRealmRecord

public Record getRealmRecord(String id,
                             List<Realm.LayerType> layerNames,
                             boolean allowTimedRefresh)
                      throws InternalIOException
Throws:
InternalIOException

getRealmRecords

public ResultSet getRealmRecords(org.z3950.zing.cql.CQLNode query,
                                 List<Realm.LayerType> layerNames,
                                 List<String> facetNames,
                                 boolean allowTimedRefresh)
                          throws InternalIOException,
                                 QueryException
Throws:
InternalIOException
QueryException

updateRealmRecord

public Record updateRealmRecord(String id,
                                Record update)
                         throws InternalIOException,
                                MalformedInputException
Throws:
InternalIOException
MalformedInputException

createRealmRecord

public Record createRealmRecord(Record initial)
                         throws InternalIOException,
                                MalformedInputException
Throws:
InternalIOException
MalformedInputException

deleteRealmRecord

public void deleteRealmRecord(String id)
                       throws InternalIOException
Throws:
InternalIOException

getParentRealms

public List<ParentRealm> getParentRealms()
                                  throws InternalIOException
Throws:
InternalIOException

getParentRealm

public ParentRealm getParentRealm(String prId)
                           throws InternalIOException
Throws:
InternalIOException

createParentRealm

public ParentRealm createParentRealm(ParentRealm pr)
                              throws InternalIOException
Throws:
InternalIOException

updateParentRealm

public ParentRealm updateParentRealm(String prId,
                                     ParentRealm pr)
                              throws InternalIOException
Throws:
InternalIOException

deleteParentRealm

public void deleteParentRealm(String prId)
                       throws InternalIOException
Throws:
InternalIOException

getAllRecords

public ResultSet getAllRecords(org.z3950.zing.cql.CQLNode query,
                               List<Realm.LayerType> layerNames,
                               List<String> facetNames,
                               boolean allowTimedRefresh,
                               boolean includeUnusedWorld)
                        throws InternalIOException,
                               QueryException
Throws:
InternalIOException
QueryException

listAllRealms

public List<RealmDefinition> listAllRealms()
                                    throws InternalIOException
Throws:
InternalIOException

listMasterRecords

public List<Record> listMasterRecords()
                               throws InternalIOException
Throws:
InternalIOException

getMasterRecord

public Record getMasterRecord(String id)
                       throws InternalIOException
Throws:
InternalIOException

deleteMasterRecord

public void deleteMasterRecord(String id)
                        throws InternalIOException
Throws:
InternalIOException

createMasterRecord

public Record createMasterRecord(Record master)
                          throws InternalIOException,
                                 MalformedInputException
Throws:
InternalIOException
MalformedInputException

updateMasterRecord

public Record updateMasterRecord(String id,
                                 Record update)
                          throws InternalIOException,
                                 MalformedInputException
Throws:
InternalIOException
MalformedInputException


Copyright © 2008-2013 Index Data. All Rights Reserved.