Class AddPostgresUser
java.lang.Object
com.aoindustries.aoserv.examples.postgres.AddPostgresUser
Adds a
User
to the system.- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionstatic 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 Details
-
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
-