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
21
22 /***
23 * This class represents a Group of Users in the system that are associated
24 * with specific entity or resource. The users belonging to the Group may have
25 * various Roles. The Permissions to perform actions upon the resource depend
26 * on the Roles in the Group that they are assigned.
27 *
28 * @author <a href="mailto:Rafal.Krzewski@e-point.pl">Rafal Krzewski</a>
29 * @author <a href="mailto:hps@intermeta.de">Henning P. Schmiedehausen</a>
30 * @author <a href="mailto:marco@intermeta.de">Marco Knüttel</a>
31 * @version $Id: SecurityEntity.java 534527 2007-05-02 16:10:59Z tv $
32 */
33
34 public interface SecurityEntity
35 {
36 /***
37 * Get the Name of the SecurityEntity.
38 *
39 * @return The Name of the SecurityEntity.
40 */
41 String getName();
42
43 /***
44 * Sets the Name of the SecurityEntity.
45 *
46 * @param name Name of the SecurityEntity.
47 */
48 void setName(String name);
49
50 /***
51 * Get the Id of the SecurityEntity.
52 *
53 * @return The Id of the SecurityEntity.
54 */
55 int getId();
56
57 /***
58 * Get the Id of the SecurityEntity as an
59 * Integer object.
60 *
61 * @return The Id of the SecurityEntity.
62 */
63 Integer getIdAsObj();
64
65 /***
66 * Sets the Id of the SecurityEntity.
67 *
68 * @param id The new Id of the SecurityEntity
69 */
70 void setId(int id);
71 }