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