|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.basedb.clients.web.ChangeHistoryUtil
public class ChangeHistoryUtil
Utility class for working with change history.
Constructor Summary | |
---|---|
private |
ChangeHistoryUtil()
|
Method Summary | |
---|---|
static 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 String |
getItem(DbControl dc,
ChangeHistory ch,
boolean link,
boolean editLink)
Get the item that was changed in HTML format. |
static String |
getJob(DbControl dc,
ChangeHistory ch,
boolean link,
boolean editLink)
Get the job that made the change in HTML format. |
private static String |
getLink(String ID,
Nameable item,
Integer itemId,
boolean denied,
boolean notFound,
boolean link,
boolean editLink)
|
static String |
getPlugin(DbControl dc,
ChangeHistory ch,
boolean link,
boolean editLink)
Get the plug-in that made the change in HTML format. |
static 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 String |
getSession(DbControl dc,
ChangeHistory ch,
boolean link,
boolean editLink)
Get the session in which the changes was made in HTML format. |
static 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
private ChangeHistoryUtil()
Method Detail |
---|
public static final boolean showChangeHistoryTab(SessionControl sc)
sc
- The current session control
public static 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 editing
public static 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 editing
public static 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 editing
public static 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 editing
public static 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 editing
public static 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 editing
public static 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 editing
private static String getLink(String ID, Nameable item, Integer itemId, boolean denied, boolean notFound, boolean link, boolean editLink)
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |