KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > info > magnolia > jaas > principal > RoleListImpl


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.jaas.principal;
14
15 import info.magnolia.cms.security.auth.RoleList;
16
17 import org.apache.commons.lang.builder.ToStringBuilder;
18 import org.apache.commons.lang.builder.ToStringStyle;
19
20
21 /**
22  * @author Sameer Charles $Id: RoleListImpl.java 6341 2006-09-12 09:18:27Z philipp $
23  */

24 public class RoleListImpl extends GroupListImpl implements RoleList {
25
26     /**
27      * Stable serialVersionUID.
28      */

29     private static final long serialVersionUID = 222L;
30
31     /**
32      * default name for this principal
33      */

34     protected static final String JavaDoc DEFAULT_NAME = "roles";
35
36     public RoleListImpl() {
37         super();
38     }
39
40     /**
41      * @see java.lang.Object#toString()
42      */

43     public String JavaDoc toString() {
44         return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("name", this.name).append(
45             "list",
46             this.list).toString();
47     }
48
49 }
50
Popular Tags