com.opensymphony.user.provider.ejb.entity
Class GroupEJB

java.lang.Object
  extended bycom.opensymphony.ejb.AbstractEntityAdapter
      extended bycom.opensymphony.user.provider.ejb.entity.GroupEJB
All Implemented Interfaces:
javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable

public abstract class GroupEJB
extends com.opensymphony.ejb.AbstractEntityAdapter
implements javax.ejb.EntityBean

Entity bean representing Group.

Version:
$Revision: 1.6 $
Author:
Joe Walnes, Mike Cannon-Brookes, Patrick Lightbody
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.opensymphony.ejb.AbstractEntityAdapter
context, sequenceName
 
Constructor Summary
GroupEJB()
           
 
Method Summary
 java.lang.Long ejbCreate(java.lang.String name)
          Create new Group with given name.
 void ejbPostCreate(java.lang.String name)
           
abstract  java.lang.Long getId()
          Unique primary key of Group.
abstract  java.lang.String getName()
          Get name of Group.
 com.opensymphony.module.propertyset.PropertySet getPropertySet()
          Group's PropertySet.
 java.util.List getUserNames()
           
abstract  java.util.Set getUsers()
          Collection of users with this group.
 void setEntityContext(javax.ejb.EntityContext context)
          Required to implement EntityBean.
abstract  void setId(java.lang.Long id)
           
abstract  void setName(java.lang.String name)
           
abstract  void setUsers(java.util.Set users)
           
 void unsetEntityContext()
          Required to implement EntityBean.
 
Methods inherited from class com.opensymphony.ejb.AbstractEntityAdapter
generateGUID, locatePropertySet, nextId, nextInt, nextLong, setContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.ejb.EntityBean
ejbActivate, ejbLoad, ejbPassivate, ejbRemove, ejbStore
 

Constructor Detail

GroupEJB

public GroupEJB()
Method Detail

setEntityContext

public void setEntityContext(javax.ejb.EntityContext context)
Required to implement EntityBean. Sets the EntityContext. Also, attempts to detemine the sequenceName.

Specified by:
setEntityContext in interface javax.ejb.EntityBean

setId

public abstract void setId(java.lang.Long id)

getId

public abstract java.lang.Long getId()
Unique primary key of Group.


setName

public abstract void setName(java.lang.String name)

getName

public abstract java.lang.String getName()
Get name of Group.


getPropertySet

public com.opensymphony.module.propertyset.PropertySet getPropertySet()
Group's PropertySet.


setUsers

public abstract void setUsers(java.util.Set users)

getUsers

public abstract java.util.Set getUsers()
Collection of users with this group.


getUserNames

public java.util.List getUserNames()

ejbCreate

public java.lang.Long ejbCreate(java.lang.String name)
                         throws javax.ejb.CreateException
Create new Group with given name.

Throws:
javax.ejb.CreateException

ejbPostCreate

public void ejbPostCreate(java.lang.String name)

unsetEntityContext

public void unsetEntityContext()
Required to implement EntityBean. Sets the EntityContext to null.

Specified by:
unsetEntityContext in interface javax.ejb.EntityBean

See www.opensymphony.com for more information.