java.lang.Object
com.aoindustries.aoserv.client.AoservObject<Integer,Ticket>
com.aoindustries.aoserv.client.CachedObject<Integer,Ticket>
com.aoindustries.aoserv.client.CachedObjectIntegerKey<Ticket>
com.aoindustries.aoserv.client.ticket.Ticket
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AoservReadable,AoservStreamable,AoservWritable,SingleTableObject<Integer,Ticket>
The
Ticket system allows clients to submit support
requests and monitor the progress of the work.- Author:
- AO Industries, Inc.
- See Also:
-
Field Summary
Fields inherited from class com.aoindustries.aoserv.client.CachedObjectIntegerKey
pkeyFields inherited from class com.aoindustries.aoserv.client.CachedObject
tableFields inherited from class com.aoindustries.aoserv.client.AoservObject
USE_ARRAY_OF_DOMAIN, USE_SQL_DATA, USE_SQL_DATA_WRITE -
Constructor Summary
ConstructorsConstructorDescriptionTicket()Deprecated, for removal: This API element is subject to removal in a future version.Only required for implementation, do not use directly. -
Method Summary
Modifier and TypeMethodDescriptionvoidactAssignTo(Administrator assignedTo, Administrator administrator, String comments) voidactChangeAdminPriority(Priority priority, Administrator administrator, String comments) voidactWorkEntry(Administrator administrator, String comments) voidaddAnnotation(String summary, String details) May be null if not set or filtered.getBrand()May be filtered.protected ObjectgetColumnImpl(int i) May be null when filtered.intvoidInitializes this object from the raw database contents.voidread(StreamableInput in, AoservProtocol.Version protocolVersion) booleansetAccount(Account oldAccount, Account newAccount) Updates the ticket business if the old business matches the current value.voidsetClientPriority(Priority clientPriority) voidsetContactEmails(Set<Email> contactEmails) voidsetContactPhoneNumbers(String contactPhoneNumbers) booleansetInternalNotes(String oldInternalNotes, String newInternalNotes) Updates the internal notes if the old value matches the current value.booleanUpdates the ticket status if the old status matches the current value.voidsetSummary(String summary) booleansetTicketType(TicketType oldType, TicketType newType) Updates the ticket type if the old value matches the current value.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, hashCodeMethods inherited from class com.aoindustries.aoserv.client.CachedObject
getTable, setTableMethods 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
-
Constructor Details
-
Ticket
Deprecated, for removal: This API element is subject to removal in a future version.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
toStringImpl
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<Ticket>
-
getColumnImpl
- Specified by:
getColumnImplin classAoservObject<Integer,Ticket> - Throws:
IOExceptionSQLException
-
getTableId
- Specified by:
getTableIdin classAoservObject<Integer,Ticket>
-
init
Description copied from class:AoservObjectInitializes this object from the raw database contents.- Specified by:
initin classAoservObject<Integer,Ticket> - Parameters:
result- theResultSetcontaining the row to copy into this object- Throws:
SQLException
-
read
- Specified by:
readin interfaceAoservReadable- Specified by:
readin interfaceAoservStreamable- Specified by:
readin classAoservObject<Integer,Ticket> - Throws:
IOException
-
write
- Specified by:
writein interfaceAoservStreamable- Specified by:
writein interfaceAoservWritable- Specified by:
writein classAoservObject<Integer,Ticket> - Throws:
IOException
-
getTicketId
public int getTicketId() -
getBrand
May be filtered.- Throws:
IOExceptionSQLException
-
getReseller
May be null when filtered.- Throws:
SQLExceptionIOException
-
getAccount_name
-
getAccount
May be null if not set or filtered.- Throws:
SQLExceptionIOException
-
getLanguage
- Throws:
SQLExceptionIOException
-
getCreatedBy
- Throws:
IOExceptionSQLException
-
getCategory
- Throws:
IOExceptionSQLException
-
getTicketType
- Throws:
IOExceptionSQLException
-
getFromAddress
-
getSummary
-
getDetails
- Throws:
IOExceptionSQLException
-
getRawEmail
- Throws:
IOExceptionSQLException
-
getOpenDate
-
getClientPriority
- Throws:
IOExceptionSQLException
-
getAdminPriority
- Throws:
IOExceptionSQLException
-
getStatus
- Throws:
IOExceptionSQLException
-
getStatusTimeout
-
getContactEmails
-
getContactPhoneNumbers
-
getInternalNotes
- Throws:
IOExceptionSQLException
-
getTicketActions
- Throws:
IOExceptionSQLException
-
getTicketAssignments
- Throws:
IOExceptionSQLException
-
actChangeAdminPriority
public void actChangeAdminPriority(Priority priority, Administrator administrator, String comments) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
setClientPriority
- Throws:
IOExceptionSQLException
-
setSummary
- Throws:
IOExceptionSQLException
-
addAnnotation
- Throws:
IOExceptionSQLException
-
actAssignTo
public void actAssignTo(Administrator assignedTo, Administrator administrator, String comments) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
setContactEmails
- Throws:
IOExceptionSQLException
-
setContactPhoneNumbers
- Throws:
IOExceptionSQLException
-
actWorkEntry
public void actWorkEntry(Administrator administrator, String comments) throws IOException, SQLException - Throws:
IOExceptionSQLException
-
setAccount
Updates the ticket business if the old business matches the current value.- Returns:
trueif successfully updated orfalseif oldAccount doesn't match the current business.- Throws:
IOExceptionSQLException
-
setTicketType
public boolean setTicketType(TicketType oldType, TicketType newType) throws IOException, SQLException Updates the ticket type if the old value matches the current value.- Returns:
trueif successfully updated orfalseif oldType doesn't match the current type.- Throws:
IOExceptionSQLException
-
setStatus
public boolean setStatus(Status oldStatus, Status newStatus, long statusTimeout) throws IOException, SQLException Updates the ticket status if the old status matches the current value.- Returns:
trueif successfully updated orfalseif oldStatus doesn't match the current status.- Throws:
IOExceptionSQLException
-
setInternalNotes
public boolean setInternalNotes(String oldInternalNotes, String newInternalNotes) throws IOException, SQLException Updates the internal notes if the old value matches the current value.- Returns:
trueif successfully updated orfalseif oldInternalNotes doesn't match the current internal notes.- Throws:
IOExceptionSQLException
-
