BEA Systems, Inc.

com.beasys.commerce.axiom.contact
Class UserImpl

java.lang.Object
  |
  +--com.beasys.commerce.foundation.EntityImpl
        |
        +--com.beasys.commerce.foundation.ConfigurableEntityImpl
              |
              +--com.beasys.commerce.axiom.contact.UserImpl
Direct Known Subclasses:
ContactImpl, UnifiedUserBean

public class UserImpl
extends ConfigurableEntityImpl

The implementation of the User entity bean interface.

User is a component that represents a user of a system. Users can be members of groups, represented by the Group component. Users are extentions of ConfigurableEntity, and therefore have the concept of getting and setting properties that are relevant to the user.

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

See Also:
User, UserHome, UserValue, Serialized Form

Field Summary
 java.lang.String identifier
          The primary key for this user.
 
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
 
Fields inherited from class com.beasys.commerce.foundation.EntityImpl
__classIdentifier, __containingEntity, __mapKey, __sequenceNumber, _ctx, _environmentNamingContext, _environmentPropertyCache, _isDirty, _smartBMP
 
Constructor Summary
UserImpl()
          Default constructor.
 
Method Summary
protected  void authorizeUserModification()
           
protected  void bscInitializeAttributes(UserPk userPk)
          Initializer for the User.
 void ejbActivate()
          ejbActivate method.
 UserPk ejbCreate(UserPk userPk)
           
 UserPk ejbFindByPrimaryKey(UserPk pk)
           
 void ejbLoad()
          ejbLoad method.
 void ejbPassivate()
          ejbPassivate method.
 void ejbPostCreate(UserPk userPk)
           
 void ejbRemove()
          ejbRemove method.
 void ejbStore()
          ejbStore method.
 java.lang.String getIdentifier()
          Returns the primary key field for this user.
 java.lang.Object getProperty(java.lang.String key, java.lang.Object defaultValue)
          Override the default impl to check shared profile first
 java.lang.Object getProperty(java.lang.String scopeName, java.lang.String key, ConfigurableEntity successor, java.lang.Object defaultValue)
          Override the default impl to check shared profile first
 java.lang.String getPropertyAsString(java.lang.String key, java.lang.String defaultValue)
          Override the default impl to check shared profile first
 java.lang.String getPropertyAsString(java.lang.String scopeName, java.lang.String key, ConfigurableEntity successor, java.lang.String defaultValue)
          Override the default impl to check shared profile first
protected  com.beasys.commerce.foundation.property.external.SharedProfileProvider getSharedProfileProvider()
           
protected  com.beasys.commerce.foundation.property.external.SharedProperty getSharedProperty(java.lang.String propertySet, java.lang.String propertyName)
          Try to retrieve a property from a shared profile provider.
 UserValue getUserByValue()
          Get all of User's attributes.
protected  boolean isSharedProperty(java.lang.String propertySet, java.lang.String propertyName)
           
 java.lang.Object removeProperty(java.lang.String key)
          Override the default impl to check shared profile first
 java.lang.Object removeProperty(java.lang.String scopeName, java.lang.String key)
          Override the default impl to check shared profile first
 java.lang.Object removePropertyValue(java.lang.String scopeName, java.lang.String key, java.lang.Object propertyValue)
          Override the default impl to check shared profile first
protected  java.lang.Object removeSharedProperty(java.lang.String propertySet, java.lang.String propertyName)
           
protected  java.lang.Object removeSharedPropertyValue(java.lang.String propertySet, java.lang.String propertyName, java.lang.Object value)
           
 void setEntityContext(javax.ejb.EntityContext ctx)
          setEntityContext method.
 void setIdentifier(java.lang.String value)
          Sets the primary key field for this user.
 void setProperty(java.lang.String key, java.lang.Object value)
          Override the default impl to check shared profile first
 void setProperty(java.lang.String scopeName, java.lang.String key, java.lang.Object property)
          Override the default impl to check shared profile first
protected  void setSharedProperty(java.lang.String propertySet, java.lang.String propertyName, java.lang.Object value)
           
 void setUserByValue(UserValue value)
          Set all of User's attributes to the passed in value.
 void unsetEntityContext()
          unsetEntityContext method.
 
