1 package org.apache.turbine.om.security;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19 /***
20 * This class represents a Group of Users in the system that are associated
21 * with specific entity or resource. The users belonging to the Group may have
22 * various Roles. The Permissions to perform actions upon the resource depend
23 * on the Roles in the Group that they are assigned.
24 *
25 * @author <a href="mailto:Rafal.Krzewski@e-point.pl">Rafal Krzewski</a>
26 * @author <a href="mailto:hps@intermeta.de">Henning P. Schmiedehausen</a>
27 * @author <a href="mailto:marco@intermeta.de">Marco Knüttel</a>
28 * @version $Id: SecurityEntity.java 264148 2005-08-29 14:21:04Z henning $
29 */
30
31 public interface SecurityEntity
32 {
33 /***
34 * Get the Name of the SecurityEntity.
35 *
36 * @return The Name of the SecurityEntity.
37 */
38 String getName();
39
40 /***
41 * Sets the Name of the SecurityEntity.
42 *
43 * @param name Name of the SecurityEntity.
44 */
45 void setName(String name);
46
47 /***
48 * Get the Id of the SecurityEntity.
49 *
50 * @return The Id of the SecurityEntity.
51 */
52 int getId();
53
54 /***
55 * Get the Id of the SecurityEntity as an
56 * Integer object.
57 *
58 * @return The Id of the SecurityEntity.
59 */
60 Integer getIdAsObj();
61
62 /***
63 * Sets the Id of the SecurityEntity.
64 *
65 * @param id The new Id of the SecurityEntity
66 */
67 void setId(int id);
68 }