org.xwiki.crypto.internal
Class DefaultUserDocumentUtils

java.lang.Object
  extended by org.xwiki.crypto.internal.DefaultUserDocumentUtils
All Implemented Interfaces:
UserDocumentUtils

@Component
public class DefaultUserDocumentUtils
extends java.lang.Object
implements UserDocumentUtils

Default implementation of UserDocumentUtils.

Since:
2.5M1
Version:
$Id$

Constructor Summary
DefaultUserDocumentUtils()
           
 
Method Summary
 java.lang.String getCurrentUser()
          
 java.lang.String getUserDocURL(java.lang.String userDocName)
          Get the external URL pointing to the given user document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultUserDocumentUtils

public DefaultUserDocumentUtils()
Method Detail

getCurrentUser

public java.lang.String getCurrentUser()

Specified by:
getCurrentUser in interface UserDocumentUtils
Returns:
The fully qualified name of the current user's document eg: xwiki:XWiki.JohnSmith.
See Also:
UserDocumentUtils.getCurrentUser()

getUserDocURL

public java.lang.String getUserDocURL(java.lang.String userDocName)
Get the external URL pointing to the given user document.

Specified by:
getUserDocURL in interface UserDocumentUtils
Parameters:
userDocName - the string representation of the document reference for the user document.
Returns:
A string representation of the external URL for the user doc.
See Also:
UserDocumentUtils.getUserDocURL(java.lang.String)


Copyright © 2004-2011 XWiki. All Rights Reserved.