Methods inherited from class com.beasys.commerce.foundation.ConfigurableEntityImpl
addBusinessPolicy, addCachedPropertyMapped, addCachedPropertyValue, addPropertyValue, addPropertyValueMapped, buildPolicyKey, createMapKey, ejbCreate, ejbPostCreate, getBusinessPolicy, getCachedProperty, getImplicitProperty, getPersistableHandle, getProperty, getPropertyDefault, getPropertyMap, getPropertyNoDefault, getSuccessor, getUniqueId, removeBusinessPolicy, removeCachedProperties, removeCachedProperties, removeCachedProperty, removeCachedPropertyMapped, removeCachedPropertyValue, removePropertyValueMapped, removeSuccessor, setCachedProperty, setSuccessor, upcaseFirst, useEntityPropertyManager
 
Methods inherited from class com.beasys.commerce.foundation.EntityImpl
bscInitializeAttributes, clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, doRelationalBinding, doRelationalBinding, doRelationalBindingOnElement, doRelationalBindingOnElement, doRelationalBindingOnElement, doRelationalBindingOnSingleton, doRelationalBindingOnSingleton, doRelationalBindingOnSingleton, doRelationalBindingWithMapKey, doRelationalBindingWithMapKey, doRelationalBindingWithMapKey, ejbFindAll, ejbFindByPrimaryKey, enumerateRelationalBinding, enumerateRelationalBinding, get__classIdentifier, get__containingBelonging, get__containingEntity, get__containingEntityReference, get__mapKey, get__sequenceNumber, getEntityContext, getEnvironmentNamingContext, getEnvironmentProperty, getEnvironmentProperty, getEnvironmentPropertyCache, getPersistenceHelperPlugin, getSmartBMP, initSmartBMP, isModified, set__classIdentifier, set__containingBelonging, set__containingEntity, set__containingEntityReference, set__mapKey
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

identifier

public java.lang.String identifier
The primary key for this user.

Constructor Detail

UserImpl

public UserImpl()
Default constructor.
Method Detail

getUserByValue

public UserValue getUserByValue()
Get all of User's attributes.
Returns:
UserValue the User value object

setUserByValue

public void setUserByValue(UserValue value)
Set all of User's attributes to the passed in value. Note: Primary key attributes are not set.
Parameters:
UserValue - the User value object

ejbCreate

public UserPk ejbCreate(UserPk userPk)
                 throws javax.ejb.CreateException

bscInitializeAttributes

protected void bscInitializeAttributes(UserPk userPk)
                                throws javax.ejb.CreateException
Initializer for the User.

ejbPostCreate

public void ejbPostCreate(UserPk userPk)
                   throws javax.ejb.CreateException

ejbLoad

public void ejbLoad()
             throws javax.ejb.EJBException
Description copied from class: EntityImpl
ejbLoad method.
Overrides:
ejbLoad in class ConfigurableEntityImpl

ejbStore

public void ejbStore()
              throws javax.ejb.EJBException
Description copied from class: EntityImpl
ejbStore method.
Overrides:
ejbStore in class ConfigurableEntityImpl

ejbRemove

public void ejbRemove()
               throws javax.ejb.RemoveException
Description copied from class: EntityImpl
ejbRemove method.
Overrides:
ejbRemove in class ConfigurableEntityImpl

ejbActivate

public void ejbActivate()
                 throws javax.ejb.EJBException
Description copied from class: EntityImpl
ejbActivate method.
Overrides:
ejbActivate in class ConfigurableEntityImpl

ejbPassivate

public void ejbPassivate()
                  throws javax.ejb.EJBException
Description copied from class: EntityImpl
ejbPassivate method.
Overrides:
ejbPassivate in class ConfigurableEntityImpl

setEntityContext

public void setEntityContext(javax.ejb.EntityContext ctx)
                      throws javax.ejb.EJBException
Description copied from class: EntityImpl
setEntityContext method.
Overrides:
setEntityContext in class EntityImpl

unsetEntityContext

public void unsetEntityContext()
                        throws javax.ejb.EJBException
Description copied from class: EntityImpl
unsetEntityContext method.
Overrides:
unsetEntityContext in class EntityImpl

ejbFindByPrimaryKey

public UserPk ejbFindByPrimaryKey(UserPk pk)
                           throws javax.ejb.FinderException

getSharedProfileProvider

protected com.beasys.commerce.foundation.property.external.SharedProfileProvider getSharedProfileProvider()

