KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jahia > services > webdav > JahiaUserWrapper


1 package org.jahia.services.webdav;
2
3 import org.jahia.services.usermanager.JahiaUser;
4
5 import java.security.Principal JavaDoc;
6
7 /**
8  * Created by IntelliJ IDEA.
9  * User: toto
10  * Date: Apr 28, 2003
11  * Time: 4:27:01 PM
12  * To change this template use Options | File Templates.
13  */

14 public class JahiaUserWrapper implements Principal JavaDoc {
15
16     private JahiaUser jahiaUser;
17
18     public JahiaUserWrapper(JahiaUser jahiaUser) {
19         this.jahiaUser = jahiaUser;
20     }
21
22     /**
23      * Returns the name of this principal.
24      *
25      * @return the name of this principal.
26      */

27     public String JavaDoc getName() {
28         return jahiaUser.getUsername();
29     }
30 }
31
Popular Tags