public class NewsHelper extends ContentHelper
修飾子とタイプ | フィールド | 説明 |
---|---|---|
static java.lang.String |
NEWS_FILE |
|
static java.lang.String |
PROP_LAST_CHECKED |
|
static java.lang.String |
PROP_LAST_UPDATE_TIME |
|
static java.lang.String |
PROP_LAST_UPDATED |
|
static java.lang.String |
PROP_TRANSLATE |
Default true
|
_page
_context, _out, CHECKED, PROP_ADVANCED
コンストラクタ | 説明 |
---|---|
NewsHelper() |
修飾子とタイプ | メソッド | 説明 |
---|---|---|
static java.lang.String |
devSU3UpdateConstraint() |
Translated message about new version available but constrained
|
static java.lang.String |
devSU3UpdateVersion() |
|
static java.lang.String |
devSU3VersionDownloaded() |
Already downloaded but not installed version
|
static boolean |
dontInstall(RouterContext ctx) |
|
java.lang.String |
getContent() |
If we haven't downloaded news yet, use the translated initial news file
|
static java.lang.String |
getUpdateStatus() |
|
static boolean |
isAnyUpdateInProgress() |
If ANY update is in progress.
|
static boolean |
isBaseReadonly(RouterContext ctx) |
|
static boolean |
isDevSU3UpdateAvailable(RouterContext ctx) |
Will be false if already downloaded or if dev update disabled.
|
static boolean |
isUnsignedUpdateAvailable(RouterContext ctx) |
Will be false if already downloaded or if dev update disabled.
|
static boolean |
isUpdateAvailable() |
Release update only.
|
static boolean |
isUpdateDisabled(RouterContext ctx) |
|
static boolean |
isUpdateInProgress() |
If a signed or unsigned router update is in progress.
|
static long |
lastChecked(RouterContext ctx) |
|
static long |
lastUpdated(RouterContext ctx) |
When the news was last downloaded
|
boolean |
shouldShowNews() |
Is the news newer than the last time it was hidden?
|
static boolean |
shouldShowNews(RouterContext ctx) |
|
void |
showNews(boolean yes) |
Save config with the timestamp of the current news to hide, or 0 to show
|
static void |
showNews(RouterContext ctx,
boolean yes) |
Save config with the timestamp of the current news to hide, or 0 to show
|
java.lang.String |
status() |
|
static java.lang.String |
status(RouterContext ctx) |
|
static java.lang.String |
unsignedUpdateConstraint() |
Translated message about new version available but constrained
|
static java.lang.String |
unsignedUpdateVersion() |
|
static java.lang.String |
unsignedVersionDownloaded() |
Already downloaded but not installed version
|
static java.lang.String |
updateConstraint() |
Release update only.
|
static java.lang.String |
updateVersion() |
Release update only.
|
static java.lang.String |
updateVersionDownloaded() |
Release update only.
|
getTextContent, setLang, setMaxLines, setPage, setStartAtBeginning
_t, _t, _t, _x, getChecked, isAdvanced, ngettext, setContextId, storeWriter
public static final java.lang.String PROP_LAST_UPDATE_TIME
public static final java.lang.String PROP_LAST_CHECKED
public static final java.lang.String PROP_LAST_UPDATED
public static final java.lang.String PROP_TRANSLATE
public static final java.lang.String NEWS_FILE
public static boolean isAnyUpdateInProgress()
public static boolean isUpdateInProgress()
public static boolean isUpdateAvailable()
public static java.lang.String updateVersion()
public static java.lang.String updateConstraint()
public static java.lang.String unsignedUpdateConstraint()
public static java.lang.String devSU3UpdateConstraint()
public static java.lang.String updateVersionDownloaded()
public static boolean isUnsignedUpdateAvailable(RouterContext ctx)
public static java.lang.String unsignedUpdateVersion()
public static java.lang.String unsignedVersionDownloaded()
public static boolean isDevSU3UpdateAvailable(RouterContext ctx)
public static java.lang.String devSU3UpdateVersion()
public static java.lang.String devSU3VersionDownloaded()
public static java.lang.String getUpdateStatus()
public java.lang.String getContent()
getContent
クラス内 ContentHelper
public boolean shouldShowNews()
public static boolean shouldShowNews(RouterContext ctx)
public void showNews(boolean yes)
public static void showNews(RouterContext ctx, boolean yes)
public java.lang.String status()
public static java.lang.String status(RouterContext ctx)
public static boolean dontInstall(RouterContext ctx)
public static boolean isUpdateDisabled(RouterContext ctx)
public static boolean isBaseReadonly(RouterContext ctx)
public static long lastChecked(RouterContext ctx)
public static long lastUpdated(RouterContext ctx)