|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Manages properties associated with Customer. Implemented as a stateless session bean. Delegates calls to the CustomerEJB.
Handles property sets for "CustomerProperties". This mapping can be found in usermgmt-ejb-jar.xml deployment descriptor.
Method Summary | |
void |
createCustomer(java.lang.String customerName)
Create a customer record with the given name. |
boolean |
customerExists(java.lang.String customerName)
Determine if a customer exists |
void |
deleteCustomer(java.lang.String customerName)
Remove a customer |
java.lang.Object |
getProperty(java.lang.String customerName,
java.lang.String propertySet,
java.lang.String propertyName)
Returns the value of the property defined for the specified property and property set. |
java.lang.String |
getPropertyAsString(java.lang.String customerName,
java.lang.String propertySet,
java.lang.String propertyName)
Get a property from the customer, converted to a String If the property is not found, the default value from the property set will be returned. |
java.lang.Object |
removeProperty(java.lang.String customerName,
java.lang.String propertySet,
java.lang.String propertyName)
Remove a property from the customer |
void |
setProperty(java.lang.String customerName,
java.lang.String propertySet,
java.lang.String propertyName,
java.lang.Object value)
Set a property in the profile |
Methods inherited from interface com.bea.p13n.property.EntityPropertyManager |
createUniqueId,
getDynamicProperties,
getEntityNames,
getHomeName,
getProperties,
getProperty,
getPropertyLocator,
getUniqueId,
removeEntity,
removeProperties,
removeProperty,
setProperty |
Methods inherited from interface javax.ejb.EJBObject |
getEJBHome,
getHandle,
getPrimaryKey,
isIdentical,
remove |
Method Detail |
public java.lang.Object getProperty(java.lang.String customerName, java.lang.String propertySet, java.lang.String propertyName) throws java.rmi.RemoteException, CustomerNotFoundException
If the property does not have a value persisted, then null is returned.
customerName
- the name of the customer whose property we wish
to retrievepropertySet
- the name of the property setpropertyName
- the name of the propertypublic java.lang.String getPropertyAsString(java.lang.String customerName, java.lang.String propertySet, java.lang.String propertyName) throws java.rmi.RemoteException, CustomerNotFoundException
profileName
- the name of the profile to readpropertySet
- the property set containing the propertypropertyName
- the name of the property to retrievepublic void setProperty(java.lang.String customerName, java.lang.String propertySet, java.lang.String propertyName, java.lang.Object value) throws PropertyValidationException, CustomerNotFoundException, java.rmi.RemoteException
customerName
- the name of the profile to modifypropertySet
- the property set containing the propertypropertyName
- the name of the property to retrievevalue
- the new value for the propertypublic java.lang.Object removeProperty(java.lang.String customerName, java.lang.String propertySet, java.lang.String propertyName) throws java.rmi.RemoteException, CustomerNotFoundException
customerName
- the name of the customer to modifypropertySet
- the property set containing the propertypropertyName
- the name of the property to retrievepublic void createCustomer(java.lang.String customerName) throws java.rmi.RemoteException, java.lang.Exception
customerName
- the name of the customer to createpublic void deleteCustomer(java.lang.String customerName) throws java.rmi.RemoteException, CustomerNotFoundException
customerName
- the name of the customer to removepublic boolean customerExists(java.lang.String customerName) throws java.rmi.RemoteException, CustomerNotFoundException
customerName
- the name to look for
|
© 2002 BEA Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |