- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServObject<K,T>
-
- com.aoindustries.aoserv.client.CachedObject<Account.Name,V>
-
- com.aoindustries.aoserv.client.account.CachedObjectAccountNameKey<Brand>
-
- com.aoindustries.aoserv.client.reseller.Brand
-
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AOServReadable,AOServStreamable,AOServWritable,SingleTableObject<Account.Name,Brand>
public final class Brand extends CachedObjectAccountNameKey<Brand>
A brand has separate website, packages, nameservers, and support.
-
-
Field Summary
-
Fields inherited from class com.aoindustries.aoserv.client.account.CachedObjectAccountNameKey
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 Brand()
-
Method Summary
-
Methods inherited from class com.aoindustries.aoserv.client.account.CachedObjectAccountNameKey
equals, getKey, 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
-
-
-
-
Method Detail
-
getColumnImpl
protected Object getColumnImpl(int i)
- Specified by:
getColumnImplin classAOServObject<Account.Name,Brand>
-
getAccount_name
public Account.Name getAccount_name()
-
getAccount
public Account getAccount() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getNameserver1
public DomainName getNameserver1()
-
getNameserver2
public DomainName getNameserver2()
-
getNameserver3
public DomainName getNameserver3()
-
getNameserver4
public DomainName getNameserver4()
-
getSmtpLinuxServerAccount
public UserServer getSmtpLinuxServerAccount() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getSmtpHost
public HostAddress getSmtpHost() throws IOException, SQLException
Gets the host that should be used for SMTP. Will use the hostname of the SmtpLinuxServerAccount'sServerif smtp_host is null.- Throws:
IOExceptionSQLException
-
getSmtpPassword
public String getSmtpPassword()
-
getImapLinuxServerAccount
public UserServer getImapLinuxServerAccount() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getImapHost
public HostAddress getImapHost() throws IOException, SQLException
Gets the host that should be used for IMAP. Will use the hostname of the ImapLinuxServerAccount'sServerif imap_host is null.- Throws:
IOExceptionSQLException
-
getImapPassword
public String getImapPassword()
-
getSupportEmailAddress
public Address getSupportEmailAddress() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getSupportEmailDisplay
public String getSupportEmailDisplay()
-
getSignupEmailAddress
public Address getSignupEmailAddress() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getSignupEmailDisplay
public String getSignupEmailDisplay()
-
getTicketEncryptionFrom
public EncryptionKey getTicketEncryptionFrom() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getTicketEncryptionRecipient
public EncryptionKey getTicketEncryptionRecipient() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getSignupEncryptionFrom
public EncryptionKey getSignupEncryptionFrom() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getSignupEncryptionRecipient
public EncryptionKey getSignupEncryptionRecipient() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getSupportTollFree
public String getSupportTollFree()
-
getSupportDayPhone
public String getSupportDayPhone()
-
getSupportEmergencyPhone1
public String getSupportEmergencyPhone1()
-
getSupportEmergencyPhone2
public String getSupportEmergencyPhone2()
-
getSupportFax
public String getSupportFax()
-
getSupportMailingAddress1
public String getSupportMailingAddress1()
-
getSupportMailingAddress2
public String getSupportMailingAddress2()
-
getSupportMailingAddress3
public String getSupportMailingAddress3()
-
getSupportMailingAddress4
public String getSupportMailingAddress4()
-
getEnglishEnabled
public boolean getEnglishEnabled()
-
getJapaneseEnabled
public boolean getJapaneseEnabled()
-
getAowebStrutsHttpUrlBase
public String getAowebStrutsHttpUrlBase()
-
getAowebStrutsHttpURL
public URL getAowebStrutsHttpURL() throws MalformedURLException
- Throws:
MalformedURLException
-
getAowebStrutsHttpsUrlBase
public String getAowebStrutsHttpsUrlBase()
-
getAowebStrutsHttpsURL
public URL getAowebStrutsHttpsURL() throws MalformedURLException
- Throws:
MalformedURLException
-
getAowebStrutsGoogleVerifyContent
public String getAowebStrutsGoogleVerifyContent()
-
getAowebStrutsNoindex
public boolean getAowebStrutsNoindex()
-
getAowebStrutsGoogleAnalyticsNewTrackingCode
public String getAowebStrutsGoogleAnalyticsNewTrackingCode()
-
getAowebStrutsSignupAdminAddress
public String getAowebStrutsSignupAdminAddress()
-
getAowebStrutsVncBind
public Bind getAowebStrutsVncBind() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getAowebStrutsKeystoreType
public String getAowebStrutsKeystoreType()
-
getAowebStrutsKeystorePassword
public String getAowebStrutsKeystorePassword()
-
getTableID
public Table.TableID getTableID()
- Specified by:
getTableIDin classAOServObject<Account.Name,Brand>
-
init
public void init(ResultSet result) throws SQLException
Description copied from class:AOServObjectInitializes this object from the raw database contents.- Specified by:
initin classAOServObject<Account.Name,Brand>- 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<Account.Name,Brand>- 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<Account.Name,Brand>- Throws:
IOException
-
getReseller
public Reseller getReseller() throws IOException, SQLException
Gets the Reseller for this Brand ornullif not a reseller.- Throws:
IOExceptionSQLException
-
getTicketBrandCategories
public List<BrandCategory> getTicketBrandCategories() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getParentBrand
public Brand getParentBrand() throws IOException, SQLException
Gets the immediate parent of this brand ornullif none available.- Throws:
IOExceptionSQLException
-
getChildBrands
public List<Brand> getChildBrands() throws IOException, SQLException
The children of the brand are any brands that have their closest parent business (that is a brand) equal to this one.- Throws:
IOExceptionSQLException
-
-