|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.studio.apacheds.model.ServersHandler
public class ServersHandler
This class implements the servers handler.
It is used to store all the servers used in the plugin.
| Method Summary | |
|---|---|
void |
addListener(ServersHandlerListener listener)
Adds a listener to the servers handler. |
void |
addServer(Server server)
Adds a server. |
boolean |
containsServer(Server server)
Indicates if the server handler contains the given server. |
static ServersHandler |
getDefault()
Gets the default servers handler (singleton pattern). |
Server |
getServerById(java.lang.String id)
Gets the server associated with the given id. |
java.util.List<Server> |
getServersList()
Gets the servers list. |
boolean |
isNameAvailable(java.lang.String name)
Indicates if the given is available (i.e. |
void |
loadServersFromStore()
Loads the server from the file store. |
void |
removeListener(ServersHandlerListener listener)
Removes a listener to the servers handler. |
void |
removeServer(Server server)
Removes a server. |
void |
saveServersToStore()
Saves the server to the file store. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static ServersHandler getDefault()
public void addServer(Server server)
server - the server to be addedpublic void removeServer(Server server)
server - the server to be removedpublic boolean containsServer(Server server)
server - the server
true if the server hander contains the given server,
false if notpublic void addListener(ServersHandlerListener listener)
listener - the listener to addpublic void removeListener(ServersHandlerListener listener)
listener - the listener to removepublic void loadServersFromStore()
public void saveServersToStore()
public boolean isNameAvailable(java.lang.String name)
name - the name
true if the name is available, false if
notpublic java.util.List<Server> getServersList()
public Server getServerById(java.lang.String id)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||