Class SSHConnectionController
- java.lang.Object
-
- org.teichert.databaseexplorer.databaseControllers.SSHConnectionController
-
public final class SSHConnectionController extends Object
Provides all methods to handle the internal database communication for SSHConnections and SSHPortForwardings.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
deleteSSHConnections(String... ids)
Deletes all SSH-Connections from the database by their id'svoid
deleteSSHConnections(SSHConnection... connections)
Deletes all SSH-Connections from the internal database.void
deleteSSHForwardings(String parentid, String... ids)
Deletes all Port-Forwadings from the database from the parent-id (SSH-Connection id) and by their id'svoid
deleteSSHForwardings(SSHPortForwarding... sshPortForwardings)
Deletes all Port-Forwadings from the database.static SSHConnectionController
getInstance()
List<SSHConnection>
loadSSHConnections(String... ids)
Loads all SSH-Connections from the database from the given id'sList<SSHPortForwarding>
loadSSHForwardings(String... ids)
Loads all Port-Forwadings from the database from the given id's.List<SSHPortForwarding>
loadSSHForwardingsForParent(String parentid)
Loads all Port-Forwadings from the database from the given parent-id (ssh-connection id)void
saveSSHConnections(List<SSHConnection> list)
Saves all SSH-Connections from the list into the internal database.void
saveSSHConnections(SSHConnection... sshConnections)
Saves all SSH-Connections into the internal database.void
saveSSHForwardings(List<SSHPortForwarding> list)
Saves all Post-Forwardings from the list into the internal database.void
saveSSHForwardings(SSHPortForwarding... sshPortForwardings)
Saves all Port-Forwardings into the internal database.
-
-
-
Method Detail
-
getInstance
public static SSHConnectionController getInstance()
-
deleteSSHConnections
public void deleteSSHConnections(SSHConnection... connections)
Deletes all SSH-Connections from the internal database.- Parameters:
connections
-
-
deleteSSHConnections
public void deleteSSHConnections(String... ids)
Deletes all SSH-Connections from the database by their id's- Parameters:
ids
-
-
deleteSSHForwardings
public void deleteSSHForwardings(SSHPortForwarding... sshPortForwardings)
Deletes all Port-Forwadings from the database.- Parameters:
sshPortForwardings
-
-
deleteSSHForwardings
public void deleteSSHForwardings(String parentid, String... ids)
Deletes all Port-Forwadings from the database from the parent-id (SSH-Connection id) and by their id's- Parameters:
parentid
-ids
-
-
loadSSHConnections
public List<SSHConnection> loadSSHConnections(String... ids)
Loads all SSH-Connections from the database from the given id's- Parameters:
ids
-- Returns:
-
loadSSHForwardingsForParent
public List<SSHPortForwarding> loadSSHForwardingsForParent(String parentid)
Loads all Port-Forwadings from the database from the given parent-id (ssh-connection id)- Parameters:
parentid
-- Returns:
-
loadSSHForwardings
public List<SSHPortForwarding> loadSSHForwardings(String... ids)
Loads all Port-Forwadings from the database from the given id's.- Parameters:
ids
-- Returns:
-
saveSSHConnections
public void saveSSHConnections(SSHConnection... sshConnections)
Saves all SSH-Connections into the internal database.- Parameters:
sshConnections
-
-
saveSSHForwardings
public void saveSSHForwardings(SSHPortForwarding... sshPortForwardings)
Saves all Port-Forwardings into the internal database.- Parameters:
sshPortForwardings
-
-
saveSSHConnections
public void saveSSHConnections(List<SSHConnection> list)
Saves all SSH-Connections from the list into the internal database.- Parameters:
list
-
-
saveSSHForwardings
public void saveSSHForwardings(List<SSHPortForwarding> list)
Saves all Post-Forwardings from the list into the internal database.- Parameters:
list
-
-
-