Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
X
xwiki-platform
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
XWiki
xwiki-platform
Commits
bafd4c38
Commit
bafd4c38
authored
12 years ago
by
Jean-Vincent Drean
Browse files
Options
Downloads
Patches
Plain Diff
XWIKI-7688 : Implement the user preferences configuration source
parent
4fd360b2
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
xwiki-platform-core/xwiki-platform-configuration/xwiki-platform-configuration-default/src/main/java/org/xwiki/configuration/internal/UserPreferencesConfigurationSource.java
+13
-8
13 additions, 8 deletions
...guration/internal/UserPreferencesConfigurationSource.java
with
13 additions
and
8 deletions
xwiki-platform-core/xwiki-platform-configuration/xwiki-platform-configuration-default/src/main/java/org/xwiki/configuration/internal/UserPreferencesConfigurationSource.java
+
13
−
8
View file @
bafd4c38
...
...
@@ -37,20 +37,25 @@
@Singleton
public
class
UserPreferencesConfigurationSource
extends
AbstractDocumentConfigurationSource
{
/**
* Space name of the user class document.
*/
private
static
final
String
CLASS_SPACE_NAME
=
"XWiki"
;
/**
* Document name of the user class document.
*/
private
static
final
String
CLASS_PAGE_NAME
=
"XWikiUsers"
;
@Override
protected
DocumentReference
getClassReference
()
{
// TODO: Not enabled yet. See #getDocumentReference().
return
null
;
return
new
DocumentReference
(
getCurrentWikiReference
().
getName
(),
CLASS_SPACE_NAME
,
CLASS_PAGE_NAME
);
}
@Override
protected
DocumentReference
getDocumentReference
()
{
// TODO: Not enabled yet. In order to enable it we need to make modifications so that
// DAB.getCurrentUser() returns a DocumentReference and not a String as otherwise it will create
// a stackoverflow (circular dependency): in order to create a DocumentReference we would need to
// use a factory which would need to use this configuration source.
return
null
;
return
getDocumentAccessBridge
().
getCurrentUserReference
();
}
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment