Class AddPostgresUser
- java.lang.Object
-
- com.aoindustries.aoserv.examples.postgres.AddPostgresUser
-
public final class AddPostgresUser extends Object
Adds aUser
to the system.- Author:
- AO Industries, Inc.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static UserServer
addPostgresUser(AoservConnector conn, Account.Name packageName, User.Name username, Server.Name postgresServer, String server, String password)
Adds aUser
to the system.static void
addPostgresUser(SimpleAoservClient aoClient, Account.Name packageName, User.Name username, Server.Name postgresServer, String server, String password)
Adds aUser
to the system.
-
-
-
Method Detail
-
addPostgresUser
public static void addPostgresUser(SimpleAoservClient aoClient, Account.Name packageName, User.Name username, Server.Name postgresServer, String server, String password) throws IOException, SQLException
Adds aUser
to the system.- Parameters:
aoClient
- theSimpleAoservClient
to usepackageName
- the name of thePackage
username
- the new username to allocatepostgresServer
- the name of the PostgreSQL serverserver
- the hostname of the server to add the account topassword
- the password for the new account- Throws:
IOException
SQLException
-
addPostgresUser
public static UserServer addPostgresUser(AoservConnector conn, Account.Name packageName, User.Name username, Server.Name postgresServer, String server, String password) throws IOException, SQLException
Adds aUser
to the system.- Parameters:
conn
- theAoservConnector
to usepackageName
- the name of thePackage
username
- the new username to allocatepostgresServer
- the name of the PostgreSQL serverserver
- the hostname of the server to add the account topassword
- the password for the new account- Returns:
- the new
UserServer
- Throws:
IOException
SQLException
-
-