KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > cms > security > auth > GroupList


1 /**
2  *
3  * Magnolia and its source-code is licensed under the LGPL.
4  * You may copy, adapt, and redistribute this file for commercial or non-commercial use.
5  * When copying, adapting, or redistributing this document in keeping with the guidelines above,
6  * you are required to provide proper attribution to obinary.
7  * If you reproduce or distribute the document without making any substantive modifications to its content,
8  * please use the following attribution line:
9  *
10  * Copyright 1993-2006 obinary Ltd. (http://www.obinary.com) All rights reserved.
11  *
12  */

13 package info.magnolia.cms.security.auth;
14
15 import java.io.Serializable JavaDoc;
16 import java.security.Principal JavaDoc;
17 import java.util.Collection JavaDoc;
18
19
20 /**
21  * @author Sameer Charles $Id: GroupList.java 6341 2006-09-12 09:18:27Z philipp $
22  */

23 public interface GroupList extends Principal JavaDoc, Serializable JavaDoc {
24
25     /**
26      * Get name given to this principal
27      * @return name
28      */

29     public String JavaDoc getName();
30
31     /**
32      * Set principal name
33      * @param name
34      */

35     public void setName(String JavaDoc name);
36
37     /**
38      * Add a name to the list
39      * @param name
40      */

41     public void add(String JavaDoc name);
42
43     /**
44      * Gets list of groups as string
45      * @return groups
46      */

47     public Collection JavaDoc getList();
48
49     /**
50      * Checks if the name exist in this list
51      * @param name
52      */

53     public boolean has(String JavaDoc name);
54
55 }
56
Popular Tags