|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.springframework.ejb.support.AbstractStatelessSessionBean
com.bea.alcs.ejb.impl.EpCustomerPropertiesManagerImpl
public class EpCustomerPropertiesManagerImpl
An EJB for the Weblogic Portal Unified User Profile (UUP).
| Field Summary | |
|---|---|
static java.lang.String |
BEAN_FACTORY_PATH_ENVIRONMENT_KEY
|
static java.lang.String |
CONTEXT_USERPROFILE_HELPER
Name of the UserProfileHelper bean to load. |
static java.lang.String |
PRIMARY_CONTEXT_ID
Name of the bean factory to load from the beanRefContext.xml file. |
| Fields inherited from class org.springframework.ejb.support.AbstractStatelessSessionBean |
|---|
logger |
| Constructor Summary | |
|---|---|
EpCustomerPropertiesManagerImpl()
|
|
| Method Summary | |
|---|---|
long |
createUniqueId(java.lang.String jndiHomeName,
java.lang.String pkString)
Create a record for a new entity, as identified by the given jndiHomeName and pkString. |
void |
ejbRemove()
|
protected org.springframework.beans.factory.BeanFactory |
getBeanFactory()
|
java.lang.String[] |
getDynamicProperties(com.bea.p13n.property.PropertyLocator locator,
java.lang.String propertySetName)
Returns a list of dynamically assigned properties for the given entity, that have been named with the given property set name. |
java.lang.String[] |
getEntityNames(java.lang.String jndiName)
Returns a list of Entity names that have this jndi name. |
java.lang.String |
getHomeName(long anEntityId)
Get the JNDI home name for the entity identified by the given entity ID. |
com.bea.p13n.property.EntityPropertyCache |
getProperties(com.bea.p13n.property.PropertyLocator locator)
Returns an EntityPropertyCache full of all properties that are persisted for the entity. |
java.lang.Object |
getProperty(com.bea.p13n.property.PropertyLocator locator,
java.lang.String propertySetName,
java.lang.String propertyName)
Returns the value of the property defined for the specified property and property set. |
com.bea.p13n.property.PropertyLocator |
getPropertyLocator(long anEntityId)
Creates a PropertyLocator from a user entity id. |
javax.ejb.SessionContext |
getSessionContext()
|
long |
getUniqueId(java.lang.String jndiHomeName,
java.lang.String pkString)
Returns the number that uniquely identifies the entity specified by the home name and the pkString. |
void |
onEjbCreate()
Perform initialization after the BeanFactory has been loaded - loads the helper bean. |
protected void |
onEjbRemove()
|
void |
removeEntity(com.bea.p13n.property.PropertyLocator locator)
Remove all properties, and the entity record, for the entity identified by the given property locator. |
void |
removeProperties(com.bea.p13n.property.PropertyLocator locator)
Removes all property values associated with the entity specified by the property locator. |
java.lang.Object |
removeProperty(com.bea.p13n.property.PropertyLocator locator,
java.lang.String propertySetName,
java.lang.String propertyName)
Removes a specific property value from the entity specified by the property locator. |
void |
setBeanFactoryLocator(org.springframework.beans.factory.access.BeanFactoryLocator arg0)
|
void |
setBeanFactoryLocatorKey(java.lang.String arg0)
|
void |
setProperty(com.bea.p13n.property.PropertyLocator locator,
java.lang.String propertySetName,
java.lang.String propertyName,
java.lang.Object propertyValue)
Sets the property identified by the given property set and property name to the given value for the entity specified by the given property locator. |
void |
setSessionContext(javax.ejb.SessionContext sessionContext)
Set the session context and set the bean factory locator details. |
| Methods inherited from class org.springframework.ejb.support.AbstractStatelessSessionBean |
|---|
ejbActivate, ejbCreate, ejbPassivate |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.ejb.SessionBean |
|---|
ejbActivate, ejbPassivate, ejbRemove |
| Field Detail |
|---|
public static final java.lang.String PRIMARY_CONTEXT_ID
beanRefContext.xml file.
public static final java.lang.String CONTEXT_USERPROFILE_HELPER
UserProfileHelper bean to load.
public static final java.lang.String BEAN_FACTORY_PATH_ENVIRONMENT_KEY
| Constructor Detail |
|---|
public EpCustomerPropertiesManagerImpl()
| Method Detail |
|---|
public void onEjbCreate()
onEjbCreate in class org.springframework.ejb.support.AbstractStatelessSessionBean
public com.bea.p13n.property.EntityPropertyCache getProperties(com.bea.p13n.property.PropertyLocator locator)
throws com.bea.p13n.property.EntityNotFoundException
locator - a PropertyLocator that identifies the entity
com.bea.p13n.property.EntityNotFoundException - if the entity is not found
public java.lang.Object getProperty(com.bea.p13n.property.PropertyLocator locator,
java.lang.String propertySetName,
java.lang.String propertyName)
throws com.bea.p13n.property.EntityNotFoundException
locator - - a PropertyLocator identifying the entity to look uppropertySetName - - the name of the property setpropertyName - - the name of the property
com.bea.p13n.property.EntityNotFoundException - if the entity is not found
public void removeProperties(com.bea.p13n.property.PropertyLocator locator)
throws com.bea.p13n.property.EntityNotFoundException
locator - a PropertyLocator identifying the entity to modify
com.bea.p13n.property.EntityNotFoundException - if the entity is not found
public java.lang.Object removeProperty(com.bea.p13n.property.PropertyLocator locator,
java.lang.String propertySetName,
java.lang.String propertyName)
throws com.bea.p13n.property.EntityNotFoundException
locator - - a PropertyLocator identifying the entity to modifypropertySetName - - the property set containing the property to removepropertyName - - the name of the property to remove
com.bea.p13n.property.EntityNotFoundException - if the entity is not found
public void setProperty(com.bea.p13n.property.PropertyLocator locator,
java.lang.String propertySetName,
java.lang.String propertyName,
java.lang.Object propertyValue)
throws com.bea.p13n.property.PropertyValidationException,
com.bea.p13n.property.EntityNotFoundException
locator - - a PropertyLocator identifying the entity to modifypropertySetName - - the property set containing the property to modifypropertyName - - the name of the property to modifypropertyValue - - the value to persist for the given property and entity
com.bea.p13n.property.PropertyValidationException - if the value is not valid for the given property
com.bea.p13n.property.EntityNotFoundException - if the entity is not found
public void removeEntity(com.bea.p13n.property.PropertyLocator locator)
throws com.bea.p13n.property.EntityNotFoundException
locator - - the PropertyLocator identifying the entity to remove
com.bea.p13n.property.EntityNotFoundException - if the entity is not found
public long createUniqueId(java.lang.String jndiHomeName,
java.lang.String pkString)
throws com.bea.p13n.property.ConfigurableEntityCreateException
jndiHomeName - - the entity's home namepkString - - the entity's identifier string
com.bea.p13n.property.ConfigurableEntityCreateException - if there is an error
public long getUniqueId(java.lang.String jndiHomeName,
java.lang.String pkString)
throws com.bea.p13n.property.EntityNotFoundException
jndiHomeName - - the entity's JNDI home namepkString - - the entity's string identifier
com.bea.p13n.property.EntityNotFoundException - if the entity is not found
public java.lang.String[] getDynamicProperties(com.bea.p13n.property.PropertyLocator locator,
java.lang.String propertySetName)
throws com.bea.p13n.property.EntityNotFoundException
locator - - a PropertyLocator identifying the entity to look uppropertySetName - - the property set to look up
com.bea.p13n.property.EntityNotFoundException - if the entity is not found
public java.lang.String getHomeName(long anEntityId)
throws com.bea.p13n.property.EntityNotFoundException
anEntityId - - the unique id for the entity to look up
com.bea.p13n.property.EntityNotFoundException - if the entity is not found
public com.bea.p13n.property.PropertyLocator getPropertyLocator(long anEntityId)
throws com.bea.p13n.property.EntityNotFoundException
anEntityId - - the unique id for the entity to look up
com.bea.p13n.property.EntityNotFoundException - if the entity is not found
public java.lang.String[] getEntityNames(java.lang.String jndiName)
throws java.rmi.RemoteException
jndiName - - the jndiName to query
java.rmi.RemoteException - if an error occurspublic void setSessionContext(javax.ejb.SessionContext sessionContext)
setSessionContext in interface javax.ejb.SessionBeansessionContext - SessionContext for sessionpublic final javax.ejb.SessionContext getSessionContext()
getSessionContext in interface org.springframework.ejb.support.SmartSessionBeanpublic void setBeanFactoryLocator(org.springframework.beans.factory.access.BeanFactoryLocator arg0)
public void setBeanFactoryLocatorKey(java.lang.String arg0)
protected org.springframework.beans.factory.BeanFactory getBeanFactory()
public void ejbRemove()
protected void onEjbRemove()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||