org.apache.turbine.om.security
Interface Permission

All Superinterfaces:
SecurityEntity, java.io.Serializable
All Known Implementing Classes:
TorquePermission

public interface Permission
extends SecurityEntity, java.io.Serializable

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 534527 2007-05-02 16:10:59Z tv $
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-2008 Apache Software Foundation. All Rights Reserved.