Java Doc for StatsRecorder.java in  » Portal » uPortal_rel-2-6-1-GA » org » jasig » portal » services » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » uPortal_rel 2 6 1 GA » org.jasig.portal.services 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.jasig.portal.services.StatsRecorder

StatsRecorder
final public class StatsRecorder (Code)
Static cover for the primary instance of IStatsRecorder. This class makes the primary instance of IStatsRecorder defined as a Spring bean named "statsRecorder" available via static lookup. Various parts of the portal call the static methods in this service to record events such as when a user logs in, logs out, and subscribes to a channel. We forward those method calls to the configured instance of IStatsRecorder. Object instances configured via Spring and therefore ammenable to Dependency Injection can and probably should receive their IStatsRecorded instance via injection rather than statically accessing this class.
author:
   Ken Weiner, kweiner@unicon.net
version:
   $Revision: 36546 $ $Date: 2006-04-11 12:18:23 -0700 (Tue, 11 Apr 2006) $


Field Summary
final public static  StringBACKING_BEAN_NAME
     The name of the Spring-configured IStatsRecorder instance to which we expect to delegate.


Method Summary
public static  booleanget(int setting)
     This method is deprecated.
final public static  StatsRecorderLayoutEventListenernewLayoutEventListener(IPerson person, UserProfile profile)
     Creates an instance of a StatsRecorderLayoutEventListener.
public static  voidrecordChannelAddedToLayout(IPerson person, UserProfile profile, IUserLayoutChannelDescription channelDesc)
    
public static  voidrecordChannelDefinitionModified(IPerson person, ChannelDefinition channelDef)
    
public static  voidrecordChannelDefinitionPublished(IPerson person, ChannelDefinition channelDef)
    
public static  voidrecordChannelDefinitionRemoved(IPerson person, ChannelDefinition channelDef)
    
public static  voidrecordChannelInstantiated(IPerson person, UserProfile profile, IUserLayoutChannelDescription channelDesc)
    
public static  voidrecordChannelMovedInLayout(IPerson person, UserProfile profile, IUserLayoutChannelDescription channelDesc)
    
public static  voidrecordChannelRemovedFromLayout(IPerson person, UserProfile profile, IUserLayoutChannelDescription channelDesc)
    
public static  voidrecordChannelRendered(IPerson person, UserProfile profile, IUserLayoutChannelDescription channelDesc)
    
public static  voidrecordChannelTargeted(IPerson person, UserProfile profile, IUserLayoutChannelDescription channelDesc)
     Record that a channel is being targeted.
public static  voidrecordChannelUpdatedInLayout(IPerson person, UserProfile profile, IUserLayoutChannelDescription channelDesc)
    
public static  voidrecordFolderAddedToLayout(IPerson person, UserProfile profile, IUserLayoutFolderDescription folderDesc)
    
public static  voidrecordFolderMovedInLayout(IPerson person, UserProfile profile, IUserLayoutFolderDescription folderDesc)
    
public static  voidrecordFolderRemovedFromLayout(IPerson person, UserProfile profile, IUserLayoutFolderDescription folderDesc)
    
public static  voidrecordFolderUpdatedInLayout(IPerson person, UserProfile profile, IUserLayoutFolderDescription folderDesc)
    
public static  voidrecordLogin(IPerson person)
     Record the successful login of a user.
public static  voidrecordLogout(IPerson person)
     Record the logout of a user.
public static  voidrecordSessionCreated(IPerson person)
     Record that a new session is created for a user.
public static  voidrecordSessionDestroyed(IPerson person)
    
public static  voidset(int setting, boolean newValue)
     This method is deprecated.

Field Detail
BACKING_BEAN_NAME
final public static String BACKING_BEAN_NAME(Code)
The name of the Spring-configured IStatsRecorder instance to which we expect to delegate.





Method Detail
get
public static boolean get(int setting)(Code)
This method is deprecated. Stats recorder settings are no longer necessarily global. This method (continues to) access information about only one particular way in which StatsRecorder can be configured, that of portal.properties entries specifying booleans about which kinds of statistics should be recorded, fronting the StatsRecorderSettings static singleton. Instead of using the Static Singleton (anti-)pattern, you can instead wire together and configure your IStatsRecorder as a Spring-managed bean named "statsRecorder" and there apply, in a strongly typed and more flexible way, your desired statistics recording configuration. Specifically, the ConditionalStatsRecorder wrapper now provides a JavaBean-properties approach to querying the settings that were previously accessible via this method. Note that since StatsRecorderSettings is a Static Singleton, this implementation of this method continues to do what the 2.5.0 implementation did. The change since 2.5.0 is that StatsRecorderSettings is no longer necessarily controlling of StatsRecorder behavior. Gets the value of a particular stats recorder from StatsRecorderSettings. Possible settings are available from StatsRecorderSettings. For example: StatsRecorder.get(StatsRecorderSettings.RECORD_LOGIN)
Parameters:
  setting - the setting the value for the setting



newLayoutEventListener
final public static StatsRecorderLayoutEventListener newLayoutEventListener(IPerson person, UserProfile profile)(Code)
Creates an instance of a StatsRecorderLayoutEventListener. There is currently no difference between calling this method and using the StatsRecorderLayoutEventListener constructor directly. a new stats recorder layout event listener instance



recordChannelAddedToLayout
public static void recordChannelAddedToLayout(IPerson person, UserProfile profile, IUserLayoutChannelDescription channelDesc)(Code)
Record that a channel is being added to a user layout
Parameters:
  person - the person adding the channel
Parameters:
  profile - the profile of the layout to which the channel is being added
Parameters:
  channelDesc - the channel being subscribed to



recordChannelDefinitionModified
public static void recordChannelDefinitionModified(IPerson person, ChannelDefinition channelDef)(Code)
Record that an existing channel is being modified
Parameters:
  person - the person modifying the channel
Parameters:
  channelDef - the channel being modified



recordChannelDefinitionPublished
public static void recordChannelDefinitionPublished(IPerson person, ChannelDefinition channelDef)(Code)
Record that a new channel is being published
Parameters:
  person - the person publishing the channel
Parameters:
  channelDef - the channel being published



recordChannelDefinitionRemoved
public static void recordChannelDefinitionRemoved(IPerson person, ChannelDefinition channelDef)(Code)
Record that a channel is being removed
Parameters:
  person - the person removing the channel
Parameters:
  channelDef - the channel being modified



recordChannelInstantiated
public static void recordChannelInstantiated(IPerson person, UserProfile profile, IUserLayoutChannelDescription channelDesc)(Code)
Record that a channel is being instantiated
Parameters:
  person - the person for whom the channel is instantiated
Parameters:
  profile - the profile of the layout for whom the channel is instantiated
Parameters:
  channelDesc - the channel being instantiated



recordChannelMovedInLayout
public static void recordChannelMovedInLayout(IPerson person, UserProfile profile, IUserLayoutChannelDescription channelDesc)(Code)
Record that a channel is being moved in a user layout
Parameters:
  person - the person moving the channel
Parameters:
  profile - the profile of the layout in which the channel is being moved
Parameters:
  channelDesc - the channel being moved



recordChannelRemovedFromLayout
public static void recordChannelRemovedFromLayout(IPerson person, UserProfile profile, IUserLayoutChannelDescription channelDesc)(Code)
Record that a channel is being removed from a user layout
Parameters:
  person - the person removing the channel
Parameters:
  profile - the profile of the layout to which the channel is being added
Parameters:
  channelDesc - the channel being removed from a user layout



recordChannelRendered
public static void recordChannelRendered(IPerson person, UserProfile profile, IUserLayoutChannelDescription channelDesc)(Code)
Record that a channel is being rendered
Parameters:
  person - the person for whom the channel is rendered
Parameters:
  profile - the profile of the layout for whom the channel is rendered
Parameters:
  channelDesc - the channel being rendered



recordChannelTargeted
public static void recordChannelTargeted(IPerson person, UserProfile profile, IUserLayoutChannelDescription channelDesc)(Code)
Record that a channel is being targeted. In other words, the user is interacting with the channel via either a hyperlink or form submission.
Parameters:
  person - the person interacting with the channel
