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
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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
actAssignTo
(Administrator assignedTo, Administrator administrator, String comments) void
actChangeAdminPriority
(Priority priority, Administrator administrator, String comments) void
actWorkEntry
(Administrator administrator, String comments) void
addAnnotation
(String summary, String details) May be null if not set or filtered.getBrand()
May be filtered.protected Object
getColumnImpl
(int i) May be null when filtered.int
void
Initializes this object from the raw database contents.void
read
(StreamableInput in, AoservProtocol.Version protocolVersion) boolean
setAccount
(Account oldAccount, Account newAccount) Updates the ticket business if the old business matches the current value.void
setClientPriority
(Priority clientPriority) void
setContactEmails
(Set<Email> contactEmails) void
setContactPhoneNumbers
(String contactPhoneNumbers) boolean
setInternalNotes
(String oldInternalNotes, String newInternalNotes) Updates the internal notes if the old value matches the current value.boolean
Updates the ticket status if the old status matches the current value.void
setSummary
(String summary) boolean
setTicketType
(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.void
write
(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
-
Constructor Details
-
Ticket
Deprecated.Only required for implementation, do not use directly.- See Also:
-
-
Method Details
-
toStringImpl
Description copied from class:AoservObject
AoservObject.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:
toStringImpl
in classCachedObjectIntegerKey<Ticket>
-
getColumnImpl
- Specified by:
getColumnImpl
in classAoservObject<Integer,
Ticket> - Throws:
IOException
SQLException
-
getTableId
- Specified by:
getTableId
in classAoservObject<Integer,
Ticket>
-
init
Description copied from class:AoservObject
Initializes this object from the raw database contents.- Specified by:
init
in classAoservObject<Integer,
Ticket> - Parameters:
result
- theResultSet
containing the row to copy into this object- Throws:
SQLException
-
read
- Specified by:
read
in interfaceAoservReadable
- Specified by:
read
in interfaceAoservStreamable
- Specified by:
read
in classAoservObject<Integer,
Ticket> - Throws:
IOException
-
write
- Specified by:
write
in interfaceAoservStreamable
- Specified by:
write
in interfaceAoservWritable
- Specified by:
write
in classAoservObject<Integer,
Ticket> - Throws:
IOException
-
getTicketId
public int getTicketId() -
getBrand
May be filtered.- Throws:
IOException
SQLException
-
getReseller
May be null when filtered.- Throws:
SQLException
IOException
-
getAccount_name
-
getAccount
May be null if not set or filtered.- Throws:
SQLException
IOException
-
getLanguage
- Throws:
SQLException
IOException
-
getCreatedBy
- Throws:
IOException
SQLException
-
getCategory
- Throws:
IOException
SQLException
-
getTicketType
- Throws:
IOException
SQLException
-
getFromAddress
-
getSummary
-
getDetails
- Throws:
IOException
SQLException
-
getRawEmail
- Throws:
IOException
SQLException
-
getOpenDate
-
getClientPriority
- Throws:
IOException
SQLException
-
getAdminPriority
- Throws:
IOException
SQLException
-
getStatus
- Throws:
IOException
SQLException
-
getStatusTimeout
-
getContactEmails
-
getContactPhoneNumbers
-
getInternalNotes
- Throws:
IOException
SQLException
-
getTicketActions
- Throws:
IOException
SQLException
-
getTicketAssignments
- Throws:
IOException
SQLException
-
actChangeAdminPriority
public void actChangeAdminPriority(Priority priority, Administrator administrator, String comments) throws IOException, SQLException - Throws:
IOException
SQLException
-
setClientPriority
- Throws:
IOException
SQLException
-
setSummary
- Throws:
IOException
SQLException
-
addAnnotation
- Throws:
IOException
SQLException
-
actAssignTo
public void actAssignTo(Administrator assignedTo, Administrator administrator, String comments) throws IOException, SQLException - Throws:
IOException
SQLException
-
setContactEmails
- Throws:
IOException
SQLException
-
setContactPhoneNumbers
- Throws:
IOException
SQLException
-
actWorkEntry
public void actWorkEntry(Administrator administrator, String comments) throws IOException, SQLException - Throws:
IOException
SQLException
-
setAccount
Updates the ticket business if the old business matches the current value.- Returns:
true
if successfully updated orfalse
if oldAccount doesn't match the current business.- Throws:
IOException
SQLException
-
setTicketType
public boolean setTicketType(TicketType oldType, TicketType newType) throws IOException, SQLException Updates the ticket type if the old value matches the current value.- Returns:
true
if successfully updated orfalse
if oldType doesn't match the current type.- Throws:
IOException
SQLException
-
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:
true
if successfully updated orfalse
if oldStatus doesn't match the current status.- Throws:
IOException
SQLException
-
setInternalNotes
public boolean setInternalNotes(String oldInternalNotes, String newInternalNotes) throws IOException, SQLException Updates the internal notes if the old value matches the current value.- Returns:
true
if successfully updated orfalse
if oldInternalNotes doesn't match the current internal notes.- Throws:
IOException
SQLException
-