se.entra.phantom.server.rconsole
Class AdminConfigDomain

java.lang.Object
  extended by se.entra.phantom.server.rconsole.AdminConfigDomain

public class AdminConfigDomain
extends Object

Handles a domain definition.


Constructor Summary
AdminConfigDomain(String data)
          Creates a resource from a string in the INI file.
AdminConfigDomain(String[] data)
          Creates a resource from a string array from a list box.
AdminConfigDomain(VirtualPanel vp)
          Creates a resource from a panel.
 
Method Summary
 String getDomainID()
          Gets the domain ID.
 String getListBoxString()
          Gets the listbox string for this domain.
 boolean isDomainAddressAllowed(SocketNameInterface sni)
          Checks if a connection is allowed or denied depending on the domain specification.
static void performListSelectionChange(VirtualPanel vp, VirtualCListBox list, int line, boolean hasSelection)
          Performs a list selection change in the resource definition panel.
 void setItem(IniFile ini)
          Sets the item in the ini file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AdminConfigDomain

public AdminConfigDomain(VirtualPanel vp)
Creates a resource from a panel.


AdminConfigDomain

public AdminConfigDomain(String[] data)
                  throws IOException
Creates a resource from a string array from a list box.

Throws:
IOException - when the data doesn't have the correct format.

AdminConfigDomain

public AdminConfigDomain(String data)
                  throws IOException
Creates a resource from a string in the INI file.

Throws:
IOException - when the data doesn't have the correct format.
Method Detail

performListSelectionChange

public static void performListSelectionChange(VirtualPanel vp,
                                              VirtualCListBox list,
                                              int line,
                                              boolean hasSelection)
Performs a list selection change in the resource definition panel.


getDomainID

public String getDomainID()
Gets the domain ID.


getListBoxString

public String getListBoxString()
Gets the listbox string for this domain.


setItem

public void setItem(IniFile ini)
Sets the item in the ini file.


isDomainAddressAllowed

public boolean isDomainAddressAllowed(SocketNameInterface sni)
Checks if a connection is allowed or denied depending on the domain specification.



Phantom® and NetPhantom® are registered trademarks of Codectica Systems SARL.
© Copyright Codectica Systems SARL, 2008. All rights reserved.