getSharedProperty

protected com.beasys.commerce.foundation.property.external.SharedProperty getSharedProperty(java.lang.String propertySet,
                                                                                            java.lang.String propertyName)
Try to retrieve a property from a shared profile provider. Uses the SharedProfileProvider implementation class specified by the property sharedProfile.provider.

isSharedProperty

protected boolean isSharedProperty(java.lang.String propertySet,
                                   java.lang.String propertyName)

removeSharedProperty

protected java.lang.Object removeSharedProperty(java.lang.String propertySet,
                                                java.lang.String propertyName)

removeSharedPropertyValue

protected java.lang.Object removeSharedPropertyValue(java.lang.String propertySet,
                                                     java.lang.String propertyName,
                                                     java.lang.Object value)

setSharedProperty

protected void setSharedProperty(java.lang.String propertySet,
                                 java.lang.String propertyName,
                                 java.lang.Object value)

getProperty

public java.lang.Object getProperty(java.lang.String key,
                                    java.lang.Object defaultValue)
                             throws SystemException
Override the default impl to check shared profile first
Overrides:
getProperty in class ConfigurableEntityImpl
Tags copied from class: ConfigurableEntityImpl
Parameters:
key - java.lang.String
defaultValue - java.lang.Object
See Also:
getProperty

getProperty

public java.lang.Object getProperty(java.lang.String scopeName,
                                    java.lang.String key,
                                    ConfigurableEntity successor,
                                    java.lang.Object defaultValue)
                             throws SystemException
Override the default impl to check shared profile first
Overrides:
getProperty in class ConfigurableEntityImpl
Tags copied from class: ConfigurableEntityImpl
Parameters:
key - java.lang.String

getPropertyAsString

public java.lang.String getPropertyAsString(java.lang.String key,
                                            java.lang.String defaultValue)
                                     throws SystemException
Override the default impl to check shared profile first
Overrides:
getPropertyAsString in class ConfigurableEntityImpl
Tags copied from class: ConfigurableEntityImpl
Parameters:
key - java.lang.String

getPropertyAsString

public java.lang.String getPropertyAsString(java.lang.String scopeName,
                                            java.lang.String key,
                                            ConfigurableEntity successor,
                                            java.lang.String defaultValue)
                                     throws SystemException
Override the default impl to check shared profile first
Overrides:
getPropertyAsString in class ConfigurableEntityImpl
Tags copied from class: ConfigurableEntityImpl
Parameters:
key - java.lang.String

removeProperty

public java.lang.Object removeProperty(java.lang.String key)
                                throws SystemException
Override the default impl to check shared profile first
Overrides:
removeProperty in class ConfigurableEntityImpl

removeProperty

public java.lang.Object removeProperty(java.lang.String scopeName,
                                       java.lang.String key)
                                throws SystemException
Override the default impl to check shared profile first
Overrides:
removeProperty in class ConfigurableEntityImpl

removePropertyValue

public java.lang.Object removePropertyValue(java.lang.String scopeName,
                                            java.lang.String key,
                                            java.lang.Object propertyValue)
                                     throws SystemException
Override the default impl to check shared profile first
Overrides:
removePropertyValue in class ConfigurableEntityImpl

setProperty

public void setProperty(java.lang.String key,
                        java.lang.Object value)
                 throws SystemException
Override the default impl to check shared profile first
Overrides:
setProperty in class ConfigurableEntityImpl
Tags copied from class: ConfigurableEntityImpl
Parameters:
key - The string to which the property will be bound
property - The value that will be bound to that name

setProperty

public void setProperty(java.lang.String scopeName,
                        java.lang.String key,
                        java.lang.Object property)
                 throws SystemException
Override the default impl to check shared profile first
Overrides:
setProperty in class ConfigurableEntityImpl
Tags copied from class: ConfigurableEntityImpl
Parameters:
scopeName - The scopeName and key uniquely identify the propertyName
key -  
property - The value to associate with the property.

getIdentifier

public java.lang.String getIdentifier()
Returns the primary key field for this user.
Returns:
the primary key field for this user

setIdentifier

public void setIdentifier(java.lang.String value)
Sets the primary key field for this user.
Parameters:
value - the primary key for this user

authorizeUserModification

protected void authorizeUserModification()
                                  throws SystemException

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved