Class MajordomoServer
- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServObject<K,T>
-
- com.aoindustries.aoserv.client.CachedObject<Integer,V>
-
- com.aoindustries.aoserv.client.CachedObjectIntegerKey<MajordomoServer>
-
- com.aoindustries.aoserv.client.email.MajordomoServer
-
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AOServReadable,AOServStreamable,AOServWritable,Removable,SingleTableObject<Integer,MajordomoServer>
public final class MajordomoServer extends CachedObjectIntegerKey<MajordomoServer> implements Removable
AMajordomoServerprovides Majordomo functionality for aEmailDomain. Once theMajordomoServeris established, any number ofMajordomoLists may be added to it.- Author:
- AO Industries, Inc.
- See Also:
Domain,MajordomoList
-
-
Field Summary
Fields Modifier and Type Field Description static StringMAJORDOMO_ADDRESSThe username part of the email address used to directly email majordomo.static StringMAJORDOMO_OWNER_ADDRESSThe username part of the email address used to directly email the majordomo owner.static PosixPathMAJORDOMO_SERVER_DIRECTORYThe directory that stores the majordomo servers.static StringOWNER_MAJORDOMO_ADDRESSThe username part of the email address used to directly email the majordomo owner.-
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 MajordomoServer()
-
Method Summary
-
Methods inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
equals, getKey, getPkey, 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
-
-
-
-
Field Detail
-
MAJORDOMO_SERVER_DIRECTORY
public static final PosixPath MAJORDOMO_SERVER_DIRECTORY
The directory that stores the majordomo servers.
-
MAJORDOMO_ADDRESS
public static final String MAJORDOMO_ADDRESS
The username part of the email address used to directly email majordomo.- See Also:
- Constant Field Values
-
OWNER_MAJORDOMO_ADDRESS
public static final String OWNER_MAJORDOMO_ADDRESS
The username part of the email address used to directly email the majordomo owner.- See Also:
- Constant Field Values
-
MAJORDOMO_OWNER_ADDRESS
public static final String MAJORDOMO_OWNER_ADDRESS
The username part of the email address used to directly email the majordomo owner.- See Also:
- Constant Field Values
-
-
Method Detail
-
addMajordomoList
public int addMajordomoList(String listName) throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getCannotRemoveReasons
public List<CannotRemoveReason<?>> 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
-
getColumnImpl
protected Object getColumnImpl(int i)
- Specified by:
getColumnImplin classAOServObject<Integer,MajordomoServer>
-
getDomain
public Domain getDomain() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getLinuxServerAccount_pkey
public int getLinuxServerAccount_pkey()
-
getLinuxServerAccount
public UserServer getLinuxServerAccount() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getLinuxServerGroup_pkey
public int getLinuxServerGroup_pkey()
-
getLinuxServerGroup
public GroupServer getLinuxServerGroup() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getMajordomoPipeAddress
public PipeAddress getMajordomoPipeAddress() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getMajordomoList
public MajordomoList getMajordomoList(String listName) throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getMajordomoLists
public List<MajordomoList> getMajordomoLists() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getMajordomoOwnerAddress_id
public int getMajordomoOwnerAddress_id()
-
getMajordomoOwnerAddress
public Address getMajordomoOwnerAddress() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getOwnerMajordomoAddress_id
public int getOwnerMajordomoAddress_id()
-
getOwnerMajordomoAddress
public Address getOwnerMajordomoAddress() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getTableID
public Table.TableID getTableID()
- Specified by:
getTableIDin classAOServObject<Integer,MajordomoServer>
-
getVersion
public MajordomoVersion getVersion() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
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,MajordomoServer>- 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,MajordomoServer>- Throws:
IOException
-
remove
public void remove() throws IOException, SQLExceptionDescription copied from interface:RemovableRemoves this object, and all dependant objects, from the system.- Specified by:
removein interfaceRemovable- Throws:
IOExceptionSQLException
-
write
public void write(StreamableOutput out, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
writein interfaceAOServStreamable- Specified by:
writein interfaceAOServWritable- Specified by:
writein classAOServObject<Integer,MajordomoServer>- Throws:
IOException
-
-