| 
 | |||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.apache.turbine.services.security.torque.TorqueObject
org.apache.turbine.services.security.torque.TorquePermission
This class represents a permission given to a Role associated with the current Session. It is separated from the actual Torque peer object to be able to replace the Peer with an user supplied Peer (and Object)
| Field Summary | 
| Fields inherited from class org.apache.turbine.services.security.torque.TorqueObject | 
| obj | 
| Constructor Summary | |
| TorquePermission()Constructs a Permission | |
| TorquePermission(org.apache.torque.om.Persistent obj)The package private Constructor is used when the PermissionPeerManager has retrieved a list of Database Objects from the peer and must 'wrap' them into TorquePermission Objects. | |
| TorquePermission(java.lang.String name)Constructs a new Permission with the sepcified name. | |
| Method Summary | |
| static Permission | create(java.lang.String name)Deprecated. Please use the createPermission method in TurbineSecurity. | 
|  int | getId()Gets the Id of this object | 
|  java.lang.Integer | getIdAsObj()Gets the Id of this object | 
|  java.lang.String | getName()Returns the name of this object. | 
|  org.apache.torque.om.Persistent | getPersistentObj()Returns the underlying Object for the Peer Used in the PermissionPeerManager when building a new Criteria. | 
|  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 | setId(int id)Sets the Id of this object | 
|  void | setName(java.lang.String name)Sets the name of this object. | 
| Methods inherited from class org.apache.turbine.services.security.torque.TorqueObject | 
| compareTo, equals, equals, getPrimaryKey, hashCode, isModified, isNew, save, save, setModified, setNew, setPrimaryKey, setPrimaryKey | 
| Methods inherited from class java.lang.Object | 
| clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait | 
| Methods inherited from interface java.lang.Comparable | 
| compareTo | 
| Constructor Detail | 
public TorquePermission()
public TorquePermission(java.lang.String name)
name - The name of the new object.public TorquePermission(org.apache.torque.om.Persistent obj)
obj - An Object from the peer| Method Detail | 
public org.apache.torque.om.Persistent getPersistentObj()
getPersistentObj in class TorqueObjectpublic java.lang.String getName()
getName in interface SecurityEntitygetName in class TorqueObjectpublic void setName(java.lang.String name)
setName in interface SecurityEntitysetName in class TorqueObjectname - The name of the object.public int getId()
getId in interface SecurityEntitypublic java.lang.Integer getIdAsObj()
getIdAsObj in interface SecurityEntitypublic void setId(int id)
setId in interface SecurityEntityid - The new Id
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 Permissionsave in class TorqueObjectTurbineSecurityException - if there is a problem while
  saving data.
public void remove()
            throws TurbineSecurityException
remove in interface PermissionTurbineSecurityException - if the Permission could not be removed.
public void rename(java.lang.String name)
            throws TurbineSecurityException
rename in interface Permissionname - 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 | ||||||||||