KickJava   Java API By Example, From Geeks To Geeks.

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


1 package org.jahia.services.usermanager;
2
3 import java.io.Serializable JavaDoc;
4
5 /**
6  * <p>Title: Jahia group wrapper.</p>
7  * <p>Description: Stores groups 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 JahiaGroupWrapper implements Serializable JavaDoc {
13
14     // the internal group, only defined when creating object
15
private JahiaGroup group;
16     
17     /**
18      * Constructor.
19      *
20      * @param jg JahiaGroup, a group from a provider.
21      */

22     public JahiaGroupWrapper (JahiaGroup jg) {
23         group = jg;
24     }
25     
26     /**
27      * Get the internal group.
28      *
29      * @return JahiaGroup, the internal group.
30      */

31     public JahiaGroup getGroup() {
32         return group;
33     }
34 }
Popular Tags