org.apache.turbine.om.security
Class TurbineGroup

java.lang.Object
  extended by org.apache.torque.om.BaseObject
      extended by org.apache.turbine.om.security.SecurityObject
          extended by org.apache.turbine.om.security.TurbineGroup
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable, org.apache.torque.om.Persistent, Group, SecurityEntity

Deprecated. Use TorqueGroup instead.

public class TurbineGroup
extends SecurityObject
implements Group

This class represents a Group of Users in the system that are associated with specific entity or resource. The users belonging to the Group may have various Roles. The Permissions to perform actions upon the resource depend on the Roles in the Group that they are assigned.

Certain Roles that the Users may have in the system may are not related to any specific resource nor entity. They are assigned within a special group named 'global' that can be referenced in the code as Group.GLOBAL_GROUP_NAME.

Version:
$Id: TurbineGroup.java 534527 2007-05-02 16:10:59Z tv $
Author:
Rafal Krzewski
See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.torque.om.BaseObject
NEW_ID
 
Fields inherited from interface org.apache.turbine.om.security.Group
GLOBAL_GROUP_NAME
 
Constructor Summary
TurbineGroup()
          Deprecated. Constructs a new Group.
TurbineGroup(java.lang.String name)
          Deprecated. Constructs a new Group with the specified name.
 
Method Summary
 void grant(User user, Role role)
          Deprecated. Grants a Role in this Group to an User.
 void grant(User user, RoleSet roleSet)
          Deprecated. Grants Roles in this Group to an User.
 void remove()
          Deprecated. Removes a group from the system.
 void rename(java.lang.String name)
          Deprecated. Renames the role.
 void revoke(User user, Role role)
          Deprecated. Revokes a Role in this Group from an User.
 void revoke(User user, RoleSet roleSet)
          Deprecated. Revokes Roles in this group from an User.
 void save()
          Deprecated. Makes changes made to the Group attributes permanent.
 void save(java.sql.Connection conn)
          Deprecated. not implemented
 void save(java.lang.String dbname)
          Deprecated. 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 org.apache.torque.om.BaseObject
equals, equals, getByName, getByPeerName, getByPosition, getLog, getPrimaryKey, hashCode, isModified, isNew, resetModified, setModified, setNew, 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
getId, getIdAsObj, getName, setId, setName
 

Constructor Detail

TurbineGroup

public TurbineGroup()
Deprecated. 
Constructs a new Group.


TurbineGroup

public TurbineGroup(java.lang.String name)
Deprecated. 
Constructs a new Group with the specified name.

Parameters:
name - The name of the new object.
Method Detail

save

public void save()
          throws TurbineSecurityException
Deprecated. 
Makes changes made to the Group attributes permanent.

Specified by:
save in interface org.apache.torque.om.Persistent
Specified by:
save in interface Group
Specified by:
save in class org.apache.torque.om.BaseObject
Throws:
TurbineSecurityException - if there is a problem while saving data.

save

public void save(java.sql.Connection conn)
          throws java.lang.Exception
Deprecated. 
not implemented

Specified by:
save in interface org.apache.torque.om.Persistent
Specified by:
save in class org.apache.torque.om.BaseObject
Parameters:
conn -
Throws:
java.lang.Exception

save

public void save(java.lang.String dbname)
          throws java.lang.Exception
Deprecated. 
not implemented

Specified by:
save in interface org.apache.torque.om.Persistent
Specified by:
save in class org.apache.torque.om.BaseObject
Parameters:
dbname -
Throws:
java.lang.Exception

remove

public void remove()
            throws TurbineSecurityException
Deprecated. 
Removes a group from the system.

Specified by:
remove in interface Group
Throws:
TurbineSecurityException - if the Group could not be removed.

rename

public void rename(java.lang.String name)
            throws TurbineSecurityException
Deprecated. 
Renames the role.

Specified by:
rename in interface Group
Parameters:
name - The new Group name.
Throws:
TurbineSecurityException - if the Group could not be renamed.

grant

public void grant(User user,
                  Role role)
           throws TurbineSecurityException
Deprecated. 
Grants a Role in this Group to an User.

Specified by:
grant in interface Group
Parameters:
user - An User.
role - A Role.
Throws:
TurbineSecurityException - if there is a problem while assigning the Role.

grant

public void grant(User user,
                  RoleSet roleSet)
           throws TurbineSecurityException
Deprecated. 
Grants Roles in this Group to an User.

Specified by:
grant in interface Group
Parameters:
user - An User.
roleSet - A RoleSet.
Throws:
TurbineSecurityException - if there is a problem while assigning the Roles.

revoke

public void revoke(User user,
                   Role role)
            throws TurbineSecurityException
Deprecated. 
Revokes a Role in this Group from an User.

Specified by:
revoke in interface Group
Parameters:
user - An User.
role - A Role.
Throws:
TurbineSecurityException - if there is a problem while unassigning the Role.

revoke

public void revoke(User user,
                   RoleSet roleSet)
            throws TurbineSecurityException
Deprecated. 
Revokes Roles in this group from an User.

Specified by:
revoke in interface Group
Parameters:
user - An User.
roleSet - a RoleSet.
Throws:
TurbineSecurityException - if there is a problem while unassigning the Roles.


Copyright © 2000-2007 Apache Software Foundation. All Rights Reserved.