BEA Systems, Inc.

com.beasys.commerce.foundation.property
Class LDAPEntityPropertyManagerImpl

java.lang.Object
  |
  +--com.beasys.commerce.foundation.SessionImpl
        |
        +--com.beasys.commerce.foundation.property.EntityPropertyManagerImpl
              |
              +--com.beasys.commerce.foundation.property.LDAPEntityPropertyManagerImpl

public class LDAPEntityPropertyManagerImpl
extends EntityPropertyManagerImpl
implements LDAPBridgeConstants

This class is used to expedite access to EntityProperties and the mapping of their names. This stateful session bean will "cache" a set of Entity Properties.

See Also:
LDAPEntityPropertyManager, LDAPEntityPropertyManagerHome, Serialized Form

Fields inherited from class com.beasys.commerce.foundation.property.EntityPropertyManagerImpl
enableCache, ENTITY_ID_CACHE, ENTITY_PROPERTY_CACHE, PROPERTY_DEFAULT_CACHE
 
Fields inherited from class com.beasys.commerce.foundation.SessionImpl
_ctx, _environmentNamingContext, _environmentPropertyCache, _isDirty
 
Fields inherited from interface com.beasys.commerce.bridge.ldap.LDAPBridgeConstants
LDAP_CONFIG, LDAP_ENABLED_ATTRIBUTE, LDAP_GROUP_ATTRIBUTE, LDAP_USER_ATTRIBUTE
 
Constructor Summary
LDAPEntityPropertyManagerImpl()
           
 
Method Summary
 void addPropertyValue(PropertyLocator locator, java.lang.String scopeName, java.lang.String key, java.lang.Object value)
          Implementation incomplete.
 void addPropertyValueMapped(PropertyLocator locator, java.lang.String scopeName, java.lang.String key, java.lang.String mapKey, java.lang.Object value)
          Implementation incomplete.
 void ejbActivate()
          N/A for stateless session bean.
 void ejbCreate()
          Initializes the sequencers and the DataSource used for obtaining database connections.
 void ejbPassivate()
          N/A for stateless session bean.
 void ejbPostCreate()
          ejbPostCreate method.
 void ejbRemove()
          Does nothing (no resources need to be released).
 java.lang.String[] getGroupAttributes()
          Convienience method for returning the relevant (enabled) attributes for LDAP.
protected  LdapHelper getLdapHelper()
          Convenience method for returning an LdapHelper.
 java.util.Map getProperties(PropertyLocator locator)
          Returns a map of PropertyMapKey to Objects
 java.util.Map getProperties(PropertyLocator locator, java.lang.String scopeName)
          Returns a map of PropertyMapKey to Objects for all properties set for the entity for the specified scope.
 java.lang.Object getProperty(PropertyLocator locator, java.lang.String scopeName, java.lang.String key)
          Returns the value of the property defined for the specified key and scopeName.
 PropertyMetaData getPropertyMetaData(PropertyLocator locator, java.lang.String scopeName, java.lang.String key)
          Returns the PropertyMetaData associated with the property specified the schema group name defined in the property locator, the scope name, and the key.
 java.util.Enumeration getPropertyMetaDatum(PropertyLocator locator)
           
 long getUniqueId(java.lang.String homeName, java.lang.String pkString)
          Returns the number that uniquely identifies the entity specified by the home name and the pk string.
 java.lang.String[] getUserAttributes()
          Convienience method for returning the relevant (enabled) attributes for LDAP.
 boolean isGroup(java.lang.String name)
          Convienience method for determining if a name refers to a group or a user in LDAP.
 java.lang.Object removeProperty(PropertyLocator locator, java.lang.String scopeName, java.lang.String key)
          Removes the property for the entity identified by the locator for the specified scope and key.
 java.lang.Object removePropertyValue(PropertyLocator locator, java.lang.String scopeName, java.lang.String key, java.lang.Object value)
           
 java.lang.Object removePropertyValueMapped(PropertyLocator locator, java.lang.String scopeName, java.lang.String key, java.lang.String mapKey)
           
 void setProperties(PropertyLocator locator, java.util.Map propertyValues)
           
 void setProperty(PropertyLocator locator, java.lang.String scopeName, java.lang.String key, java.lang.Object value)
          Associates the property value to the entity identified by the locator for the specified scope and key.
 void setSessionContext(javax.ejb.SessionContext ctx)
          Delegate the setting of the SessionContext to the parent class.
 
