- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServObject<K,T>
-
- com.aoindustries.aoserv.client.CachedObject<User.Name,V>
-
- com.aoindustries.aoserv.client.account.CachedObjectUserNameKey<User>
-
- com.aoindustries.aoserv.client.master.User
-
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AOServReadable,AOServStreamable,AOServWritable,SingleTableObject<User.Name,User>
public final class User extends CachedObjectUserNameKey<User>
AMasterUseris anAdministratorwho has greater permissions. Their access is secure on a per-Serverbasis, and may also include full access to DNS, backups, and other systems.- Author:
- AO Industries, Inc.
- See Also:
Administrator,UserHost,UserAcl
-
-
Field Summary
-
Fields inherited from class com.aoindustries.aoserv.client.account.CachedObjectUserNameKey
pkey
-
Fields inherited from class com.aoindustries.aoserv.client.CachedObject
table
-
Fields inherited from class com.aoindustries.aoserv.client.AOServObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE
-
-
Constructor Summary
Constructors Constructor Description User()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancanAccessAccounting()booleancanAccessBankAccount()booleancanInvalidateTables()AdministratorgetAdministrator()protected ObjectgetColumnImpl(int i)Table.TableIDgetTableID()voidinit(ResultSet result)Initializes this object from the raw database contents.booleanisActive()booleanisClusterAdmin()booleanisDNSAdmin()booleanisRouter()booleanisWebAdmin()voidread(StreamableInput in, AoservProtocol.Version protocolVersion)voidwrite(StreamableOutput out, AoservProtocol.Version protocolVersion)-
Methods inherited from class com.aoindustries.aoserv.client.account.CachedObjectUserNameKey
equals, getKey, hashCode, toStringImpl
-
Methods inherited from class com.aoindustries.aoserv.client.CachedObject
getTable, setTable
-
Methods inherited from class com.aoindustries.aoserv.client.AOServObject
compare, compare, compare, compare, compareIgnoreCaseConsistentWithEquals, compareTo, compareTo, compareTo, getAccountingCode, getColumn, getColumns, getColumns, getDomainLabel, getDomainLabels, getDomainName, getDto, getEmail, getGecos, getGroupId, getHashedKey, getHashedPassword, getHostname, getInetAddress, getLinuxID, getLinuxUserName, getMacAddress, getMySQLDatabaseName, getMySQLServerName, getMysqlUserName, getPort, getPostgresDatabaseName, getPostgresServerName, getPostgresUserId, getTableSchema, getTimeMillis, getTimeMillis, getUnixPath, getUserId, read, toString, write
-
-
-
-
Method Detail
-
getTableID
public Table.TableID getTableID()
- Specified by:
getTableIDin classAOServObject<User.Name,User>
-
init
public void init(ResultSet result) throws SQLException
Description copied from class:AOServObjectInitializes this object from the raw database contents.- Specified by:
initin classAOServObject<User.Name,User>- Parameters:
result- theResultSetcontaining the row to copy into this object- Throws:
SQLException
-
write
public void write(StreamableOutput out, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
writein interfaceAOServStreamable- Specified by:
writein interfaceAOServWritable- Specified by:
writein classAOServObject<User.Name,User>- Throws:
IOException
-
read
public void read(StreamableInput in, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
readin interfaceAOServReadable- Specified by:
readin interfaceAOServStreamable- Specified by:
readin classAOServObject<User.Name,User>- Throws:
IOException
-
getColumnImpl
protected Object getColumnImpl(int i)
- Specified by:
getColumnImplin classAOServObject<User.Name,User>
-
getAdministrator
public Administrator getAdministrator() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
isActive
public boolean isActive()
-
canAccessAccounting
public boolean canAccessAccounting()
-
canAccessBankAccount
public boolean canAccessBankAccount()
-
canInvalidateTables
public boolean canInvalidateTables()
-
isWebAdmin
public boolean isWebAdmin()
-
isDNSAdmin
public boolean isDNSAdmin()
-
isRouter
public boolean isRouter()
-
isClusterAdmin
public boolean isClusterAdmin()
-
-