org.sakaiproject.entitybroker.entityprovider.capabilities
Interface Statisticable

All Superinterfaces:
EntityProvider

public interface Statisticable
extends EntityProvider

This capability is for tracking statistics of events for entities related to a tool, it will be used by the site stats service for event tracking and reporting
Contact Nuno Fernandes (nuno@ufp.edu.pt) if you have questions
This is one of the capability extensions for the EntityProvider interface

Author:
Nuno Fernandes (nuno@ufp.edu.pt), Aaron Zeckoski (aaron@caret.cam.ac.uk)

Method Summary
 String getAssociatedToolId()
          Return the associated common tool.id for this tool
 String[] getEventKeys()
          Return an array of all the event keys which should be tracked for statistics
 Map<String,String> getEventNames(Locale locale)
          OPTIONAL: return null if you do not want to implement this
Return the event key => event name map for a given Locale, allows the author to create human readable i18n names for their event keys
 
Methods inherited from interface org.sakaiproject.entitybroker.entityprovider.EntityProvider
getEntityPrefix
 

Method Detail

getAssociatedToolId

String getAssociatedToolId()
Return the associated common tool.id for this tool

Returns:
the tool id (example: "sakai.messages")

getEventKeys

String[] getEventKeys()
Return an array of all the event keys which should be tracked for statistics

Returns:
an array if event keys (example: "message.new" , "message.delete")

getEventNames

Map<String,String> getEventNames(Locale locale)
OPTIONAL: return null if you do not want to implement this
Return the event key => event name map for a given Locale, allows the author to create human readable i18n names for their event keys

Parameters:
locale - the locale to return the names for
Returns:
the map of event key => event name (example: for a 'en' locale: {"message.new","A new message"}) OR null to use the event keys


Copyright © 2007-2013 Sakai Project. All Rights Reserved.