|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 peerMethod Detail |
public org.apache.torque.om.Persistent getPersistentObj()
getPersistentObj
in class TorqueObject
public java.lang.String getName()
getName
in interface SecurityEntity
getName
in class TorqueObject
public void setName(java.lang.String name)
setName
in interface SecurityEntity
setName
in class TorqueObject
name
- The name of the object.public int getId()
getId
in interface SecurityEntity
public java.lang.Integer getIdAsObj()
getIdAsObj
in interface SecurityEntity
public void setId(int id)
setId
in interface SecurityEntity
id
- The new Idpublic 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 TorqueObject
TurbineSecurityException
- if there is a problem while
saving data.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: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |