org.xwiki.configuration.internal
Class UserPreferencesConfigurationSource

java.lang.Object
  extended by org.xwiki.configuration.internal.AbstractDocumentConfigurationSource
      extended by org.xwiki.configuration.internal.UserPreferencesConfigurationSource
All Implemented Interfaces:
org.xwiki.configuration.ConfigurationSource

@Component
@Named(value="user")
@Singleton
public class UserPreferencesConfigurationSource
extends AbstractDocumentConfigurationSource

Configuration source taking its data in the User Preferences wiki document (the user profile page) using data from a XWikiUsers object attached to that document.

Since:
2.0M2
Version:
$Id$

Constructor Summary
UserPreferencesConfigurationSource()
           
 
Method Summary
protected  DocumentReference getClassReference()
           
protected  DocumentReference getDocumentReference()
           
 
Methods inherited from class org.xwiki.configuration.internal.AbstractDocumentConfigurationSource
containsKey, getCurrentWikiReference, getDocumentAccessBridge, getKeys, getProperty, getProperty, getProperty, isEmpty
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UserPreferencesConfigurationSource

public UserPreferencesConfigurationSource()
Method Detail

getClassReference

protected DocumentReference getClassReference()
Specified by:
getClassReference in class AbstractDocumentConfigurationSource
Returns:
the XWiki Class reference of the XWiki Object containing the configuration properties

getDocumentReference

protected DocumentReference getDocumentReference()
Specified by:
getDocumentReference in class AbstractDocumentConfigurationSource
Returns:
the document reference of the document containing an XWiki Object with configuration data or null if there no such document in which case this configuration source will be skipped


Copyright © 2004-2011 XWiki. All Rights Reserved.