Class MajordomoList
- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServObject<K,T>
-
- com.aoindustries.aoserv.client.CachedObject<Integer,V>
-
- com.aoindustries.aoserv.client.CachedObjectIntegerKey<MajordomoList>
-
- com.aoindustries.aoserv.client.email.MajordomoList
-
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AOServReadable,AOServStreamable,AOServWritable,SingleTableObject<Integer,MajordomoList>
public final class MajordomoList extends CachedObjectIntegerKey<MajordomoList>
AMajordomoListis one list within aMajordomoServer.- Author:
- AO Industries, Inc.
- See Also:
MajordomoServer
-
-
Field Summary
Fields Modifier and Type Field Description static intMAX_NAME_LENGTHThe maximum length of an email list name.-
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 MajordomoList()
-
Method Summary
-
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
-
MAX_NAME_LENGTH
public static final int MAX_NAME_LENGTH
The maximum length of an email list name.- See Also:
- Constant Field Values
-
-
Method Detail
-
getColumnImpl
protected Object getColumnImpl(int i)
- Specified by:
getColumnImplin classAOServObject<Integer,MajordomoList>
-
getDefaultInfoFile
public static String getDefaultInfoFile(DomainName domain, String listName)
-
getDefaultInfoFile
public String getDefaultInfoFile() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getDefaultIntroFile
public static String getDefaultIntroFile(DomainName domain, String listName)
-
getDefaultIntroFile
public String getDefaultIntroFile() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getEmailList
public List getEmailList() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getInfoFile
public String getInfoFile() throws IOException, SQLException
Gets the info file for the list.- Throws:
IOExceptionSQLException
-
getIntroFile
public String getIntroFile() throws IOException, SQLException
Gets the intro file for the list.- Throws:
IOExceptionSQLException
-
getListPipeAddress
public PipeAddress getListPipeAddress() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getListApprovalAddress_id
public int getListApprovalAddress_id()
-
getListApprovalAddress
public Address getListApprovalAddress() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getListListAddress
public ListAddress getListListAddress() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getListOwnerAddress_id
public int getListOwnerAddress_id()
-
getListOwnerAddress
public Address getListOwnerAddress() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getListRequestPipeAddress
public PipeAddress getListRequestPipeAddress() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getName
public String getName()
-
getOwnerListAddress_id
public int getOwnerListAddress_id()
-
getOwnerListAddress
public Address getOwnerListAddress() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getMajordomoServer_domain_id
public int getMajordomoServer_domain_id()
-
getMajordomoServer
public MajordomoServer getMajordomoServer() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getTableID
public Table.TableID getTableID()
- Specified by:
getTableIDin classAOServObject<Integer,MajordomoList>
-
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,MajordomoList>- Parameters:
result- theResultSetcontaining the row to copy into this object- Throws:
SQLException
-
isValidListName
public static boolean isValidListName(String name)
Checks the validity of a list name. // TODO: Self-validating type
-
read
public void read(StreamableInput in, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
readin interfaceAOServReadable- Specified by:
readin interfaceAOServStreamable- Specified by:
readin classAOServObject<Integer,MajordomoList>- Throws:
IOException
-
setInfoFile
public void setInfoFile(String file) throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
setIntroFile
public void setIntroFile(String file) throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
toStringImpl
public String toStringImpl() throws SQLException, IOException
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<MajordomoList>- Throws:
SQLExceptionIOException
-
write
public void write(StreamableOutput out, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
writein interfaceAOServStreamable- Specified by:
writein interfaceAOServWritable- Specified by:
writein classAOServObject<Integer,MajordomoList>- Throws:
IOException
-
-