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 voidaddGroup(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, Group.Name name, Account.Name packageName, String type, boolean skipSecurityChecks) static intaddGroupServer(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, Group.Name group, int linuxServer, boolean skipSecurityChecks) static intaddGroupUser(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, Group.Name group, User.Name user, boolean isPrimary, boolean skipSecurityChecks) static intaddSystemGroup(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int linuxServer, Group.Name group, int gid) static intaddSystemUser(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 voidaddUser(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 intaddUserServer(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, int linuxServer, PosixPath home, boolean skipSecurityChecks) static booleancanAccessGroupServer(DatabaseConnection conn, RequestSource source, int groupServer) static booleancanAccessUserServer(DatabaseConnection conn, RequestSource source, int userServer) static voidcheckAccessGroup(DatabaseConnection conn, RequestSource source, String action, Group.Name group) static voidcheckAccessGroupServer(DatabaseConnection conn, RequestSource source, String action, int groupServer) static voidcheckAccessGroupUser(DatabaseConnection conn, RequestSource source, String action, int groupUser) static voidcheckAccessUser(DatabaseConnection conn, RequestSource source, String action, User.Name user) static voidcheckAccessUserServer(DatabaseConnection conn, RequestSource source, String action, int userServer) static booleancomparePassword(DatabaseConnection conn, RequestSource source, int userServer, String password) static longcopyHomeDirectory(DatabaseConnection conn, RequestSource source, int from_userServer, int to_server) Copies the contents of a home directory from one server to another.static voidcopyUserServerPassword(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int from_userServer, int to_userServer) Copies a password from one linux account to another.static voiddisableUser(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int disableLog, User.Name user) static voiddisableUserServer(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int disableLog, int userServer) static voidenableUser(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user) static voidenableUserServer(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer) static Account.NamegetAccountForGroup(DatabaseConnection conn, Group.Name name) static Account.NamegetAccountForGroupServer(DatabaseConnection conn, int groupServer) static Account.NamegetAccountForUserServer(DatabaseConnection conn, int userServer) static List<Account.Name> getAccountsForGroupUser(DatabaseConnection conn, int groupUser) static StringgetAutoresponderContent(DatabaseConnection conn, RequestSource source, int userServer) Gets the contents of an autoresponder.static StringgetCronTable(DatabaseConnection conn, RequestSource source, int userServer) Gets the contents of a user cron table.static intgetDisableLogForUser(DatabaseConnection conn, User.Name user) static intgetDisableLogForUserServer(DatabaseConnection conn, int userServer) static intgetGidForGroupServer(DatabaseConnection conn, int groupServer) static Group.NamegetGroupByGid(DatabaseConnection conn, int linuxServer, int gid) Gets the group name that exists on a server for the given gid ornullif the gid is not allocated to the server.static Group.NamegetGroupForGroupServer(DatabaseConnection conn, int groupServer) static Group.NamegetGroupForGroupUser(DatabaseConnection conn, int groupUser) static intgetGroupServer(DatabaseConnection conn, Group.Name group, int linuxServer) static IntListgetGroupServersForGroup(DatabaseConnection conn, Group.Name group) static Account.NamegetPackageForGroup(DatabaseConnection conn, Group.Name group) static Account.NamegetPackageForGroupServer(DatabaseConnection conn, int groupServer) static Group.NamegetPrimaryGroup(DatabaseConnection conn, User.Name user, int operatingSystemVersion) static intgetServerForGroupServer(DatabaseConnection conn, int groupServer) static intgetServerForUserServer(DatabaseConnection conn, int userServer) static IntListgetServersForGroup(DatabaseConnection conn, Group.Name group) static IntListgetServersForGroupUser(DatabaseConnection conn, int groupUser) static IntListgetServersForUser(DatabaseConnection conn, User.Name user) static StringgetTypeForGroupServer(DatabaseConnection conn, int groupServer) static StringgetTypeForUser(DatabaseConnection conn, User.Name user) static StringgetTypeForUserServer(DatabaseConnection conn, int userServer) static intgetUidForUserServer(DatabaseConnection conn, int userServer) static User.NamegetUserByUid(DatabaseConnection conn, int linuxServer, int uid) Gets the username that exists on a server for the given uid ornullif the uid is not allocated to the server.static User.NamegetUserForGroupUser(DatabaseConnection conn, int groupUser) static User.NamegetUserForUserServer(DatabaseConnection conn, int userServer) static intgetUserServer(DatabaseConnection conn, User.Name user, int linuxServer) static IntListgetUserServersForUser(DatabaseConnection conn, User.Name user) static voidinvalidateTable(Table.TableId tableId) static booleanisLinuxGroupAvailable(DatabaseConnection conn, Group.Name name) static booleanisUser(DatabaseConnection conn, User.Name user) static booleanisUserDisabled(DatabaseConnection conn, User.Name user) static booleanisUserEmailType(DatabaseConnection conn, User.Name user) static booleanisUserServerDisabled(DatabaseConnection conn, int userServer) static booleanisUserServerPasswordSet(DatabaseConnection conn, RequestSource source, int userServer) static intisUserServerProcmailManual(DatabaseConnection conn, RequestSource source, int userServer) static voidremoveGroup(DatabaseConnection conn, InvalidateList invalidateList, Group.Name group) static voidremoveGroup(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, Group.Name group) static voidremoveGroupServer(DatabaseConnection conn, InvalidateList invalidateList, int groupServer) static voidremoveGroupServer(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int groupServer) static voidremoveGroupUser(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int groupUser) static voidremoveUser(DatabaseConnection conn, InvalidateList invalidateList, User.Name user) static voidremoveUser(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user) static voidremoveUserServer(DatabaseConnection conn, InvalidateList invalidateList, int userServer) static voidremoveUserServer(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer) static voidsetAutoresponder(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, int from, String subject, String content, boolean enabled) static voidsetCronTable(DatabaseConnection conn, RequestSource source, int userServer, String cronTable) Gets the contents of a user cron table.static voidsetPrimaryGroupUser(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int groupUser) static voidsetUserFullName(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, User.Gecos name) static voidsetUserHomePhone(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, User.Gecos phone) static voidsetUserOfficeLocation(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, User.Gecos location) static voidsetUserOfficePhone(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, User.Gecos phone) static voidsetUserServerJunkEmailRetention(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, int days) static voidsetUserServerPassword(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, String password) static voidsetUserServerPredisablePassword(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, String password) static voidsetUserServerSpamAssassinDiscardScore(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, int discardScore) static voidsetUserServerSpamAssassinIntegrationMode(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, String mode) static voidsetUserServerSpamAssassinRequiredScore(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, float requiredScore) static voidsetUserServerTrashEmailRetention(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, int days) static voidsetUserServerUseInbox(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, boolean useInbox) static voidsetUserShell(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, PosixPath shell) static voidwaitForUserRebuild(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:
IOExceptionSQLException
-
checkAccessGroup
public static void checkAccessGroup(DatabaseConnection conn, RequestSource source, String action, Group.Name group) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
checkAccessGroupUser
public static void checkAccessGroupUser(DatabaseConnection conn, RequestSource source, String action, int groupUser) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
canAccessUserServer
public static boolean canAccessUserServer(DatabaseConnection conn, RequestSource source, int userServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
checkAccessUserServer
public static void checkAccessUserServer(DatabaseConnection conn, RequestSource source, String action, int userServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
canAccessGroupServer
public static boolean canAccessGroupServer(DatabaseConnection conn, RequestSource source, int groupServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
checkAccessGroupServer
public static void checkAccessGroupServer(DatabaseConnection conn, RequestSource source, String action, int groupServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
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:
IOExceptionSQLException
-
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:
IOExceptionSQLException
-
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:
IOExceptionSQLException
-
addUserServer
public static int addUserServer(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, int linuxServer, PosixPath home, boolean skipSecurityChecks) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
addGroupServer
public static int addGroupServer(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, Group.Name group, int linuxServer, boolean skipSecurityChecks) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
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 ornullif 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 ornullif 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:
IOExceptionSQLException
-
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:
IOExceptionSQLException
-
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:
IOExceptionSQLException
-
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:
IOExceptionSQLException
-
disableUser
public static void disableUser(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int disableLog, User.Name user) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
disableUserServer
public static void disableUserServer(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int disableLog, int userServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
enableUser
public static void enableUser(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
enableUserServer
public static void enableUserServer(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getAutoresponderContent
public static String getAutoresponderContent(DatabaseConnection conn, RequestSource source, int userServer) throws IOException, SQLException Gets the contents of an autoresponder.- Throws:
IOExceptionSQLException
-
getCronTable
public static String getCronTable(DatabaseConnection conn, RequestSource source, int userServer) throws IOException, SQLException Gets the contents of a user cron table.- Throws:
IOExceptionSQLException
-
getDisableLogForUser
public static int getDisableLogForUser(DatabaseConnection conn, User.Name user) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getDisableLogForUserServer
public static int getDisableLogForUserServer(DatabaseConnection conn, int userServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
invalidateTable
-
isUser
public static boolean isUser(DatabaseConnection conn, User.Name user) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
isUserDisabled
public static boolean isUserDisabled(DatabaseConnection conn, User.Name user) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
isUserEmailType
public static boolean isUserEmailType(DatabaseConnection conn, User.Name user) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
isUserServerDisabled
public static boolean isUserServerDisabled(DatabaseConnection conn, int userServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
isLinuxGroupAvailable
public static boolean isLinuxGroupAvailable(DatabaseConnection conn, Group.Name name) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getGroupServer
public static int getGroupServer(DatabaseConnection conn, Group.Name group, int linuxServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getPrimaryGroup
public static Group.Name getPrimaryGroup(DatabaseConnection conn, User.Name user, int operatingSystemVersion) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
isUserServerPasswordSet
public static boolean isUserServerPasswordSet(DatabaseConnection conn, RequestSource source, int userServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
isUserServerProcmailManual
public static int isUserServerProcmailManual(DatabaseConnection conn, RequestSource source, int userServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
removeUser
public static void removeUser(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
removeUser
public static void removeUser(DatabaseConnection conn, InvalidateList invalidateList, User.Name user) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
removeGroup
public static void removeGroup(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, Group.Name group) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
removeGroup
public static void removeGroup(DatabaseConnection conn, InvalidateList invalidateList, Group.Name group) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
removeGroupUser
public static void removeGroupUser(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int groupUser) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
removeUserServer
public static void removeUserServer(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
removeUserServer
public static void removeUserServer(DatabaseConnection conn, InvalidateList invalidateList, int userServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
removeGroupServer
public static void removeGroupServer(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int groupServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
removeGroupServer
public static void removeGroupServer(DatabaseConnection conn, InvalidateList invalidateList, int groupServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
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:
IOExceptionSQLException
-
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:
IOExceptionSQLException
-
setUserHomePhone
public static void setUserHomePhone(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, User.Gecos phone) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
setUserFullName
public static void setUserFullName(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, User.Gecos name) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
setUserOfficeLocation
public static void setUserOfficeLocation(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, User.Gecos location) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
setUserOfficePhone
public static void setUserOfficePhone(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, User.Gecos phone) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
setUserShell
public static void setUserShell(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, User.Name user, PosixPath shell) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
setUserServerPassword
public static void setUserServerPassword(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, String password) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
setUserServerPredisablePassword
public static void setUserServerPredisablePassword(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, String password) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
setUserServerJunkEmailRetention
public static void setUserServerJunkEmailRetention(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, int days) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
setUserServerSpamAssassinIntegrationMode
public static void setUserServerSpamAssassinIntegrationMode(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, String mode) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
setUserServerSpamAssassinRequiredScore
public static void setUserServerSpamAssassinRequiredScore(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, float requiredScore) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
setUserServerSpamAssassinDiscardScore
public static void setUserServerSpamAssassinDiscardScore(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, int discardScore) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
setUserServerTrashEmailRetention
public static void setUserServerTrashEmailRetention(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, int days) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
setUserServerUseInbox
public static void setUserServerUseInbox(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int userServer, boolean useInbox) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
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:
IOExceptionSQLException
-
getAccountForGroup
public static Account.Name getAccountForGroup(DatabaseConnection conn, Group.Name name) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getAccountsForGroupUser
public static List<Account.Name> getAccountsForGroupUser(DatabaseConnection conn, int groupUser) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getAccountForUserServer
public static Account.Name getAccountForUserServer(DatabaseConnection conn, int userServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getAccountForGroupServer
public static Account.Name getAccountForGroupServer(DatabaseConnection conn, int groupServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getGroupForGroupServer
public static Group.Name getGroupForGroupServer(DatabaseConnection conn, int groupServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getServerForUserServer
public static int getServerForUserServer(DatabaseConnection conn, int userServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getServerForGroupServer
public static int getServerForGroupServer(DatabaseConnection conn, int groupServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getServersForUser
public static IntList getServersForUser(DatabaseConnection conn, User.Name user) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getServersForGroup
public static IntList getServersForGroup(DatabaseConnection conn, Group.Name group) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getServersForGroupUser
public static IntList getServersForGroupUser(DatabaseConnection conn, int groupUser) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getTypeForUser
public static String getTypeForUser(DatabaseConnection conn, User.Name user) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getTypeForUserServer
public static String getTypeForUserServer(DatabaseConnection conn, int userServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getTypeForGroupServer
public static String getTypeForGroupServer(DatabaseConnection conn, int groupServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getUserServer
public static int getUserServer(DatabaseConnection conn, User.Name user, int linuxServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getUserServersForUser
public static IntList getUserServersForUser(DatabaseConnection conn, User.Name user) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getGroupServersForGroup
public static IntList getGroupServersForGroup(DatabaseConnection conn, Group.Name group) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getPackageForGroup
public static Account.Name getPackageForGroup(DatabaseConnection conn, Group.Name group) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getPackageForGroupServer
public static Account.Name getPackageForGroupServer(DatabaseConnection conn, int groupServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getGidForGroupServer
public static int getGidForGroupServer(DatabaseConnection conn, int groupServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getUidForUserServer
public static int getUidForUserServer(DatabaseConnection conn, int userServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getUserForGroupUser
public static User.Name getUserForGroupUser(DatabaseConnection conn, int groupUser) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getGroupForGroupUser
public static Group.Name getGroupForGroupUser(DatabaseConnection conn, int groupUser) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
getUserForUserServer
public static User.Name getUserForUserServer(DatabaseConnection conn, int userServer) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
comparePassword
public static boolean comparePassword(DatabaseConnection conn, RequestSource source, int userServer, String password) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
setPrimaryGroupUser
public static void setPrimaryGroupUser(DatabaseConnection conn, RequestSource source, InvalidateList invalidateList, int groupUser) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
