org.jwarp.service.security
Class SQLSecurityGroup

java.lang.Object
  |
  +--org.jwarp.service.groups.Item
        |
        +--org.jwarp.service.groups.Group
              |
              +--org.jwarp.service.security.SecurityGroup
                    |
                    +--org.jwarp.service.security.SQLSecurityGroup
All Implemented Interfaces:
IGroup, IItem, ISecurityGroup, java.io.Serializable

public class SQLSecurityGroup
extends SecurityGroup

See Also:
Serialized Form

Field Summary
(package private)  ConnectionPool pool
           
protected static java.lang.String SQLaddMember
           
protected static java.lang.String SQLcreateGroup
           
protected static java.lang.String SQLgetMember
           
protected static java.lang.String SQLgetMembers
           
protected static java.lang.String SQLreadGroup
           
protected static java.lang.String SQLreadGroupByName
           
protected static java.lang.String SQLremoveMember
           
protected static java.lang.String SQLselectIdentity
           
protected static java.lang.String SQLselectMembers
           
 
Fields inherited from class org.jwarp.service.security.SecurityGroup
description, name
 
Fields inherited from class org.jwarp.service.groups.Group
members
 
Fields inherited from class org.jwarp.service.groups.Item
id, nextID, object
 
Constructor Summary
SQLSecurityGroup(int id, ConnectionPool pool)
           
SQLSecurityGroup(java.lang.String name, ConnectionPool pool)
           
SQLSecurityGroup(java.lang.String name, java.lang.String description, java.lang.Object additional, ConnectionPool pool)
           
 
Method Summary
 void addMember(int typeID, int id)
           
 java.util.Iterator getMembers()
          Returns all defined users.
 boolean isMember(int typeID, int id)
           
 void removeMember(int typeID, int id)
           
 void setPool(ConnectionPool pool)
           
 
Methods inherited from class org.jwarp.service.security.SecurityGroup
getDescription, getName
 
Methods inherited from class org.jwarp.service.groups.Group
addMember, isMember, removeMember
 
Methods inherited from class org.jwarp.service.groups.Item
getID, getNewID, getObject
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jwarp.service.groups.IGroup
isMember
 
Methods inherited from interface org.jwarp.service.groups.IItem
getID
 

Field Detail

SQLcreateGroup

protected static java.lang.String SQLcreateGroup

SQLselectIdentity

protected static java.lang.String SQLselectIdentity

SQLreadGroup

protected static java.lang.String SQLreadGroup

SQLreadGroupByName

protected static java.lang.String SQLreadGroupByName

SQLgetMembers

protected static java.lang.String SQLgetMembers

SQLgetMember

protected static java.lang.String SQLgetMember

SQLselectMembers

protected static java.lang.String SQLselectMembers

SQLaddMember

protected static java.lang.String SQLaddMember

SQLremoveMember

protected static java.lang.String SQLremoveMember

pool

ConnectionPool pool
Constructor Detail

SQLSecurityGroup

public SQLSecurityGroup(int id,
                        ConnectionPool pool)
                 throws java.sql.SQLException,
                        MaxConnectException

SQLSecurityGroup

public SQLSecurityGroup(java.lang.String name,
                        ConnectionPool pool)
                 throws java.sql.SQLException,
                        MaxConnectException

SQLSecurityGroup

public SQLSecurityGroup(java.lang.String name,
                        java.lang.String description,
                        java.lang.Object additional,
                        ConnectionPool pool)
                 throws java.sql.SQLException,
                        MaxConnectException
Method Detail

setPool

public void setPool(ConnectionPool pool)

getMembers

public java.util.Iterator getMembers()
Description copied from interface: IGroup
Returns all defined users.
Overrides:
getMembers in class Group
Following copied from interface: org.jwarp.service.groups.IGroup
Parameters:
admin - The administrator who triggers the call
Throws:
java.lang.SecurityException - If the Administrator was denied access.

isMember

public boolean isMember(int typeID,
                        int id)

addMember

public void addMember(int typeID,
                      int id)

removeMember

public void removeMember(int typeID,
                         int id)

©   O R C A   S y s t e m s