Class CyrusImapdServer
- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServObject<K,T>
-
- com.aoindustries.aoserv.client.CachedObject<Integer,V>
-
- 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>
public final class CyrusImapdServer extends CachedObjectIntegerKey<CyrusImapdServer>
AnCyrusImapdServerrepresents one running instance of Cyrus IMAPD.- Author:
- AO Industries, Inc.
- See Also:
CyrusImapdBind
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCyrusImapdServer.TimeUnit
-
Field Summary
Fields Modifier and Type Field Description static booleanDEFAULT_ALLOW_PLAINTEXT_AUTHDefault value for cyrus_imapd_servers.allow_plaintext_authstatic floatDEFAULT_DELETE_DURATIONDefault value for cyrus_imapd_servers.delete_durationstatic CyrusImapdServer.TimeUnitDEFAULT_DELETE_DURATION_UNITDefault value for cyrus_imapd_servers.delete_duration_unitstatic floatDEFAULT_EXPIRE_DURATIONDefault value for cyrus_imapd_servers.expire_durationstatic CyrusImapdServer.TimeUnitDEFAULT_EXPIRE_DURATION_UNITDefault value for cyrus_imapd_servers.expire_duration_unitstatic floatDEFAULT_EXPUNGE_DURATIONDefault value for cyrus_imapd_servers.expunge_durationstatic CyrusImapdServer.TimeUnitDEFAULT_EXPUNGE_DURATION_UNITDefault value for cyrus_imapd_servers.expunge_duration_unit-
Fields 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
Constructors Constructor Description CyrusImapdServer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetAllowPlaintextAuth()Allows plaintext authentication (PLAIN/LOGIN) on non-TLS links.CertificategetCertificate()Gets the SSL certificate for this server.protected ObjectgetColumnImpl(int i)List<CyrusImapdBind>getCyrusImapdBinds()floatgetDeleteDuration()Gets the duration after which delayed delete folders are removed.CyrusImapdServer.TimeUnitgetDeleteDurationUnit()Gets the time unit forgetDeleteDuration().floatgetExpireDuration()Prune the duplicate database of entries older than expire-duration.CyrusImapdServer.TimeUnitgetExpireDurationUnit()Gets the time unit forgetExpireDuration().floatgetExpungeDuration()Gets the duration after which delayed expunge messages are removed.CyrusImapdServer.TimeUnitgetExpungeDurationUnit()Gets the time unit forgetExpungeDuration().ServergetLinuxServer()DomainNamegetServername()The fully qualified hostname forservername.BindgetSieveNetBind()Table.TableIDgetTableID()voidinit(ResultSet result)Initializes this object from the raw database contents.voidread(StreamableInput in, AoservProtocol.Version protocolVersion)StringtoStringImpl()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, 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 Detail
-
DEFAULT_ALLOW_PLAINTEXT_AUTH
public static final boolean DEFAULT_ALLOW_PLAINTEXT_AUTH
Default value for cyrus_imapd_servers.allow_plaintext_auth- See Also:
- Constant Field Values
-
DEFAULT_DELETE_DURATION
public static final float DEFAULT_DELETE_DURATION
Default value for cyrus_imapd_servers.delete_duration- See Also:
- Constant Field Values
-
DEFAULT_DELETE_DURATION_UNIT
public static final CyrusImapdServer.TimeUnit DEFAULT_DELETE_DURATION_UNIT
Default value for cyrus_imapd_servers.delete_duration_unit
-
DEFAULT_EXPIRE_DURATION
public static final float DEFAULT_EXPIRE_DURATION
Default value for cyrus_imapd_servers.expire_duration- See Also:
- Constant Field Values
-
DEFAULT_EXPIRE_DURATION_UNIT
public static final CyrusImapdServer.TimeUnit DEFAULT_EXPIRE_DURATION_UNIT
Default value for cyrus_imapd_servers.expire_duration_unit
-
DEFAULT_EXPUNGE_DURATION
public static final float DEFAULT_EXPUNGE_DURATION
Default value for cyrus_imapd_servers.expunge_duration- See Also:
- Constant Field Values
-
DEFAULT_EXPUNGE_DURATION_UNIT
public static final CyrusImapdServer.TimeUnit DEFAULT_EXPUNGE_DURATION_UNIT
Default value for cyrus_imapd_servers.expunge_duration_unit
-
-
Method Detail
-
toStringImpl
public String toStringImpl() throws IOException, SQLException
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<CyrusImapdServer>- Throws:
IOExceptionSQLException
-
getColumnImpl
protected Object getColumnImpl(int i)
- Specified by:
getColumnImplin classAOServObject<Integer,CyrusImapdServer>
-
getTableID
public Table.TableID getTableID()
- Specified by:
getTableIDin classAOServObject<Integer,CyrusImapdServer>
-
init
public void init(ResultSet result) throws SQLException
Description copied from class:AOServObjectInitializes this object from the raw database contents.- Specified by:
initin classAOServObject<Integer,CyrusImapdServer>- Parameters:
result- theResultSetcontaining the row to copy into this object- Throws:
SQLException
-
read
public void read(StreamableInput in, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
readin interfaceAOServReadable- Specified by:
readin interfaceAOServStreamable- Specified by:
readin classAOServObject<Integer,CyrusImapdServer>- Throws:
IOException
-
write
public void write(StreamableOutput out, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
writein interfaceAOServStreamable- Specified by:
writein interfaceAOServWritable- Specified by:
writein classAOServObject<Integer,CyrusImapdServer>- Throws:
IOException
-
getLinuxServer
public Server getLinuxServer() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getSieveNetBind
public Bind getSieveNetBind() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getServername
public DomainName getServername()
-
getCertificate
public Certificate getCertificate() throws SQLException, IOException
Gets the SSL certificate for this server.- Returns:
- the SSL certificate or
nullwhen filtered - Throws:
SQLExceptionIOException
-
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.NaNwhen not set - See Also:
getDeleteDurationUnit()
-
getDeleteDurationUnit
public CyrusImapdServer.TimeUnit getDeleteDurationUnit()
Gets the time unit forgetDeleteDuration(). When not set, the duration represents days.- Returns:
- the unit or
nullwhen 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()
-
getExpireDurationUnit
public CyrusImapdServer.TimeUnit getExpireDurationUnit()
Gets the time unit forgetExpireDuration(). When not set, the duration represents days.- Returns:
- the unit or
nullwhen not set
-
getExpungeDuration
public float getExpungeDuration()
Gets the duration after which delayed expunge messages are removed. Enablesexpunge_mode: delayed- Returns:
- the duration or
Float.NaNwhen not set - See Also:
getExpungeDurationUnit()
-
getExpungeDurationUnit
public CyrusImapdServer.TimeUnit getExpungeDurationUnit()
Gets the time unit forgetExpungeDuration(). When not set, the duration represents days.- Returns:
- the unit or
nullwhen not set
-
getCyrusImapdBinds
public List<CyrusImapdBind> getCyrusImapdBinds() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
-