org.apache.turbine.om.security
Interface Permission

All Superinterfaces:
SecurityEntity
All Known Implementing Classes:
TorquePermission, TurbinePermission

public interface Permission
extends SecurityEntity

This class represents the permissions that a Role has to access certain pages/functions within the system. The class implements Comparable so that when Permissions are added to a Set, they will be in alphabetical order by name.

Version:
$Id: Permission.java 264148 2005-08-29 14:21:04Z henning $
Author:
Frank Y. Kim, John D. McNally, Brett McLaughlin, Henning P. Schmiedehausen

Method Summary
 void remove()
          Removes a permission from the system.
 void rename(java.lang.String name)
          Renames the permission.
 void save()
          Makes changes made to the Permission attributes permanent.
 
Methods inherited from interface org.apache.turbine.om.security.SecurityEntity
getId, getIdAsObj, getName, setId, setName
 

Method Detail

save

public void save()
          throws TurbineSecurityException
Makes changes made to the Permission attributes permanent.

Throws:
TurbineSecurityException - if there is a problem while saving data.

remove

public void remove()
            throws TurbineSecurityException
Removes a permission from the system.

Throws:
TurbineSecurityException - if the Permission could not be removed.

rename

public void rename(java.lang.String name)
            throws TurbineSecurityException
Renames the permission.

Parameters:
name - The new Permission name.
Throws:
TurbineSecurityException - if the Permission could not be renamed.


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.