- java.lang.Object
-
- com.aoindustries.aoserv.client.AOServObject<K,T>
-
- com.aoindustries.aoserv.client.CachedObject<Integer,V>
-
- com.aoindustries.aoserv.client.CachedObjectIntegerKey<Action>
-
- com.aoindustries.aoserv.client.ticket.Action
-
- All Implemented Interfaces:
Streamable,StreamReadable,StreamWritable,Row,AOServReadable,AOServStreamable,AOServWritable,SingleTableObject<Integer,Action>
public final class Action extends CachedObjectIntegerKey<Action>
TicketActions represent a complete history of the changes that have been made to a ticket. When a ticket is initially created it has no actions. Any change from its initial state will cause an action to be logged.- Author:
- AO Industries, Inc.
- See Also:
Ticket
-
-
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
Constructors Constructor Description Action()
-
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
-
-
-
-
Method Detail
-
getColumnImpl
protected Object getColumnImpl(int i) throws IOException, SQLException
- Specified by:
getColumnImplin classAOServObject<Integer,Action>- Throws:
IOExceptionSQLException
-
getTicket
public Ticket getTicket() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getAdministrator
public Administrator getAdministrator() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getTime
public UnmodifiableTimestamp getTime()
-
getTicketActionType
public ActionType getTicketActionType() throws SQLException, IOException
- Throws:
SQLExceptionIOException
-
getOldAccount
public Account getOldAccount() throws IOException, SQLException
May be null due to filtering- Throws:
IOExceptionSQLException
-
getNewAccount
public Account getNewAccount() throws IOException, SQLException
May be null due to filtering- Throws:
IOExceptionSQLException
-
getOldPriority
public Priority getOldPriority() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getNewPriority
public Priority getNewPriority() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getOldType
public TicketType getOldType() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getNewType
public TicketType getNewType() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getOldStatus
public Status getOldStatus() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getNewStatus
public Status getNewStatus() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getOldAssignedTo
public Administrator getOldAssignedTo() throws IOException, SQLException
May be null due to filtering- Throws:
IOExceptionSQLException
-
getNewAssignedTo
public Administrator getNewAssignedTo() throws IOException, SQLException
May be null due to filtering- Throws:
IOExceptionSQLException
-
getOldCategory
public Category getOldCategory() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getNewCategory
public Category getNewCategory() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getOldValue
public String getOldValue() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getNewValue
public String getNewValue() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getFromAddress
public Email getFromAddress()
-
getSummary
public String getSummary() throws IOException, SQLException
Gets the summary for the provided Locale, may be generated for certain action types.- Throws:
IOExceptionSQLException
-
getDetails
public String getDetails() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getRawEmail
public String getRawEmail() throws IOException, SQLException
- Throws:
IOExceptionSQLException
-
getTableID
public Table.TableID getTableID()
- Specified by:
getTableIDin classAOServObject<Integer,Action>
-
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,Action>- 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,Action>- Throws:
IOException
-
toStringImpl
public String 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<Action>
-
write
public void write(StreamableOutput out, AoservProtocol.Version protocolVersion) throws IOException
- Specified by:
writein interfaceAOServStreamable- Specified by:
writein interfaceAOServWritable- Specified by:
writein classAOServObject<Integer,Action>- Throws:
IOException
-
-