org.apache.turbine.om.security
Class TurbinePermission
java.lang.Object
|
+--org.apache.turbine.om.BaseObject
|
+--org.apache.turbine.om.security.SecurityObject
|
+--org.apache.turbine.om.security.TurbinePermission
- All Implemented Interfaces:
- java.lang.Comparable, Permission, Persistent, SecurityEntity, java.io.Serializable
- public class TurbinePermission
- extends SecurityObject
- implements Permission
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: TurbinePermission.java,v 1.1.1.1 2001/08/16 05:08:43 jvanzyl Exp $
- Author:
- Frank Y. Kim, John D. McNally, Brett McLaughlin
- See Also:
- Serialized Form
Constructor Summary |
TurbinePermission()
Constructs a new TurbinePermission. |
TurbinePermission(java.lang.String name)
Constructs a new TurbinePermission with the sepcified name. |
Method Summary |
static Permission |
create(java.lang.String name)
Deprecated. Please use the createPermission method in TurbineSecurity. |
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 class org.apache.turbine.om.BaseObject |
equals, equals, getByName, getByPeerName, getByPosition, getPrimaryKey, getPrimaryKeyAsBigDecimal, getPrimaryKeyAsInt, getPrimaryKeyAsLong, getPrimaryKeyAsString, hashCode, isModified, isNew, resetModified, save, save, setModified, setNew, setPrimaryKey, setPrimaryKey, setPrimaryKey, setPrimaryKey, setPrimaryKey |
Methods inherited from class java.lang.Object |
, clone, finalize, getClass, notify, notifyAll, registerNatives, wait, wait, wait |
TurbinePermission
public TurbinePermission()
- Constructs a new TurbinePermission.
TurbinePermission
public TurbinePermission(java.lang.String name)
- Constructs a new TurbinePermission with the sepcified name.
- Parameters:
name
- The name of the new object.
create
public static Permission create(java.lang.String name)
throws TurbineSecurityException
- Deprecated. Please use the createPermission method in TurbineSecurity.
- Creates a new Permission in the system.
- Parameters:
name
- The name of the new Permission.- Returns:
- An object representing the new Permission.
- Throws:
TurbineSecurityException
- if the Permission could not be created.
save
public void save()
throws TurbineSecurityException
- Makes changes made to the Permission attributes permanent.
- Specified by:
save
in interface Permission
- Overrides:
save
in class BaseObject
- Throws:
TurbineSecurityException
- if there is a problem while
saving data.
remove
public void remove()
throws TurbineSecurityException
- Removes a permission from the system.
- Specified by:
remove
in interface Permission
- Throws:
TurbineSecurityException
- if the Permission could not be removed.
rename
public void rename(java.lang.String name)
throws TurbineSecurityException
- Renames the permission.
- Specified by:
rename
in interface Permission
- Parameters:
name
- The new Permission name.- Throws:
TurbineSecurityException
- if the Permission could not be renamed.
Copyright © 2000-2002 Apache Software Foundation. All Rights Reserved.