KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.jahia.services.usermanager;
2
3 import java.io.Serializable JavaDoc;
4
5 /**
6  * <p>Title: Jahia user wrapper.</p>
7  * <p>Description: Stores users even if they are null to avoid some requests/queries against providers.</p>
8  *
9  * @author EP
10  * @version 1.0
11  */

12 public class JahiaUserWrapper implements Serializable JavaDoc {
13
14     // the internal user, only defined when creating object
15
private JahiaUser user;
16     
17     /**
18      * Constructor.
19      *
20      * @param ju JahiaUser, a user from a provider.
21      */

22     public JahiaUserWrapper (JahiaUser ju) {
23         user = ju;
24     }
25     
26     /**
27      * Get the internal user.
28      *
29      * @return JahiaUser, the internal user.
30      */

31     public JahiaUser getUser() {
32         return user;
33     }
34 }
Popular Tags