Methods inherited from class com.beasys.commerce.foundation.property.EntityPropertyManagerImpl
cacheAsNull, getCachedEntityId, getCachedPropertyDefault, getCachedValue, getDynamicProperties, getPropertyDefault, getSchemaDefaults, isCachedAsNull, isPropertyDefaultCached, putCachedPropertyDefault, putCachedValue, removeCachedEntityId, removeCachedValue, removeCachedValues, removeProperties, setCachedEntityId
 
Methods inherited from class com.beasys.commerce.foundation.SessionImpl
clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, clearRelationalBinding, doRelationalBinding, doRelationalBinding, doRelationalBindingOnElement, doRelationalBindingOnElement, doRelationalBindingOnElement, doRelationalBindingOnSingleton, doRelationalBindingOnSingleton, doRelationalBindingOnSingleton, doRelationalBindingWithMapKey, doRelationalBindingWithMapKey, doRelationalBindingWithMapKey, enumerateRelationalBinding, enumerateRelationalBinding, getEnvironmentNamingContext, getEnvironmentProperty, getEnvironmentProperty, getEnvironmentPropertyCache, getPersistenceHelperPlugin, getSessionContext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LDAPEntityPropertyManagerImpl

public LDAPEntityPropertyManagerImpl()
                              throws javax.ejb.CreateException
Method Detail

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException
Description copied from class: EntityPropertyManagerImpl
Initializes the sequencers and the DataSource used for obtaining database connections. Two sequencers are used to generate unique ids for ENTITY_ID and PROPERTY_ID values.
Overrides:
ejbCreate in class EntityPropertyManagerImpl

ejbPostCreate

public void ejbPostCreate()
                   throws javax.ejb.CreateException
Description copied from class: SessionImpl
ejbPostCreate method.
Overrides:
ejbPostCreate in class SessionImpl

ejbActivate

public void ejbActivate()
                 throws javax.ejb.EJBException
Description copied from class: EntityPropertyManagerImpl
N/A for stateless session bean.
Overrides:
ejbActivate in class EntityPropertyManagerImpl

ejbPassivate

public void ejbPassivate()
                  throws javax.ejb.EJBException
Description copied from class: EntityPropertyManagerImpl
N/A for stateless session bean.
Overrides:
ejbPassivate in class EntityPropertyManagerImpl

ejbRemove

public void ejbRemove()
               throws javax.ejb.EJBException
Description copied from class: EntityPropertyManagerImpl
Does nothing (no resources need to be released).
Overrides:
ejbRemove in class EntityPropertyManagerImpl

setSessionContext

public void setSessionContext(javax.ejb.SessionContext ctx)
                       throws javax.ejb.EJBException
Description copied from class: EntityPropertyManagerImpl
Delegate the setting of the SessionContext to the parent class.
Overrides:
setSessionContext in class EntityPropertyManagerImpl

addPropertyValue

public void addPropertyValue(PropertyLocator locator,
                             java.lang.String scopeName,
                             java.lang.String key,
                             java.lang.Object value)
                      throws java.rmi.RemoteException
Description copied from class: EntityPropertyManagerImpl
Implementation incomplete.
Overrides:
addPropertyValue in class EntityPropertyManagerImpl

addPropertyValueMapped

public void addPropertyValueMapped(PropertyLocator locator,
                                   java.lang.String scopeName,
                                   java.lang.String key,
                                   java.lang.String mapKey,
                                   java.lang.Object value)
                            throws java.rmi.RemoteException
Description copied from class: EntityPropertyManagerImpl
Implementation incomplete.
Overrides:
addPropertyValueMapped in class EntityPropertyManagerImpl

getProperties

public java.util.Map getProperties(PropertyLocator locator)
                            throws java.rmi.RemoteException
Returns a map of PropertyMapKey to Objects
Overrides:
getProperties in class EntityPropertyManagerImpl
Tags copied from class: EntityPropertyManagerImpl
Parameters:
locator - specifies the JNDIHomeName and Pk string needed to retrieve the entityId. Also specifies the schemaGroupName that is used to retrieved the type of the property.

getProperties

public java.util.Map getProperties(PropertyLocator locator,
                                   java.lang.String scopeName)
                            throws java.rmi.RemoteException
Description copied from class: EntityPropertyManagerImpl
Returns a map of PropertyMapKey to Objects for all properties set for the entity for the specified scope.
Overrides:
getProperties in class EntityPropertyManagerImpl
Tags copied from class: EntityPropertyManagerImpl
Parameters:
locator - specifies the JNDIHomeName and Pk string needed to retrieve the entityId. Also specifies the schemaGroupName that is used to retrieved the type of the property.
scopeName - specifies the scopeName in which the properties are defined.

getProperty

public java.lang.Object getProperty(PropertyLocator locator,
                                    java.lang.String scopeName,
                                    java.lang.String key)
                             throws java.rmi.RemoteException
Description copied from class: EntityPropertyManagerImpl
Returns the value of the property defined for the specified key and scopeName. If the property is not defined then null is returned.
Overrides:
getProperty in class EntityPropertyManagerImpl

getPropertyMetaData

public PropertyMetaData getPropertyMetaData(PropertyLocator locator,
                                            java.lang.String scopeName,
                                            java.lang.String key)
                                     throws java.rmi.RemoteException
Description copied from class: EntityPropertyManagerImpl
Returns the PropertyMetaData associated with the property specified the schema group name defined in the property locator, the scope name, and the key.
Overrides:
getPropertyMetaData in class EntityPropertyManagerImpl

getPropertyMetaDatum

public java.util.Enumeration getPropertyMetaDatum(PropertyLocator locator)
                                           throws java.rmi.RemoteException
Overrides:
getPropertyMetaDatum in class EntityPropertyManagerImpl

getUniqueId

public long getUniqueId(java.lang.String homeName,
                        java.lang.String pkString)
                 throws java.rmi.RemoteException
Description copied from class: EntityPropertyManagerImpl
Returns the number that uniquely identifies the entity specified by the home name and the pk string. If the entity does not have a unique id assigned, a new one will be created.
Overrides:
getUniqueId in class EntityPropertyManagerImpl

removeProperty

public java.lang.Object removeProperty(PropertyLocator locator,
                                       java.lang.String scopeName,
                                       java.lang.String key)
                                throws java.rmi.RemoteException
Description copied from class: EntityPropertyManagerImpl
Removes the property for the entity identified by the locator for the specified scope and key.
Overrides:
removeProperty in class EntityPropertyManagerImpl

removePropertyValue

public java.lang.Object removePropertyValue(PropertyLocator locator,
                                            java.lang.String scopeName,
                                            java.lang.String key,
                                            java.lang.Object value)
                                     throws java.rmi.RemoteException
Overrides:
removePropertyValue in class EntityPropertyManagerImpl

removePropertyValueMapped

public java.lang.Object removePropertyValueMapped(PropertyLocator locator,
                                                  java.lang.String scopeName,
                                                  java.lang.String key,
                                                  java.lang.String mapKey)
                                           throws java.rmi.RemoteException
Overrides:
removePropertyValueMapped in class EntityPropertyManagerImpl

setProperty

public void setProperty(PropertyLocator locator,
                        java.lang.String scopeName,
                        java.lang.String key,
                        java.lang.Object value)
                 throws java.rmi.RemoteException
Description copied from class: EntityPropertyManagerImpl
Associates the property value to the entity identified by the locator for the specified scope and key.
Overrides:
setProperty in class EntityPropertyManagerImpl

setProperties

public void setProperties(PropertyLocator locator,
                          java.util.Map propertyValues)
                   throws java.rmi.RemoteException
Overrides:
setProperties in class EntityPropertyManagerImpl

getGroupAttributes

public java.lang.String[] getGroupAttributes()
                                      throws java.rmi.RemoteException
Convienience method for returning the relevant (enabled) attributes for LDAP.

getUserAttributes

public java.lang.String[] getUserAttributes()
                                     throws java.rmi.RemoteException
Convienience method for returning the relevant (enabled) attributes for LDAP.

isGroup

public boolean isGroup(java.lang.String name)
                throws java.rmi.RemoteException
Convienience method for determining if a name refers to a group or a user in LDAP.

getLdapHelper

protected LdapHelper getLdapHelper()
Convenience method for returning an LdapHelper.

BEA Systems, Inc.

Copyright © 2000 BEA Systems, Inc. All Rights Reserved