|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.beasys.commerce.foundation.SessionImpl | +--com.beasys.commerce.foundation.property.EntityPropertyManagerImpl | +--com.beasys.commerce.foundation.property.LDAPEntityPropertyManagerImpl
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.
LDAPEntityPropertyManager
,
LDAPEntityPropertyManagerHome
, Serialized FormFields 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 java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public LDAPEntityPropertyManagerImpl() throws javax.ejb.CreateException
Method Detail |
public void ejbCreate() throws javax.ejb.CreateException
public void ejbPostCreate() throws javax.ejb.CreateException
public void ejbActivate() throws javax.ejb.EJBException
public void ejbPassivate() throws javax.ejb.EJBException
public void ejbRemove() throws javax.ejb.EJBException
public void setSessionContext(javax.ejb.SessionContext ctx) throws javax.ejb.EJBException
public void addPropertyValue(PropertyLocator locator, java.lang.String scopeName, java.lang.String key, java.lang.Object value) throws java.rmi.RemoteException
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
public java.util.Map getProperties(PropertyLocator locator) throws java.rmi.RemoteException
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.public java.util.Map getProperties(PropertyLocator locator, java.lang.String scopeName) throws java.rmi.RemoteException
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.public java.lang.Object getProperty(PropertyLocator locator, java.lang.String scopeName, java.lang.String key) throws java.rmi.RemoteException
public PropertyMetaData getPropertyMetaData(PropertyLocator locator, java.lang.String scopeName, java.lang.String key) throws java.rmi.RemoteException
public java.util.Enumeration getPropertyMetaDatum(PropertyLocator locator) throws java.rmi.RemoteException
public long getUniqueId(java.lang.String homeName, java.lang.String pkString) throws java.rmi.RemoteException
public java.lang.Object removeProperty(PropertyLocator locator, java.lang.String scopeName, java.lang.String key) throws java.rmi.RemoteException
public java.lang.Object removePropertyValue(PropertyLocator locator, java.lang.String scopeName, java.lang.String key, java.lang.Object value) throws java.rmi.RemoteException
public java.lang.Object removePropertyValueMapped(PropertyLocator locator, java.lang.String scopeName, java.lang.String key, java.lang.String mapKey) throws java.rmi.RemoteException
public void setProperty(PropertyLocator locator, java.lang.String scopeName, java.lang.String key, java.lang.Object value) throws java.rmi.RemoteException
public void setProperties(PropertyLocator locator, java.util.Map propertyValues) throws java.rmi.RemoteException
public java.lang.String[] getGroupAttributes() throws java.rmi.RemoteException
public java.lang.String[] getUserAttributes() throws java.rmi.RemoteException
public boolean isGroup(java.lang.String name) throws java.rmi.RemoteException
protected LdapHelper getLdapHelper()
|
BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |