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 import org.apache.turbine.util.security.TurbineSecurityException;
20
21 /***
22 * This class represents the permissions that a Role has to access
23 * certain pages/functions within the system. The class implements
24 * Comparable so that when Permissions are added to a Set, they will
25 * be in alphabetical order by name.
26 *
27 * @author <a href="mailto:frank.kim@clearink.com">Frank Y. Kim</a>
28 * @author <a href="mailto:john.mcnally@clearink.com">John D. McNally</a>
29 * @author <a href="mailto:bmclaugh@algx.net">Brett McLaughlin</a>
30 * @author <a href="mailto:hps@intermeta.de">Henning P. Schmiedehausen</a>
31 * @version $Id: Permission.java 264148 2005-08-29 14:21:04Z henning $
32 */
33 public interface Permission extends SecurityEntity
34 {
35 /***
36 * Makes changes made to the Permission attributes permanent.
37 *
38 * @throws TurbineSecurityException if there is a problem while
39 * saving data.
40 */
41 void save()
42 throws TurbineSecurityException;
43
44 /***
45 * Removes a permission from the system.
46 *
47 * @throws TurbineSecurityException if the Permission could not be removed.
48 */
49 void remove()
50 throws TurbineSecurityException;
51
52 /***
53 * Renames the permission.
54 *
55 * @param name The new Permission name.
56 * @throws TurbineSecurityException if the Permission could not be renamed.
57 */
58 void rename(String name)
59 throws TurbineSecurityException;
60 }