java.lang.Object
com.aoindustries.aoserv.client.AoservObject<Integer,Address>
com.aoindustries.aoserv.client.CachedObject<Integer,Address>
com.aoindustries.aoserv.client.CachedObjectIntegerKey<Address>
com.aoindustries.aoserv.client.email.Address
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AoservReadable,AoservStreamable,AoservWritable,Removable,SingleTableObject<Integer,Address>
An
EmailAddress represents a unique email
address hosted on an AOServ server. This email address
may only go to one destination,- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
Fields inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
pkeyFields inherited from class com.aoindustries.aoserv.client.CachedObject
tableFields inherited from class com.aoindustries.aoserv.client.AoservObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE -
Constructor Summary
ConstructorsConstructorDescriptionAddress()Deprecated, for removal: This API element is subject to removal in a future version.Only required for implementation, do not use directly. -
Method Summary
Modifier and TypeMethodDescriptionintaddEmailForwarding(Email destination) Lists the reasons an object may not be removed.protected ObjectgetColumnImpl(int i) getEmailForwarding(Email destination) getEmailListAddress(List list) getEmailPipeAddress(Pipe pipe) voidInitializes this object from the raw database contents.booleanisUsed()voidread(StreamableInput in, AoservProtocol.Version protocolVersion) voidremove()Removes thisEmailAddressany any references to it.AoservObject.toString()implementation that is allowed to throw exceptions.voidwrite(StreamableOutput out, AoservProtocol.Version protocolVersion) Methods inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
equals, getKey, getPkey, hashCodeMethods inherited from class com.aoindustries.aoserv.client.CachedObject
getTable, setTableMethods 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
-
Constructor Details
-
Address
Deprecated, for removal: This API element is subject to removal in a future version.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
addEmailForwarding
- Throws:
IOExceptionSQLException
-
getAddress
-
getBlackholeEmailAddress
- Throws:
IOExceptionSQLException
-
getColumnImpl
- Specified by:
getColumnImplin classAoservObject<Integer,Address>
-
getDomain
- Throws:
SQLExceptionIOException
-
getEmailForwardings
- Throws:
IOExceptionSQLException
-
getEnabledEmailForwardings
- Throws:
SQLExceptionIOException
-
getEmailForwarding
- Throws:
IOExceptionSQLException
-
getEmailLists
- Throws:
IOExceptionSQLException
-
getEmailListAddresses
- Throws:
IOExceptionSQLException
-
getEnabledEmailListAddresses
- Throws:
IOExceptionSQLException
-
getEmailListAddress
- Throws:
IOExceptionSQLException
-
getEmailPipes
- Throws:
IOExceptionSQLException
-
getEmailPipeAddresses
- Throws:
IOExceptionSQLException
-
getEnabledEmailPipeAddresses
- Throws:
IOExceptionSQLException
-
getEmailPipeAddress
- Throws:
IOExceptionSQLException
-
getLinuxServerAccounts
- Throws:
IOExceptionSQLException
-
getLinuxAccAddresses
- Throws:
IOExceptionSQLException
-
getLinuxAccAddress
- Throws:
IOExceptionSQLException
-
getTableId
- Specified by:
getTableIdin classAoservObject<Integer,Address>
-
init
Description copied from class:AoservObjectInitializes this object from the raw database contents.- Specified by:
initin classAoservObject<Integer,Address> - Parameters:
result- theResultSetcontaining the row to copy into this object- Throws:
SQLException
-
isUsed
- Throws:
IOExceptionSQLException
-
read
- Specified by:
readin interfaceAoservReadable- Specified by:
readin interfaceAoservStreamable- Specified by:
readin classAoservObject<Integer,Address> - Throws:
IOException
-
getCannotRemoveReasons
Description copied from interface:RemovableLists the reasons an object may not be removed.- Specified by:
getCannotRemoveReasonsin interfaceRemovable- Returns:
- an empty
List<CannotRemoveReason>if this object may be removed, or a list of descriptions - Throws:
SQLExceptionIOException
-
remove
Removes thisEmailAddressany any references to it. For example, if this address is sent to aLinuxAccount, the address is disassociated before it is removed. For integrity, this entire operation is handled in a single database transaction.- Specified by:
removein interfaceRemovable- Throws:
IOExceptionSQLException
-
toStringImpl
Description copied from class:AoservObjectAoservObject.toString()implementation that is allowed to throw exceptions.Implementation Note:
This default implementation callsAoservObject.toString()on the key (fromAoservObject.getKey()). When the key isnull, uses the default implementation fromObject.toString().- Overrides:
toStringImplin classCachedObjectIntegerKey<Address>- Throws:
SQLExceptionIOException
-
write
- Specified by:
writein interfaceAoservStreamable- Specified by:
writein interfaceAoservWritable- Specified by:
writein classAoservObject<Integer,Address> - Throws:
IOException
-
