com.centrasite.control.types
Class MyNotificationsReport

java.lang.Object
  extended by com.centrasite.control.discovery.AbstractReport
      extended by com.centrasite.control.types.RegistryObjectReport
          extended by com.centrasite.control.types.MyNotificationsReport
All Implemented Interfaces:
ItemsProvider, ReportInterface

public class MyNotificationsReport
extends RegistryObjectReport

Model for upper table in "My Notifications" screen


Field Summary
static java.lang.String CONTEXT
           
 
Fields inherited from interface com.centrasite.control.ReportInterface
ASCENDING, DESCENDING, FLAG_ADD_CONTEXT_MENU_METHOD, FLAG_NONE, FLAG_NOT_PART_OF_COLUMNS, FLAG_NOT_PART_OF_CSVCOLUMN, FLAG_NOT_PART_OF_LINES, FLAG_RENDER_ITEM_IMAGE, FLAG_RENDER_READ_ONLY, FLAG_RENDER_REFERENCE_ITEM_IMAGE, FLAG_RENDER_VALUE_AS_CHECKBOX, FLAG_RENDER_VALUE_AS_IMAGEPROP, FLAG_RENDER_VALUE_WITH_METHODLINK, FLAG_SORT_BY_DEFAULT_ASC, FLAG_SORT_BY_DEFAULT_DESC, FLAG_SORT_ICON_INVISIBLE, FLAG_VISIBLE_ALWAYS, FLAG_VISIBLE_BY_DEFAULT
 
Constructor Summary
MyNotificationsReport(Connector con)
           
 
Method Summary
 java.util.List getContextMenuCommands(Item item)
          Obtain the commands list to be displayed on context menu request.
 java.lang.String getDescription(java.util.Locale locale)
          Get description of report
 java.lang.String getImageURL()
          Get URL of icon
 Item getItem(java.lang.Object object)
          Provide an item to be rendered
 int getNotReadNotificationsCount()
           
 java.lang.String getTitle(java.util.Locale locale)
          Get title of report
 boolean implicitlyAddRefreshCommand()
          Check whether the standard "Refresh" command shall implicitly be added to this report's toolbar
 java.util.Collection prepareItems()
          Prepare items to get them in subsequent calls to getItem(Object object)
 boolean supportsDelayedRead()
           
 
Methods inherited from class com.centrasite.control.types.RegistryObjectReport
getConnector, getItems, save, setItem
 
Methods inherited from class com.centrasite.control.discovery.AbstractReport
addAccessor, addAccessor, addDynamicColumns, appendUserHeading, clearCommands, duplicate, endProcess, execute, getAccessor, getAllHeadings, getAllHeadingsNotPartOfColumn, getCommands, getFixedColumnHeadings, getHeadings, getHeadingsNotPartOfColumn, getId, getItem, getLocale, getNonEmptyTitle, getOnSelectCommand, getPropertyAccessor, getPropertyAccessorFlags, getRows, getSelectedItem, getToolbarCommands, hasPropertyAccessorWithFlag, hasUserConfiguration, implicitlyAddSaveReportCommand, implicitlyAddSelectColumnsCommand, initializeUserHeadings, initializeUserHeadings, removeCommand, resetUserHeadings, setItemsProvider, setLocale, setSelectedItem, suppressColumns, suppressProperty, toXhtml, toXhtml
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONTEXT

public static final java.lang.String CONTEXT
Constructor Detail

MyNotificationsReport

public MyNotificationsReport(Connector con)
Method Detail

implicitlyAddRefreshCommand

public boolean implicitlyAddRefreshCommand()
Description copied from class: AbstractReport
Check whether the standard "Refresh" command shall implicitly be added to this report's toolbar

Specified by:
implicitlyAddRefreshCommand in interface ReportInterface
Overrides:
implicitlyAddRefreshCommand in class AbstractReport
Returns:
true if to be added, false otherwise

getItem

public Item getItem(java.lang.Object object)
             throws java.lang.Exception
Description copied from class: AbstractReport
Provide an item to be rendered

Specified by:
getItem in interface ItemsProvider
Overrides:
getItem in class AbstractReport
Throws:
java.lang.Exception

getNotReadNotificationsCount

public int getNotReadNotificationsCount()
                                 throws java.lang.Exception
Throws:
java.lang.Exception

getTitle

public java.lang.String getTitle(java.util.Locale locale)
                          throws java.lang.Exception
Description copied from class: RegistryObjectReport
Get title of report

Specified by:
getTitle in interface ReportInterface
Overrides:
getTitle in class RegistryObjectReport
Throws:
java.lang.Exception

getDescription

public java.lang.String getDescription(java.util.Locale locale)
                                throws java.lang.Exception
Description copied from class: RegistryObjectReport
Get description of report

Specified by:
getDescription in interface ReportInterface
Overrides:
getDescription in class RegistryObjectReport
Throws:
java.lang.Exception

getContextMenuCommands

public java.util.List getContextMenuCommands(Item item)
Description copied from interface: ReportInterface
Obtain the commands list to be displayed on context menu request.

Specified by:
getContextMenuCommands in interface ReportInterface
Overrides:
getContextMenuCommands in class AbstractReport
Returns:
Copy of this item commands collection.
See Also:
Can be overridden by implementors in order to provide custom list of commands.

prepareItems

public java.util.Collection prepareItems()
                                  throws java.lang.Exception
Description copied from class: AbstractReport
Prepare items to get them in subsequent calls to getItem(Object object)

Specified by:
prepareItems in interface ItemsProvider
Overrides:
prepareItems in class AbstractReport
Throws:
java.lang.Exception

supportsDelayedRead

public boolean supportsDelayedRead()
Specified by:
supportsDelayedRead in interface ItemsProvider
Overrides:
supportsDelayedRead in class AbstractReport
Returns:
true, if methods prepareItems() and getItem(Object) are supported for lazy reading / cursoring

getImageURL

public java.lang.String getImageURL()
                             throws java.lang.Exception
Description copied from class: RegistryObjectReport
Get URL of icon

Specified by:
getImageURL in interface ReportInterface
Overrides:
getImageURL in class RegistryObjectReport
Returns:
null if no image available
Throws:
java.lang.Exception