Class CyrusImapdServer
java.lang.Object
com.aoindustries.aoserv.client.AoservObject<Integer,CyrusImapdServer>
com.aoindustries.aoserv.client.CachedObject<Integer,CyrusImapdServer>
com.aoindustries.aoserv.client.CachedObjectIntegerKey<CyrusImapdServer>
com.aoindustries.aoserv.client.email.CyrusImapdServer
- All Implemented Interfaces:
Streamable
,StreamReadable
,StreamWritable
,Row
,AoservReadable
,AoservStreamable
,AoservWritable
,SingleTableObject<Integer,
CyrusImapdServer>
An
CyrusImapdServer
represents one running instance of Cyrus IMAPD.- Author:
- AO Industries, Inc.
- See Also:
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final boolean
Default value for cyrus_imapd_servers.allow_plaintext_authstatic final float
Default value for cyrus_imapd_servers.delete_durationstatic final CyrusImapdServer.TimeUnit
Default value for cyrus_imapd_servers.delete_duration_unitstatic final float
Default value for cyrus_imapd_servers.expire_durationstatic final CyrusImapdServer.TimeUnit
Default value for cyrus_imapd_servers.expire_duration_unitstatic final float
Default value for cyrus_imapd_servers.expunge_durationstatic final CyrusImapdServer.TimeUnit
Default value for cyrus_imapd_servers.expunge_duration_unitFields inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
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
ConstructorDescriptionDeprecated.Only required for implementation, do not use directly. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Allows plaintext authentication (PLAIN/LOGIN) on non-TLS links.Gets the SSL certificate for this server.protected Object
getColumnImpl
(int i) float
Gets the duration after which delayed delete folders are removed.Gets the time unit forgetDeleteDuration()
.float
Prune the duplicate database of entries older than expire-duration.Gets the time unit forgetExpireDuration()
.float
Gets the duration after which delayed expunge messages are removed.Gets the time unit forgetExpungeDuration()
.The fully qualified hostname forservername
.void
Initializes this object from the raw database contents.void
read
(StreamableInput in, AoservProtocol.Version protocolVersion) AoservObject.toString()
implementation that is allowed to throw exceptions.void
write
(StreamableOutput out, AoservProtocol.Version protocolVersion) Methods inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
equals, getKey, getPkey, hashCode
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
-
Field Details
-
DEFAULT_ALLOW_PLAINTEXT_AUTH
public static final boolean DEFAULT_ALLOW_PLAINTEXT_AUTHDefault value for cyrus_imapd_servers.allow_plaintext_auth- See Also:
-
DEFAULT_DELETE_DURATION
public static final float DEFAULT_DELETE_DURATIONDefault value for cyrus_imapd_servers.delete_duration- See Also:
-
DEFAULT_DELETE_DURATION_UNIT
Default value for cyrus_imapd_servers.delete_duration_unit -
DEFAULT_EXPIRE_DURATION
public static final float DEFAULT_EXPIRE_DURATIONDefault value for cyrus_imapd_servers.expire_duration- See Also:
-
DEFAULT_EXPIRE_DURATION_UNIT
Default value for cyrus_imapd_servers.expire_duration_unit -
DEFAULT_EXPUNGE_DURATION
public static final float DEFAULT_EXPUNGE_DURATIONDefault value for cyrus_imapd_servers.expunge_duration- See Also:
-
DEFAULT_EXPUNGE_DURATION_UNIT
Default value for cyrus_imapd_servers.expunge_duration_unit
-
-
Constructor Details
-
CyrusImapdServer
Deprecated.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
toStringImpl
Description copied from class:AoservObject
AoservObject.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:
toStringImpl
in classCachedObjectIntegerKey<CyrusImapdServer>
- Throws:
IOException
SQLException
-
getColumnImpl
- Specified by:
getColumnImpl
in classAoservObject<Integer,
CyrusImapdServer>
-
getTableId
- Specified by:
getTableId
in classAoservObject<Integer,
CyrusImapdServer>
-
init
Description copied from class:AoservObject
Initializes this object from the raw database contents.- Specified by:
init
in classAoservObject<Integer,
CyrusImapdServer> - Parameters:
result
- theResultSet
containing the row to copy into this object- Throws:
SQLException
-
read
- Specified by:
read
in interfaceAoservReadable
- Specified by:
read
in interfaceAoservStreamable
- Specified by:
read
in classAoservObject<Integer,
CyrusImapdServer> - Throws:
IOException
-
write
- Specified by:
write
in interfaceAoservStreamable
- Specified by:
write
in interfaceAoservWritable
- Specified by:
write
in classAoservObject<Integer,
CyrusImapdServer> - Throws:
IOException
-
getLinuxServer
- Throws:
SQLException
IOException
-
getSieveNetBind
- Throws:
IOException
SQLException
-
getServername
The fully qualified hostname forservername
.When
null
, defaults toServer.getHostname()
. -
getCertificate
Gets the SSL certificate for this server.- Returns:
- the SSL certificate or
null
when filtered - Throws:
SQLException
IOException
-
getAllowPlaintextAuth
public boolean getAllowPlaintextAuth()Allows plaintext authentication (PLAIN/LOGIN) on non-TLS links. -
getDeleteDuration
public float getDeleteDuration()Gets the duration after which delayed delete folders are removed. Enablesdelete_mode: delayed
- Returns:
- the duration or
Float.NaN
when not set - See Also:
-
getDeleteDurationUnit
Gets the time unit forgetDeleteDuration()
. When not set, the duration represents days.- Returns:
- the unit or
null
when not set
-
getExpireDuration
public float getExpireDuration()Prune the duplicate database of entries older than expire-duration.- Returns:
- the duration (never
Float.NaN
) - See Also:
-
getExpireDurationUnit
Gets the time unit forgetExpireDuration()
. When not set, the duration represents days.- Returns:
- the unit or
null
when not set
-
getExpungeDuration
public float getExpungeDuration()Gets the duration after which delayed expunge messages are removed. Enablesexpunge_mode: delayed
- Returns:
- the duration or
Float.NaN
when not set - See Also:
-
getExpungeDurationUnit
Gets the time unit forgetExpungeDuration()
. When not set, the duration represents days.- Returns:
- the unit or
null
when not set
-
getCyrusImapdBinds
- Throws:
IOException
SQLException
-