public class TransactionDetails extends Object
Modifier and Type | Field and Description |
---|---|
private int |
clientId |
private int |
jobId |
private String |
jobName |
private LogControl |
logControl |
private int |
pluginId |
private String |
pluginName |
private int |
projectId |
private String |
projectName |
private int |
sessionId |
private int |
userId |
private String |
userName |
Constructor and Description |
---|
TransactionDetails(LogControl logControl,
SessionControl sc)
Creates a new transaction details object with information from
given session control
|
Modifier and Type | Method and Description |
---|---|
int |
getClientId()
Get the ID of the client appliction that is used, or 0 if not known.
|
int |
getJobId()
Get the ID of the currently running job or 0 if no job is running.
|
String |
getJobName()
Utility method for loading the name of the currently executing job.
|
int |
getPluginId()
Get the ID of the currently running plug-in or 0 if no plug-in is running.
|
String |
getPluginName()
Utility method for loading the name of the currently executing plugin.
|
int |
getProjectId()
Get the ID of the currently active project, or 0 if no project is active.
|
String |
getProjectName()
Utility method for loading the name of the currently active project.
|
int |
getSessionId()
Get the ID of the session or 0 if no user is logged in.
|
int |
getUserId()
Get the ID of the currently logged in user, or 0 if no user is logged in.
|
String |
getUserName()
Utility method for loading the name of the currently logged in user.
|
ChangeHistoryData |
toChangeHistoryData()
Convert the information about the transaction to a
ChangeHistoryData object. |
private final LogControl logControl
private final int userId
private final int sessionId
private final int clientId
private final int projectId
private final int pluginId
private final int jobId
private String userName
private String projectName
private String pluginName
private String jobName
public TransactionDetails(LogControl logControl, SessionControl sc)
public int getUserId()
public int getSessionId()
public int getClientId()
public int getProjectId()
public int getPluginId()
public int getJobId()
public ChangeHistoryData toChangeHistoryData()
ChangeHistoryData
object.public String getUserName()
public String getProjectName()
public String getPluginName()
public String getJobName()