public class SystemwideAlerts extends AbstractDSpaceTransformer implements org.apache.cocoon.caching.CacheableProcessingComponent
| Modifier and Type | Field and Description |
|---|---|
static int |
STATE_ALL_SESSIONS
Possible user restricted states
|
static int |
STATE_CURRENT_SESSIONS |
static int |
STATE_ONLY_ADMINISTRATIVE_SESSIONS |
context, contextPath, eperson, knot, objectModel, parameters, servletPath, sitemapURI, url| Constructor and Description |
|---|
SystemwideAlerts() |
| Modifier and Type | Method and Description |
|---|---|
static void |
activateAlert()
Activate the current alert.
|
void |
addPageMeta(PageMeta pageMeta)
If an alert is activated then add a count down message.
|
static boolean |
canUserMaintainSession()
Are users able to maintain a session, will return false if there is
a current alert activated and sessions are restricted.
|
static boolean |
canUserStartSession()
Are users able to start a new session, will return false if there is
a current alert activated and sessions are restricted.
|
static void |
deactivateAlert()
Deactivate the current alert.
|
static long |
getCountDownToo()
Get the time, in millieseconds, when the countdown timer is scheduled to end.
|
Serializable |
getKey()
Generate the unique caching key.
|
static String |
getMessage() |
static int |
getRestrictSessions() |
org.apache.excalibur.source.SourceValidity |
getValidity()
Generate the cache validity object.
|
static boolean |
isAlertActive()
Check whether an alert is active.
|
static void |
setCountDownToo(long countDownTo)
Set the time, in millieseconds, to which the countdown timer should end.
|
static void |
setMessage(String message)
Set the current alert's message.
|
static void |
setRestrictSessions(int restrictsessions) |
addBody, addOptions, addUserMeta, decodeFromURL, dispose, encodeForURL, generateURL, getComponentName, getObjectManager, handleException, recycle, setupcreateWingDocument, endDocument, endElement, endPrefixMapping, getDefaultMessageCatalogue, message, message, setupWing, startDocument, startElement, startPrefixMappingcharacters, comment, endCDATA, endDTD, endEntity, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDTD, startEntitysetConsumer, setContentHandler, setLexicalHandlerclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcharacters, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntitycomment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntitypublic static final int STATE_ALL_SESSIONS
public static final int STATE_CURRENT_SESSIONS
public static final int STATE_ONLY_ADMINISTRATIVE_SESSIONS
public Serializable getKey()
getKey in interface org.apache.cocoon.caching.CacheableProcessingComponentpublic org.apache.excalibur.source.SourceValidity getValidity()
getValidity in interface org.apache.cocoon.caching.CacheableProcessingComponentpublic void addPageMeta(PageMeta pageMeta) throws WingException
addPageMeta in interface DSpaceTransformeraddPageMeta in interface WingTransformeraddPageMeta in class AbstractDSpaceTransformerpageMeta - to be added.WingException - passed through.public static boolean isAlertActive()
public static void activateAlert()
public static void deactivateAlert()
public static void setMessage(String message)
message - The new messagepublic static String getMessage()
public static long getCountDownToo()
public static void setCountDownToo(long countDownTo)
countDownTo - countdown end time.public static int getRestrictSessions()
public static void setRestrictSessions(int restrictsessions)
public static boolean canUserStartSession()
public static boolean canUserMaintainSession()
Copyright © 2016 DuraSpace. All rights reserved.