com.sibvisions.rad.server.config
Class Zone

java.lang.Object
  extended by com.sibvisions.rad.server.config.UpToDateConfigFile
      extended by com.sibvisions.rad.server.config.Zone
All Implemented Interfaces:
Cloneable
Direct Known Subclasses:
ApplicationZone, AppSettings, ServerZone

public abstract class Zone
extends UpToDateConfigFile

A Zone is a special area in the server-side code area. A zone always has a configuration file.


Method Summary
 boolean addEncryptedNode(String pNode)
          Sets that a node is encrypted.
protected  XmlWorker createXmlWorker()
          Creates the default XmlWorker for reading the file.
 IConfiguration getConfig()
          Gets this Zone as wrapped IConfiguration.
 File getDirectory()
          Returns the zone directory.
static boolean isValid(File pDirectory)
          Checks if the zone is valid.
 boolean removeEncryptedNode(String pNode)
          Remose a node from the list of encrypted nodes.
 
Methods inherited from class com.sibvisions.rad.server.config.UpToDateConfigFile
clone, getFile, getNode, getNodes, getProperties, getProperty, getProperty, isSaveImmediate, isUpdateEnabled, isValid, reload, save, setContent, setNode, setProperty, setSaveImmediate, setUpdateEnabled, update
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createXmlWorker

protected XmlWorker createXmlWorker()
Creates the default XmlWorker for reading the file.

Overrides:
createXmlWorker in class UpToDateConfigFile
Returns:
the xml worker

isValid

public static boolean isValid(File pDirectory)
Checks if the zone is valid. That means that the configuration file exists.

Parameters:
pDirectory - the zone directory
Returns:
true if the zone is valid, otherwise false

getDirectory

public File getDirectory()
Returns the zone directory.

Returns:
the zone directory

getConfig

public IConfiguration getConfig()
Gets this Zone as wrapped IConfiguration.

Returns:
the zone with IConfiguration access

addEncryptedNode

public boolean addEncryptedNode(String pNode)
Sets that a node is encrypted.

Parameters:
pNode - the node name without indizes
Returns:
true if the node is added to the encryption list, false otherwise (maybe it is already added)

removeEncryptedNode

public boolean removeEncryptedNode(String pNode)
Remose a node from the list of encrypted nodes.

Parameters:
pNode - the node name without indizes
Returns:
true if the node is removed from the list, false otherwise


Copyright © 2009 SIB Visions GmbH. All Rights Reserved.