Parameters:
  profile - the profile of the layout in which the channel resides
Parameters:
  channelDesc - the channel being targeted



recordChannelUpdatedInLayout
public static void recordChannelUpdatedInLayout(IPerson person, UserProfile profile, IUserLayoutChannelDescription channelDesc)(Code)
Record that a channel is being updated in a user layout
Parameters:
  person - the person updating the channel
Parameters:
  profile - the profile of the layout in which the channel is being updated
Parameters:
  channelDesc - the channel being updated



recordFolderAddedToLayout
public static void recordFolderAddedToLayout(IPerson person, UserProfile profile, IUserLayoutFolderDescription folderDesc)(Code)
Record that a folder is being added to a user layout
Parameters:
  person - the person adding the folder
Parameters:
  profile - the profile of the layout to which the folder is being added
Parameters:
  folderDesc - the folder being subscribed to



recordFolderMovedInLayout
public static void recordFolderMovedInLayout(IPerson person, UserProfile profile, IUserLayoutFolderDescription folderDesc)(Code)
Record that a folder is being moved in a user layout
Parameters:
  person - the person moving the folder
Parameters:
  profile - the profile of the layout in which the folder is being moved
Parameters:
  folderDesc - the folder being moved



recordFolderRemovedFromLayout
public static void recordFolderRemovedFromLayout(IPerson person, UserProfile profile, IUserLayoutFolderDescription folderDesc)(Code)
Record that a folder is being removed from a user layout
Parameters:
  person - the person removing the folder
Parameters:
  profile - the profile of the layout to which the folder is being added
Parameters:
  folderDesc - the folder being removed from a user layout



recordFolderUpdatedInLayout
public static void recordFolderUpdatedInLayout(IPerson person, UserProfile profile, IUserLayoutFolderDescription folderDesc)(Code)
Record that a folder is being updated in a user layout
Parameters:
  person - the person updating the folder
Parameters:
  profile - the profile of the layout in which the folder is being updated
Parameters:
  folderDesc - the folder being updated



recordLogin
public static void recordLogin(IPerson person)(Code)
Record the successful login of a user.
Parameters:
  person - the person who is logging in



recordLogout
public static void recordLogout(IPerson person)(Code)
Record the logout of a user.
Parameters:
  person - the person who is logging out



recordSessionCreated
public static void recordSessionCreated(IPerson person)(Code)
Record that a new session is created for a user.
Parameters:
  person - the person whose session is being created



recordSessionDestroyed
public static void recordSessionDestroyed(IPerson person)(Code)
Record that a user's session is destroyed (when the user logs out or his/her session simply times out)
Parameters:
  person - the person whose session is ending



set
public static void set(int setting, boolean newValue)(Code)
This method is deprecated. Stats recorder settings are no longer necessarily global. This method (continues to) provide a very thin layer in front of just one particular way in which StatsRecorder can be configured, that of portal.poperties specifying booleans about which kinds of statistics should be recorded, fronting the StatsRecorderSettings static singleton. Instead of using the Static Singleton (anti-)patterh, you can instead wire together and configure your IStatsRecorder as a Spring-managed bean named "statsRecorder" and there apply, in a strongly typed and more flexible way, your desired statistics recording configuration. Specifically, the ConditionalStatsRecorder wrapper now provides a JavaBean-properties approach to configuring the stats recorder even filtering that was previously configurable via this method. Note that since StatsRecorderSettings is a Static Singleton, this implementation of this method continues to do what the 2.5.0 implementation did. The change since 2.5.-0 is that StatsRecorderSettings is no longer necessarily controlling of StatsRecorderBehavior. CALLING THIS METHOD MAY HAVE NO EFFECT ON StatsRecorder BEHAVIOR. This method will only have effect if the IStatsRecorder implementation is actually using StatsRecorderSettings. Sets the value of a particular stats recorder setting. Possible settings are available from StatsRecorderSettings. For example: StatsRecorder.set(StatsRecorderSettings.RECORD_LOGIN, true)
Parameters:
  setting - the setting to change
Parameters:
  newValue - the new value for the setting



Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.