© 2001 BEA Systems, Inc.

com.beasys.commerce.axiom.contact
Class GroupImpl

com.beasys.commerce.foundation.ConfigurableEntityImpl
  |
  +--com.beasys.commerce.axiom.contact.GroupImpl
All Implemented Interfaces:
PropertyCache

public class GroupImpl
extends ConfigurableEntityImpl

The implementation of the Group entity bean interface.

Group is a component that represents a group in a system. Groups can have users as members, and can serve as a parent to child groups in a group hierarchy. Groups are extentions of ConfigurableEntity, and therefore have the concept of getting and setting properties that are relevant to the group.

 Primary Key = com.beasys.commerce.axiom.contact.GroupPk
 

See Also:
Group, GroupHome, GroupValue

Field Summary
 java.lang.String identifier
          The primary key field for this group.
 
Fields inherited from class com.beasys.commerce.foundation.ConfigurableEntityImpl
DEFAULT_ENTITY_PROPERTY_MANAGER_HOME, DEFAULT_SCHEMA_GROUP_NAME, ENTITY_PROPERTY_MANAGER_HOME, propertyMap, SCHEMA_GROUP_NAME
 
Constructor Summary
GroupImpl()
          Default constructor.
 
Method Summary
protected  void bscInitializeAttributes(GroupPk groupPk)
          Initializer for this component.
 void ejbActivate()
           
 GroupPk ejbCreate(GroupPk groupPk)
          Creates the bean and returns the bean's primary key.
 GroupPk ejbFindByPrimaryKey(GroupPk pk)
          Finds the group primary key for this group if the key corresponds to a valid group.
 void ejbLoad()
           
 void ejbPassivate()
           
 void ejbPostCreate(GroupPk groupPk)
          Empty ejbPostCreate() method.
 void ejbRemove()
           
 void ejbStore()
           
 java.lang.String getIdentifier()
          Returns the identifier (primary key attribute).
 java.lang.String[] getUserNames()
          Returns a list of usernames for the users that belong to this group.
 void setEntityContext(com.beasys.commerce.axiom.contact.EntityContext ctx)
           
 void setIdentifier(java.lang.String value)
           
 void unsetEntityContext()
           
 
Methods inherited from class com.beasys.commerce.foundation.ConfigurableEntityImpl
addBusinessPolicy, addCachedPropertyMapped, addCachedPropertyValue, addPropertyValue, addPropertyValueMapped, buildPolicyKey, createMapKey, ejbCreate, ejbPostCreate, getBusinessPolicy, getCachedProperty, getImplicitProperty, getPersistableHandle, getProperty, getProperty, getProperty, getPropertyAsString, getPropertyAsString, getPropertyDefault, getPropertyMap, getPropertyNoDefault, getSuccessor, getUniqueId,
 

Field Detail

identifier

public java.lang.String identifier
The primary key field for this group.

Constructor Detail

GroupImpl

public GroupImpl()
          throws javax.ejb.CreateException
Default constructor.
Method Detail

ejbCreate

public GroupPk ejbCreate(GroupPk groupPk)
                  throws javax.ejb.CreateException
Creates the bean and returns the bean's primary key.
Parameters:
groupPk - the bean's primary key
Returns:
the bean's primary key

bscInitializeAttributes

protected void bscInitializeAttributes(GroupPk groupPk)
                                throws javax.ejb.CreateException
Initializer for this component.
Parameters:
groupPk - the bean's primary key

ejbPostCreate

public void ejbPostCreate(GroupPk groupPk)
                   throws javax.ejb.CreateException
Empty ejbPostCreate() method.

ejbLoad

public void ejbLoad()
             throws javax.ejb.EJBException
Overrides:
ejbLoad in class ConfigurableEntityImpl

ejbStore

public void ejbStore()
              throws javax.ejb.EJBException
Overrides:
ejbStore in class ConfigurableEntityImpl

ejbRemove

public void ejbRemove()
               throws javax.ejb.RemoveException
Overrides:
ejbRemove in class ConfigurableEntityImpl

ejbActivate

public void ejbActivate()
                 throws javax.ejb.EJBException
Overrides:
ejbActivate in class ConfigurableEntityImpl

ejbPassivate

public void ejbPassivate()
                  throws javax.ejb.EJBException
Overrides:
ejbPassivate in class ConfigurableEntityImpl

setEntityContext

public void setEntityContext(com.beasys.commerce.axiom.contact.EntityContext ctx)
                      throws javax.ejb.EJBException

unsetEntityContext

public void unsetEntityContext()
                        throws javax.ejb.EJBException

ejbFindByPrimaryKey

public GroupPk ejbFindByPrimaryKey(GroupPk pk)
                            throws <>FinderException
Finds the group primary key for this group if the key corresponds to a valid group.
Throws:
com.beasys.commerce.foundation.FinderException - if the group is not able to be found

getIdentifier

public java.lang.String getIdentifier()
Returns the identifier (primary key attribute).
Returns:
the identifier (primary key attribute)

setIdentifier

public void setIdentifier(java.lang.String value)

getUserNames

public java.lang.String[] getUserNames()
Returns a list of usernames for the users that belong to this group. This is determned through a call to the realm class, as set in the weblogic.properties file.
Returns:
a list of usernames for the users that belong to this group

© 2001 BEA Systems, Inc.

Copyright © 2001 BEA Systems, Inc. All Rights Reserved