|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.turbine.om.security.SecurityObject<Permission>
org.apache.turbine.om.security.TurbinePermission
public class TurbinePermission
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.
Constructor Summary | |
---|---|
TurbinePermission()
Constructs a new TurbinePermission. |
|
TurbinePermission(String name)
Constructs a new TurbinePermission with the sepcified name. |
Method Summary | |
---|---|
void |
remove()
Removes a permission from the system. |
void |
rename(String name)
Renames the permission. |
void |
save()
Makes changes made to the Permission attributes permanent. |
void |
save(Connection conn)
not implemented |
void |
save(String dbname)
not implemented |
Methods inherited from class org.apache.turbine.om.security.SecurityObject |
---|
compareTo, getAttribute, getAttributes, getId, getIdAsObj, getName, setAttribute, setAttributes, setId, setName, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.turbine.om.security.SecurityEntity |
---|
getId, getIdAsObj, getName, setId, setName |
Constructor Detail |
---|
public TurbinePermission()
public TurbinePermission(String name)
name
- The name of the new object.Method Detail |
---|
public void save() throws TurbineSecurityException
save
in interface Permission
TurbineSecurityException
- if there is a problem while saving data.public void save(Connection conn) throws Exception
conn
-
Exception
public void save(String dbname) throws Exception
dbname
-
Exception
public void remove() throws TurbineSecurityException
remove
in interface Permission
TurbineSecurityException
- if the Permission could not be removed.public void rename(String name) throws TurbineSecurityException
rename
in interface Permission
name
- The new Permission name.
TurbineSecurityException
- if the Permission could not be renamed.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |