com.bea.commerce.ebusiness.customer
Interface CustomerPropertyManager

All Superinterfaces
javax.ejb.EJBObject, EntityPropertyManager, Remote

Deprecated See BEA Commerce product offering

@Deprecated
public interface CustomerPropertyManager
extends EntityPropertyManager

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(String customerName)
          Deprecated See BEA Commerce product offering
 boolean customerExists(String customerName)
          Deprecated See BEA Commerce product offering
 void deleteCustomer(String customerName)
          Deprecated See BEA Commerce product offering
 Object getProperty(String customerName, String propertySet, String propertyName)
          Deprecated See BEA Commerce product offering
 String getPropertyAsString(String customerName, String propertySet, String propertyName)
          Deprecated See BEA Commerce product offering
 Object removeProperty(String customerName, String propertySet, String propertyName)
          Deprecated See BEA Commerce product offering
 void setProperty(String customerName, String propertySet, String propertyName, Object value)
          Deprecated See BEA Commerce product offering
 
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

getProperty

Object getProperty(String customerName,
                   String propertySet,
                   String propertyName)
                   throws RemoteException,
                          CustomerNotFoundException
Deprecated See BEA Commerce product offering

Returns the value of the property defined for the specified property and property set.

If the property does not have a value persisted, then null is returned.

Parameters
customerName - the name of the customer whose property we wish to retrieve
propertySet - the name of the property set
propertyName - the name of the property
Returns
the property's value, or null if there is none
Throws
CustomerNotFoundException - if the customer is not valid
RemoteException

getPropertyAsString

String getPropertyAsString(String customerName,
                           String propertySet,
                           String propertyName)
                           throws RemoteException,
                                  CustomerNotFoundException
Deprecated See BEA Commerce product offering

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.

Parameters
profileName - the name of the profile to read
propertySet - the property set containing the property
propertyName - the name of the property to retrieve
Returns
the property's value as a String
Throws
CustomerNotFoundException - if the customer is not valid
RemoteException

setProperty

void setProperty(String customerName,
                 String propertySet,
                 String propertyName,
                 Object value)
                 throws PropertyValidationException,
                        CustomerNotFoundException,
                        RemoteException
Deprecated See BEA Commerce product offering

Set a property in the profile

Parameters
customerName - the name of the profile to modify
propertySet - the property set containing the property
propertyName - the name of the property to retrieve
value - the new value for the property
Throws
PropertyValidationException - if the new value is not valid
CustomerNotFoundException - if the customer is not valid
RemoteException

removeProperty

Object removeProperty(String customerName,
                      String propertySet,
                      String propertyName)
                      throws RemoteException,
                             CustomerNotFoundException
Deprecated See BEA Commerce product offering

Remove a property from the customer

Parameters
customerName - the name of the customer to modify
propertySet - the property set containing the property
propertyName - the name of the property to retrieve
Returns
the old value of the property
Throws
CustomerNotFoundException - if the customer is not valid
RemoteException

createCustomer

void createCustomer(String customerName)
                    throws RemoteException,
                           Exception
Deprecated See BEA Commerce product offering

Create a customer record with the given name.

Parameters
customerName - the name of the customer to create
Throws
RemoteException
Exception

deleteCustomer

void deleteCustomer(String customerName)
                    throws RemoteException,
                           CustomerNotFoundException
Deprecated See BEA Commerce product offering

Remove a customer

Parameters
customerName - the name of the customer to remove
Throws
RemoteException
CustomerNotFoundException

customerExists

boolean customerExists(String customerName)
                       throws RemoteException,
                              CustomerNotFoundException
Deprecated See BEA Commerce product offering

Determine if a customer exists

Parameters
customerName - the name to look for
Returns
true if it exists, false otherwise
Throws
RemoteException
CustomerNotFoundException


Copyright © 2006 BEA Systems, Inc. All Rights Reserved