Package com.aoindustries.aoserv.master
Class LinuxAccountHandler
java.lang.Object
com.aoindustries.aoserv.master.LinuxAccountHandler
The
LinuxAccountHandler
handles all the accesses to the Linux tables.- Author:
- AO Industries, Inc.
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addGroup
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, Group.Name name, Account.Name packageName, String type, boolean skipSecurityChecks) static int
addGroupServer
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, Group.Name group, int linuxServer, boolean skipSecurityChecks) static int
addGroupUser
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, Group.Name group, User.Name user, boolean isPrimary, boolean skipSecurityChecks) static int
addSystemGroup
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int linuxServer, Group.Name group, int gid) static int
addSystemUser
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int linuxServer, User.Name user, int uid, int gid, User.Gecos fullName, User.Gecos officeLocation, User.Gecos officePhone, User.Gecos homePhone, PosixPath home, PosixPath shell) static void
addUser
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, Group.Name primaryGroup, User.Gecos name, User.Gecos officeLocation, User.Gecos officePhone, User.Gecos homePhone, String type, PosixPath shell, boolean skipSecurityChecks) Adds a linux account.static int
addUserServer
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, int linuxServer, PosixPath home, boolean skipSecurityChecks) static boolean
canAccessGroupServer
(DatabaseConnection conn, RequestSource source, int groupServer) static boolean
canAccessUserServer
(DatabaseConnection conn, RequestSource source, int userServer) static void
checkAccessGroup
(DatabaseConnection conn, RequestSource source, String action, Group.Name group) static void
checkAccessGroupServer
(DatabaseConnection conn, RequestSource source, String action, int groupServer) static void
checkAccessGroupUser
(DatabaseConnection conn, RequestSource source, String action, int groupUser) static void
checkAccessUser
(DatabaseConnection conn, RequestSource source, String action, User.Name user) static void
checkAccessUserServer
(DatabaseConnection conn, RequestSource source, String action, int userServer) static boolean
comparePassword
(DatabaseConnection conn, RequestSource source, int userServer, String password) static long
copyHomeDirectory
(DatabaseConnection conn, RequestSource source, int from_userServer, int to_server) Copies the contents of a home directory from one server to another.static void
copyUserServerPassword
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int from_userServer, int to_userServer) Copies a password from one linux account to another.static void
disableUser
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int disableLog, User.Name user) static void
disableUserServer
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int disableLog, int userServer) static void
enableUser
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user) static void
enableUserServer
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer) static Account.Name
getAccountForGroup
(DatabaseConnection conn, Group.Name name) static Account.Name
getAccountForGroupServer
(DatabaseConnection conn, int groupServer) static Account.Name
getAccountForUserServer
(DatabaseConnection conn, int userServer) static List<Account.Name>
getAccountsForGroupUser
(DatabaseConnection conn, int groupUser) static String
getAutoresponderContent
(DatabaseConnection conn, RequestSource source, int userServer) Gets the contents of an autoresponder.static String
getCronTable
(DatabaseConnection conn, RequestSource source, int userServer) Gets the contents of a user cron table.static int
getDisableLogForUser
(DatabaseConnection conn, User.Name user) static int
getDisableLogForUserServer
(DatabaseConnection conn, int userServer) static int
getGidForGroupServer
(DatabaseConnection conn, int groupServer) static Group.Name
getGroupByGid
(DatabaseConnection conn, int linuxServer, int gid) Gets the group name that exists on a server for the given gid ornull
if the gid is not allocated to the server.static Group.Name
getGroupForGroupServer
(DatabaseConnection conn, int groupServer) static Group.Name
getGroupForGroupUser
(DatabaseConnection conn, int groupUser) static int
getGroupServer
(DatabaseConnection conn, Group.Name group, int linuxServer) static IntList
getGroupServersForGroup
(DatabaseConnection conn, Group.Name group) static Account.Name
getPackageForGroup
(DatabaseConnection conn, Group.Name group) static Account.Name
getPackageForGroupServer
(DatabaseConnection conn, int groupServer) static Group.Name
getPrimaryGroup
(DatabaseConnection conn, User.Name user, int operatingSystemVersion) static int
getServerForGroupServer
(DatabaseConnection conn, int groupServer) static int
getServerForUserServer
(DatabaseConnection conn, int userServer) static IntList
getServersForGroup
(DatabaseConnection conn, Group.Name group) static IntList
getServersForGroupUser
(DatabaseConnection conn, int groupUser) static IntList
getServersForUser
(DatabaseConnection conn, User.Name user) static String
getTypeForGroupServer
(DatabaseConnection conn, int groupServer) static String
getTypeForUser
(DatabaseConnection conn, User.Name user) static String
getTypeForUserServer
(DatabaseConnection conn, int userServer) static int
getUidForUserServer
(DatabaseConnection conn, int userServer) static User.Name
getUserByUid
(DatabaseConnection conn, int linuxServer, int uid) Gets the username that exists on a server for the given uid ornull
if the uid is not allocated to the server.static User.Name
getUserForGroupUser
(DatabaseConnection conn, int groupUser) static User.Name
getUserForUserServer
(DatabaseConnection conn, int userServer) static int
getUserServer
(DatabaseConnection conn, User.Name user, int linuxServer) static IntList
getUserServersForUser
(DatabaseConnection conn, User.Name user) static void
invalidateTable
(Table.TableId tableId) static boolean
isLinuxGroupAvailable
(DatabaseConnection conn, Group.Name name) static boolean
isUser
(DatabaseConnection conn, User.Name user) static boolean
isUserDisabled
(DatabaseConnection conn, User.Name user) static boolean
isUserEmailType
(DatabaseConnection conn, User.Name user) static boolean
isUserServerDisabled
(DatabaseConnection conn, int userServer) static boolean
isUserServerPasswordSet
(DatabaseConnection conn, RequestSource source, int userServer) static int
isUserServerProcmailManual
(DatabaseConnection conn, RequestSource source, int userServer) static void
removeGroup
(DatabaseConnection conn, InvalidateList invalidateList, Group.Name group) static void
removeGroup
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, Group.Name group) static void
removeGroupServer
(DatabaseConnection conn, InvalidateList invalidateList, int groupServer) static void
removeGroupServer
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int groupServer) static void
removeGroupUser
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int groupUser) static void
removeUser
(DatabaseConnection conn, InvalidateList invalidateList, User.Name user) static void
removeUser
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user) static void
removeUserServer
(DatabaseConnection conn, InvalidateList invalidateList, int userServer) static void
removeUserServer
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer) static void
setAutoresponder
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, int from, String subject, String content, boolean enabled) static void
setCronTable
(DatabaseConnection conn, RequestSource source, int userServer, String cronTable) Gets the contents of a user cron table.static void
setPrimaryGroupUser
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int groupUser) static void
setUserFullName
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, User.Gecos name) static void
setUserHomePhone
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, User.Gecos phone) static void
setUserOfficeLocation
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, User.Gecos location) static void
setUserOfficePhone
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, User.Gecos phone) static void
setUserServerJunkEmailRetention
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, int days) static void
setUserServerPassword
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, String password) static void
setUserServerPredisablePassword
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, String password) static void
setUserServerSpamAssassinDiscardScore
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, int discardScore) static void
setUserServerSpamAssassinIntegrationMode
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, String mode) static void
setUserServerSpamAssassinRequiredScore
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, float requiredScore) static void
setUserServerTrashEmailRetention
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, int days) static void
setUserServerUseInbox
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, boolean useInbox) static void
setUserShell
(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, PosixPath shell) static void
waitForUserRebuild
(DatabaseConnection conn, RequestSource source, int linuxServer) Waits for any pending or processing account rebuild to complete.
-
Method Details
-
checkAccessUser
public static void checkAccessUser(DatabaseConnection conn, RequestSource source, String action, User.Name user) throws IOException, SQLException - Throws:
IOException
SQLException
-
checkAccessGroup
public static void checkAccessGroup(DatabaseConnection conn, RequestSource source, String action, Group.Name group) throws IOException, SQLException - Throws:
IOException
SQLException
-
checkAccessGroupUser
public static void checkAccessGroupUser(DatabaseConnection conn, RequestSource source, String action, int groupUser) throws IOException, SQLException - Throws:
IOException
SQLException
-
canAccessUserServer
public static boolean canAccessUserServer(DatabaseConnection conn, RequestSource source, int userServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
checkAccessUserServer
public static void checkAccessUserServer(DatabaseConnection conn, RequestSource source, String action, int userServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
canAccessGroupServer
public static boolean canAccessGroupServer(DatabaseConnection conn, RequestSource source, int groupServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
checkAccessGroupServer
public static void checkAccessGroupServer(DatabaseConnection conn, RequestSource source, String action, int groupServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
addUser
public static void addUser(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, Group.Name primaryGroup, User.Gecos name, User.Gecos officeLocation, User.Gecos officePhone, User.Gecos homePhone, String type, PosixPath shell, boolean skipSecurityChecks) throws IOException, SQLException Adds a linux account.- Throws:
IOException
SQLException
-
addGroup
public static void addGroup(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, Group.Name name, Account.Name packageName, String type, boolean skipSecurityChecks) throws IOException, SQLException - Throws:
IOException
SQLException
-
addGroupUser
public static int addGroupUser(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, Group.Name group, User.Name user, boolean isPrimary, boolean skipSecurityChecks) throws IOException, SQLException - Throws:
IOException
SQLException
-
addUserServer
public static int addUserServer(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, int linuxServer, PosixPath home, boolean skipSecurityChecks) throws IOException, SQLException - Throws:
IOException
SQLException
-
addGroupServer
public static int addGroupServer(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, Group.Name group, int linuxServer, boolean skipSecurityChecks) throws IOException, SQLException - Throws:
IOException
SQLException
-
getGroupByGid
public static Group.Name getGroupByGid(DatabaseConnection conn, int linuxServer, int gid) throws SQLException Gets the group name that exists on a server for the given gid ornull
if the gid is not allocated to the server.- Throws:
SQLException
-
getUserByUid
public static User.Name getUserByUid(DatabaseConnection conn, int linuxServer, int uid) throws SQLException Gets the username that exists on a server for the given uid ornull
if the uid is not allocated to the server.- Throws:
SQLException
-
addSystemGroup
public static int addSystemGroup(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int linuxServer, Group.Name group, int gid) throws IOException, SQLException - Throws:
IOException
SQLException
-
addSystemUser
public static int addSystemUser(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int linuxServer, User.Name user, int uid, int gid, User.Gecos fullName, User.Gecos officeLocation, User.Gecos officePhone, User.Gecos homePhone, PosixPath home, PosixPath shell) throws IOException, SQLException - Throws:
IOException
SQLException
-
copyHomeDirectory
public static long copyHomeDirectory(DatabaseConnection conn, RequestSource source, int from_userServer, int to_server) throws IOException, SQLException Copies the contents of a home directory from one server to another.- Throws:
IOException
SQLException
-
copyUserServerPassword
public static void copyUserServerPassword(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int from_userServer, int to_userServer) throws IOException, SQLException Copies a password from one linux account to another.- Throws:
IOException
SQLException
-
disableUser
public static void disableUser(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int disableLog, User.Name user) throws IOException, SQLException - Throws:
IOException
SQLException
-
disableUserServer
public static void disableUserServer(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int disableLog, int userServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
enableUser
public static void enableUser(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user) throws IOException, SQLException - Throws:
IOException
SQLException
-
enableUserServer
public static void enableUserServer(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
getAutoresponderContent
public static String getAutoresponderContent(DatabaseConnection conn, RequestSource source, int userServer) throws IOException, SQLException Gets the contents of an autoresponder.- Throws:
IOException
SQLException
-
getCronTable
public static String getCronTable(DatabaseConnection conn, RequestSource source, int userServer) throws IOException, SQLException Gets the contents of a user cron table.- Throws:
IOException
SQLException
-
getDisableLogForUser
public static int getDisableLogForUser(DatabaseConnection conn, User.Name user) throws IOException, SQLException - Throws:
IOException
SQLException
-
getDisableLogForUserServer
public static int getDisableLogForUserServer(DatabaseConnection conn, int userServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
invalidateTable
-
isUser
public static boolean isUser(DatabaseConnection conn, User.Name user) throws IOException, SQLException - Throws:
IOException
SQLException
-
isUserDisabled
public static boolean isUserDisabled(DatabaseConnection conn, User.Name user) throws IOException, SQLException - Throws:
IOException
SQLException
-
isUserEmailType
public static boolean isUserEmailType(DatabaseConnection conn, User.Name user) throws IOException, SQLException - Throws:
IOException
SQLException
-
isUserServerDisabled
public static boolean isUserServerDisabled(DatabaseConnection conn, int userServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
isLinuxGroupAvailable
public static boolean isLinuxGroupAvailable(DatabaseConnection conn, Group.Name name) throws IOException, SQLException - Throws:
IOException
SQLException
-
getGroupServer
public static int getGroupServer(DatabaseConnection conn, Group.Name group, int linuxServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
getPrimaryGroup
public static Group.Name getPrimaryGroup(DatabaseConnection conn, User.Name user, int operatingSystemVersion) throws IOException, SQLException - Throws:
IOException
SQLException
-
isUserServerPasswordSet
public static boolean isUserServerPasswordSet(DatabaseConnection conn, RequestSource source, int userServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
isUserServerProcmailManual
public static int isUserServerProcmailManual(DatabaseConnection conn, RequestSource source, int userServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
removeUser
public static void removeUser(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user) throws IOException, SQLException - Throws:
IOException
SQLException
-
removeUser
public static void removeUser(DatabaseConnection conn, InvalidateList invalidateList, User.Name user) throws IOException, SQLException - Throws:
IOException
SQLException
-
removeGroup
public static void removeGroup(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, Group.Name group) throws IOException, SQLException - Throws:
IOException
SQLException
-
removeGroup
public static void removeGroup(DatabaseConnection conn, InvalidateList invalidateList, Group.Name group) throws IOException, SQLException - Throws:
IOException
SQLException
-
removeGroupUser
public static void removeGroupUser(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int groupUser) throws IOException, SQLException - Throws:
IOException
SQLException
-
removeUserServer
public static void removeUserServer(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
removeUserServer
public static void removeUserServer(DatabaseConnection conn, InvalidateList invalidateList, int userServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
removeGroupServer
public static void removeGroupServer(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int groupServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
removeGroupServer
public static void removeGroupServer(DatabaseConnection conn, InvalidateList invalidateList, int groupServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
setAutoresponder
public static void setAutoresponder(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, int from, String subject, String content, boolean enabled) throws IOException, SQLException - Throws:
IOException
SQLException
-
setCronTable
public static void setCronTable(DatabaseConnection conn, RequestSource source, int userServer, String cronTable) throws IOException, SQLException Gets the contents of a user cron table.- Throws:
IOException
SQLException
-
setUserHomePhone
public static void setUserHomePhone(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, User.Gecos phone) throws IOException, SQLException - Throws:
IOException
SQLException
-
setUserFullName
public static void setUserFullName(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, User.Gecos name) throws IOException, SQLException - Throws:
IOException
SQLException
-
setUserOfficeLocation
public static void setUserOfficeLocation(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, User.Gecos location) throws IOException, SQLException - Throws:
IOException
SQLException
-
setUserOfficePhone
public static void setUserOfficePhone(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, User.Gecos phone) throws IOException, SQLException - Throws:
IOException
SQLException
-
setUserShell
public static void setUserShell(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, PosixPath shell) throws IOException, SQLException - Throws:
IOException
SQLException
-
setUserServerPassword
public static void setUserServerPassword(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, String password) throws IOException, SQLException - Throws:
IOException
SQLException
-
setUserServerPredisablePassword
public static void setUserServerPredisablePassword(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, String password) throws IOException, SQLException - Throws:
IOException
SQLException
-
setUserServerJunkEmailRetention
public static void setUserServerJunkEmailRetention(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, int days) throws IOException, SQLException - Throws:
IOException
SQLException
-
setUserServerSpamAssassinIntegrationMode
public static void setUserServerSpamAssassinIntegrationMode(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, String mode) throws IOException, SQLException - Throws:
IOException
SQLException
-
setUserServerSpamAssassinRequiredScore
public static void setUserServerSpamAssassinRequiredScore(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, float requiredScore) throws IOException, SQLException - Throws:
IOException
SQLException
-
setUserServerSpamAssassinDiscardScore
public static void setUserServerSpamAssassinDiscardScore(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, int discardScore) throws IOException, SQLException - Throws:
IOException
SQLException
-
setUserServerTrashEmailRetention
public static void setUserServerTrashEmailRetention(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, int days) throws IOException, SQLException - Throws:
IOException
SQLException
-
setUserServerUseInbox
public static void setUserServerUseInbox(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, boolean useInbox) throws IOException, SQLException - Throws:
IOException
SQLException
-
waitForUserRebuild
public static void waitForUserRebuild(DatabaseConnection conn, RequestSource source, int linuxServer) throws IOException, SQLException Waits for any pending or processing account rebuild to complete.- Throws:
IOException
SQLException
-
getAccountForGroup
public static Account.Name getAccountForGroup(DatabaseConnection conn, Group.Name name) throws IOException, SQLException - Throws:
IOException
SQLException
-
getAccountsForGroupUser
public static List<Account.Name> getAccountsForGroupUser(DatabaseConnection conn, int groupUser) throws IOException, SQLException - Throws:
IOException
SQLException
-
getAccountForUserServer
public static Account.Name getAccountForUserServer(DatabaseConnection conn, int userServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
getAccountForGroupServer
public static Account.Name getAccountForGroupServer(DatabaseConnection conn, int groupServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
getGroupForGroupServer
public static Group.Name getGroupForGroupServer(DatabaseConnection conn, int groupServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
getServerForUserServer
public static int getServerForUserServer(DatabaseConnection conn, int userServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
getServerForGroupServer
public static int getServerForGroupServer(DatabaseConnection conn, int groupServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
getServersForUser
public static IntList getServersForUser(DatabaseConnection conn, User.Name user) throws IOException, SQLException - Throws:
IOException
SQLException
-
getServersForGroup
public static IntList getServersForGroup(DatabaseConnection conn, Group.Name group) throws IOException, SQLException - Throws:
IOException
SQLException
-
getServersForGroupUser
public static IntList getServersForGroupUser(DatabaseConnection conn, int groupUser) throws IOException, SQLException - Throws:
IOException
SQLException
-
getTypeForUser
public static String getTypeForUser(DatabaseConnection conn, User.Name user) throws IOException, SQLException - Throws:
IOException
SQLException
-
getTypeForUserServer
public static String getTypeForUserServer(DatabaseConnection conn, int userServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
getTypeForGroupServer
public static String getTypeForGroupServer(DatabaseConnection conn, int groupServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
getUserServer
public static int getUserServer(DatabaseConnection conn, User.Name user, int linuxServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
getUserServersForUser
public static IntList getUserServersForUser(DatabaseConnection conn, User.Name user) throws IOException, SQLException - Throws:
IOException
SQLException
-
getGroupServersForGroup
public static IntList getGroupServersForGroup(DatabaseConnection conn, Group.Name group) throws IOException, SQLException - Throws:
IOException
SQLException
-
getPackageForGroup
public static Account.Name getPackageForGroup(DatabaseConnection conn, Group.Name group) throws IOException, SQLException - Throws:
IOException
SQLException
-
getPackageForGroupServer
public static Account.Name getPackageForGroupServer(DatabaseConnection conn, int groupServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
getGidForGroupServer
public static int getGidForGroupServer(DatabaseConnection conn, int groupServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
getUidForUserServer
public static int getUidForUserServer(DatabaseConnection conn, int userServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
getUserForGroupUser
public static User.Name getUserForGroupUser(DatabaseConnection conn, int groupUser) throws IOException, SQLException - Throws:
IOException
SQLException
-
getGroupForGroupUser
public static Group.Name getGroupForGroupUser(DatabaseConnection conn, int groupUser) throws IOException, SQLException - Throws:
IOException
SQLException
-
getUserForUserServer
public static User.Name getUserForUserServer(DatabaseConnection conn, int userServer) throws IOException, SQLException - Throws:
IOException
SQLException
-
comparePassword
public static boolean comparePassword(DatabaseConnection conn, RequestSource source, int userServer, String password) throws IOException, SQLException - Throws:
IOException
SQLException
-
setPrimaryGroupUser
public static void setPrimaryGroupUser(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int groupUser) throws IOException, SQLException - Throws:
IOException
SQLException
-