|
© 2005 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.beasys.commerce.foundation.SessionImpl
com.beasys.commerce.ebusiness.catalog.service.CatalogServiceImpl
This is the base service implementation for all Catalog-related services.
It contains common functionality that all Catalog services must implement;
therefore, all Catalog service implementations should extend this class.
The CatalogService exposes an accessor for retrieving an
associated CatalogManager.
The returned CatalogManager implementation service is specified
with the ejb/CatalogManager environment property.
CatalogService,
CatalogServiceHome,
Serialized Form| Field Summary | |
protected static String |
CATALOG_MANAGER_HOME
The Catalog Manager is used to control access to the services for the Product Catalog. |
| Fields inherited from class com.beasys.commerce.foundation.SessionImpl |
_ctx, _environmentNamingContext, _environmentPropertyCache, _isDirty |
| Constructor Summary | |
CatalogServiceImpl()
|
|
| Method Summary | |
void |
ejbActivate()
ejbActivate method. |
void |
ejbCreate()
ejbCreate method. |
void |
ejbPassivate()
ejbPassivate method. |
void |
ejbPostCreate()
ejbPostCreate method. |
void |
ejbRemove()
ejbRemove method. |
CatalogManager |
getCatalogManager()
Returns a instance of the CatalogManager. |
protected String |
getCatalogManagerJndiName()
Helper method to retrieve the JNDI name of the Catalog Manager used by this service. |
void |
setSessionContext(SessionContext ctx)
setSessionContext method. |
protected void |
validateAuthorization(CatalogRequest request,
int code)
This method validates that the caller's CatalogRequest object has the
credentials to peform the operation in the code argument. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
protected static String CATALOG_MANAGER_HOME
| Constructor Detail |
public CatalogServiceImpl()
| Method Detail |
public void ejbActivate()
throws EJBException
SessionImpl
ejbActivate in interface SessionBeanejbActivate in class SessionImplEJBException
public void ejbCreate()
throws CreateException
SessionImpl
ejbCreate in class SessionImplCreateException
public void ejbPassivate()
throws EJBException
SessionImpl
ejbPassivate in interface SessionBeanejbPassivate in class SessionImplEJBException
public void ejbPostCreate()
throws CreateException
SessionImpl
ejbPostCreate in class SessionImplCreateException
public void ejbRemove()
throws EJBException
SessionImpl
ejbRemove in interface SessionBeanejbRemove in class SessionImplEJBExceptionpublic CatalogManager getCatalogManager()
CatalogManager.
CatalogManager.
RemoteException - on remote error.protected String getCatalogManagerJndiName()
public void setSessionContext(SessionContext ctx)
throws EJBException
SessionImpl
setSessionContext in interface SessionBeansetSessionContext in class SessionImplEJBException
protected void validateAuthorization(CatalogRequest request,
int code)
throws CatalogException
CatalogRequest object has the
credentials to peform the operation in the code argument. See CatalogRequest
for a list of the available codes.
request - The CatalogRequest object of the caller.code - the operation code to be authorized.
CatalogOperationNotAuthorizedException - if the caller does not have sufficient
credentials to perform the operation.
CatalogExceptionCatalogRequest
|
© 2005 BEA Systems, Inc. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||