01: /*
02: * Copyright 2001-2006 C:1 Financial Services GmbH
03: *
04: * This software is free software; you can redistribute it and/or
05: * modify it under the terms of the GNU Lesser General Public
06: * License Version 2.1, as published by the Free Software Foundation.
07: *
08: * This software is distributed in the hope that it will be useful,
09: * but WITHOUT ANY WARRANTY; without even the implied warranty of
10: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11: * Lesser General Public License for more details.
12: *
13: * You should have received a copy of the GNU Lesser General Public
14: * License along with this library; if not, write to the Free Software
15: * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA
16: */
17:
18: package de.finix.contelligent.core.security;
19:
20: /**
21: * A <code>Role</code> is a {@link ContelligentPrincipal} which may be
22: * assigned to {@link User users} so that users from different
23: * {@link PrincipalGroup groups} can share the same roles.
24: *
25: * @see ContelligentPrincipal
26: * @see User
27: * @see Role
28: */
29: public interface Role extends ContelligentPrincipal {
30: // =========================================================================
31: // from interface Principal:
32: // =========================================================================
33:
34: // String getName(); // Returns the unique id of the role
35: // boolean equals(Object another); // Compares this principal to the
36: // specified object.
37: // int hashCode(); // Returns a hashcode for this principal.
38: // String toString(); // Returns a string representation of this principal.
39:
40: // =========================================================================
41: // inherited from interface ContelligentPrincipal:
42: // =========================================================================
43:
44: // String getDisplayName();
45: // String getGroupId(); // Returns the id of the principal-group tge
46: // principal belongs to.
47:
48: }
|