|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cocoon.util.AbstractLogEnabled
org.apache.cocoon.xml.AbstractXMLProducer
org.apache.cocoon.xml.AbstractXMLPipe
org.apache.cocoon.transformation.AbstractTransformer
org.dspace.app.xmlui.wing.AbstractWingTransformer
org.dspace.app.xmlui.cocoon.AbstractDSpaceTransformer
org.dspace.app.xmlui.aspect.administrative.SystemwideAlerts
public class SystemwideAlerts
This class maintains any system-wide alerts. If any alerts are activated then they are added to the page's metadata for display by the theme. This class also creates an interface for the alert system to be maintained.
| Field Summary | |
|---|---|
static int |
STATE_ALL_SESSIONS
Possible user restricted states |
static int |
STATE_CURRENT_SESSIONS
|
static int |
STATE_ONLY_ADMINISTRATIVE_SESSIONS
|
| Fields inherited from class org.dspace.app.xmlui.cocoon.AbstractDSpaceTransformer |
|---|
context, contextPath, eperson, knot, objectModel, parameters, servletPath, sitemapURI, url |
| Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
|---|
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer |
| Fields inherited from interface org.apache.cocoon.transformation.Transformer |
|---|
ROLE |
| Constructor Summary | |
|---|---|
SystemwideAlerts()
|
|
| Method Summary | |
|---|---|
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. |
java.io.Serializable |
getKey()
Generate the unique caching key. |
static java.lang.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(java.lang.String message)
Set the current alert's message. |
static void |
setRestrictSessions(int restrictsessions)
|
| Methods inherited from class org.dspace.app.xmlui.cocoon.AbstractDSpaceTransformer |
|---|
addBody, addOptions, addUserMeta, decodeFromURL, dispose, encodeForURL, generateURL, getComponentName, getObjectManager, handleException, recycle, setup |
| Methods inherited from class org.dspace.app.xmlui.wing.AbstractWingTransformer |
|---|
createWingDocument, endDocument, endElement, endPrefixMapping, getDefaultMessageCatalogue, message, message, setupWing, startDocument, startElement, startPrefixMapping |
| Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe |
|---|
characters, comment, endCDATA, endDTD, endEntity, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDTD, startEntity |
| Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer |
|---|
setConsumer, setContentHandler, setLexicalHandler |
| Methods inherited from class org.apache.cocoon.util.AbstractLogEnabled |
|---|
getLogger, setLogger |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xml.sax.ContentHandler |
|---|
characters, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity |
| Methods inherited from interface org.xml.sax.ext.LexicalHandler |
|---|
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity |
| Methods inherited from interface org.apache.cocoon.xml.XMLProducer |
|---|
setConsumer |
| Field Detail |
|---|
public static final int STATE_ALL_SESSIONS
public static final int STATE_CURRENT_SESSIONS
public static final int STATE_ONLY_ADMINISTRATIVE_SESSIONS
| Constructor Detail |
|---|
public SystemwideAlerts()
| Method Detail |
|---|
public java.io.Serializable getKey()
getKey in interface org.apache.cocoon.caching.CacheableProcessingComponentpublic org.apache.excalibur.source.SourceValidity getValidity()
getValidity in interface org.apache.cocoon.caching.CacheableProcessingComponent
public void addPageMeta(PageMeta pageMeta)
throws WingException
addPageMeta in interface DSpaceTransformeraddPageMeta in interface WingTransformeraddPageMeta in class AbstractDSpaceTransformerWingExceptionpublic static boolean isAlertActive()
public static void activateAlert()
public static void deactivateAlert()
public static void setMessage(java.lang.String message)
message - The new messagepublic static java.lang.String getMessage()
public static long getCountDownToo()
public static void setCountDownToo(long countDownTo)
public static int getRestrictSessions()
public static void setRestrictSessions(int restrictsessions)
public static boolean canUserStartSession()
public static boolean canUserMaintainSession()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||