|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.torque.om.BaseObject | +--org.apache.turbine.om.security.SecurityObject | +--org.apache.turbine.om.security.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.
Fields inherited from class org.apache.torque.om.BaseObject |
NEW_ID |
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. |
void |
save(java.sql.Connection conn)
not implemented |
void |
save(java.lang.String dbname)
not implemented |
Methods inherited from class org.apache.turbine.om.security.SecurityObject |
compareTo, getAttribute, getAttributes, getName, setAttribute, setAttributes, setName, toString |
Methods inherited from class org.apache.torque.om.BaseObject |
equals, equals, getByName, getByPeerName, getByPosition, getCategory, getPrimaryKey, getPrimaryKeyAsBigDecimal, getPrimaryKeyAsInt, getPrimaryKeyAsLong, getPrimaryKeyAsString, hashCode, isModified, isNew, log, resetModified, setModified, setNew, setPrimaryKey, setPrimaryKey, setPrimaryKey, setPrimaryKey, setPrimaryKey |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.turbine.om.security.SecurityEntity |
getName, setName |
Constructor Detail |
public TurbinePermission()
public TurbinePermission(java.lang.String name)
name
- The name of the new object.Method Detail |
public static Permission create(java.lang.String name) throws TurbineSecurityException
name
- The name of the new Permission.TurbineSecurityException
- if the Permission could not be created.public void save() throws TurbineSecurityException
save
in interface Permission
save
in class org.apache.torque.om.BaseObject
TurbineSecurityException
- if there is a problem while
saving data.public void save(java.sql.Connection conn) throws java.lang.Exception
save
in class org.apache.torque.om.BaseObject
conn
- java.lang.Exception
- public void save(java.lang.String dbname) throws java.lang.Exception
save
in class org.apache.torque.om.BaseObject
dbname
- java.lang.Exception
- public void remove() throws TurbineSecurityException
remove
in interface Permission
TurbineSecurityException
- if the Permission could not be removed.public void rename(java.lang.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: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |