public class ChangeHistoryUtil
extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
ChangeHistoryUtil() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
getClient(DbControl dc,
ChangeHistory ch,
boolean link,
boolean editLink)
Get the client application that was used to make the change in HTML format.
|
static java.lang.String |
getItem(DbControl dc,
ChangeHistory ch,
boolean link,
boolean editLink)
Get the item that was changed in HTML format.
|
static java.lang.String |
getJob(DbControl dc,
ChangeHistory ch,
boolean link,
boolean editLink)
Get the job that made the change in HTML format.
|
private static java.lang.String |
getLink(java.lang.String ID,
Nameable item,
java.lang.Integer itemId,
boolean denied,
boolean notFound,
boolean link,
boolean editLink) |
static java.lang.String |
getPlugin(DbControl dc,
ChangeHistory ch,
boolean link,
boolean editLink)
Get the plug-in that made the change in HTML format.
|
static java.lang.String |
getProject(DbControl dc,
ChangeHistory ch,
boolean link,
boolean editLink)
Get the project that was active when the change was made in HTML format.
|
static java.lang.String |
getSession(DbControl dc,
ChangeHistory ch,
boolean link,
boolean editLink)
Get the session in which the changes was made in HTML format.
|
static java.lang.String |
getUser(DbControl dc,
ChangeHistory ch,
boolean link,
boolean editLink)
Get the user that made the change in HTML format.
|
static boolean |
showChangeHistoryTab(SessionControl sc)
Check if the "Change history" tab should be visible for
the current user or not.
|
public static final boolean showChangeHistoryTab(SessionControl sc)
sc
- The current session controlpublic static java.lang.String getItem(DbControl dc, ChangeHistory ch, boolean link, boolean editLink)
dc
- A DbControl for database accessch
- The change history entrylink
- TRUE to link the name to the view pageeditLink
- TRUE to enable CTRL/ALT/SHIFT-click for editingpublic static java.lang.String getUser(DbControl dc, ChangeHistory ch, boolean link, boolean editLink)
dc
- A DbControl for database accessch
- The change history entrylink
- TRUE to link the name to theview pageeditLink
- TRUE to enable CTRL/ALT/SHIFT-click for editingpublic static java.lang.String getSession(DbControl dc, ChangeHistory ch, boolean link, boolean editLink)
dc
- A DbControl for database accessch
- The change history entrylink
- TRUE to link the name to theview pageeditLink
- TRUE to enable CTRL/ALT/SHIFT-click for editingpublic static java.lang.String getClient(DbControl dc, ChangeHistory ch, boolean link, boolean editLink)
dc
- A DbControl for database accessch
- The change history entrylink
- TRUE to link the name to theview pageeditLink
- TRUE to enable CTRL/ALT/SHIFT-click for editingpublic static java.lang.String getProject(DbControl dc, ChangeHistory ch, boolean link, boolean editLink)
dc
- A DbControl for database accessch
- The change history entrylink
- TRUE to link the name to theview pageeditLink
- TRUE to enable CTRL/ALT/SHIFT-click for editingpublic static java.lang.String getPlugin(DbControl dc, ChangeHistory ch, boolean link, boolean editLink)
dc
- A DbControl for database accessch
- The change history entrylink
- TRUE to link the name to theview pageeditLink
- TRUE to enable CTRL/ALT/SHIFT-click for editingpublic static java.lang.String getJob(DbControl dc, ChangeHistory ch, boolean link, boolean editLink)
dc
- A DbControl for database accessch
- The change history entrylink
- TRUE to link the name to theview pageeditLink
- TRUE to enable CTRL/ALT/SHIFT-click for editingprivate static java.lang.String getLink(java.lang.String ID, Nameable item, java.lang.Integer itemId, boolean denied, boolean notFound, boolean link, boolean editLink)