# com.beasys.commerce.ebusiness.catalog
CatalogManagerImpl Class

public class CatalogManagerImpl
extends `CatalogServiceImpl`

The implementation class for the `CatalogManager` Session EJB.
Each service that is managed by an instance of the `CatalogManager` is specified by an EJB reference environment property:

- `ejb/ProductItemManager` - specifies the managed `ProductItemManager` service.
- `ejb/CategoryManager` - specifies the managed `CategoryManager` service.
- `ejb/CatalogQueryManager` - specifies the managed `CatalogQueryManager` service.
- `ejb/CustomDataManager` - specifies the managed `CustomDataManager` service.

Multiple Product Catalogs may be created by deploying a `CatalogManager` service for each Product Catalog. Each `CatalogManager` can manage a different set of Catalog services by way of modifying the service EJB references in the deployment descriptor. Each managed Catalog service may also be deployed multiple times with different service implementation delegates (as specified in each Catalog service deployment descriptor). In this way each deployed `CatalogManager` can managed a unique set of Catalog services.

Related Topics

``CatalogManager``
``CatalogManagerHome``
``CategoryManager``
``ProductItemManager``
``CatalogQueryManager``
``CustomDataManager``

Hierarchy
  `Object`
  `SessionImpl`
  `CatalogServiceImpl`
  `CatalogManagerImpl`

All Implemented Interfaces
  `EnterpriseBean`, `Serializable`, `SessionBean`

## Field Summary

Fields from com.beasys.commerce.ebusiness.catalog.service`.`CatalogServiceImpl``
``CATALOG_MANAGER_HOME``

Fields from com.beasys.commerce.foundation`.`SessionImpl``
``_ctx`, `_environmentNamingContext`, `_environmentPropertyCache`, `_isDirty``

## Constructor Summary

CatalogManagerImpl()

## Method Summary

`public `CatalogRequest`` | `createAdminCatalogRequest`() Creates a CatalogRequest with administrative user access permissions.
`public `CatalogRequest`` | `createCatalogRequest`() Creates a CatalogRequest with default user access permissions.
`public void` | `ejbActivate`() ejbActivate method.
`public void` | `ejbCreate`() ejbCreate method.
`public void` | `ejbPassivate`() ejbPassivate method.
`public void` | `ejbPostCreate`() ejbPostCreate method.
`public void` | `ejbRemove`() ejbRemove method.
`public `CatalogQueryManager`` | `getCatalogQueryManager`(`CatalogRequest` request) Returns the CatalogQueryManager catalog service.
`public `CategoryManager`` | `getCategoryManager`(`CatalogRequest` request) Returns the CategoryManager catalog service.
`public `CustomDataManager`` | `getCustomDataManager`(`CatalogRequest` request) Returns the CustomDataManager catalog service.
`public `ProductItemManager`` | `getProductItemManager`(`CatalogRequest` request) Returns the ProductItemManager catalog service.
`public void` | `onRemoveItem`(`CatalogRequest` request, `CatalogItemKey` itemKey) Callback method.
`public void` | `setSessionContext`(`SessionContext` ctx) setSessionContext method.

Methods from `com.beasys.commerce.ebusiness.catalog.service.`CatalogServiceImpl``
``getCatalogManager`, `getCatalogManagerJndiName`, `validateAuthorization``

Methods from `com.beasys.commerce.foundation.`SessionImpl``
``clearRelationalBinding`, `clearRelationalBinding`, `clearRelationalBinding`, `clearRelationalBinding`, `doRelationalBinding`, `doRelationalBinding`, `doRelationalBindingOnElement`, `doRelationalBindingOnElement`, `doRelationalBindingOnElement`, `doRelationalBindingOnSingleton`, `doRelationalBindingOnSingleton`, `doRelationalBindingOnSingleton`, `doRelationalBindingWithMapKey`, `doRelationalBindingWithMapKey`, `doRelationalBindingWithMapKey`, `ejbActivate`, `ejbCreate`, `ejbPassivate`, `ejbPostCreate`, `ejbRemove`, `enumerateRelationalBinding`, `enumerateRelationalBinding`, `getEnvironmentNamingContext`, `getEnvironmentProperty`, `getEnvironmentProperty`, `getEnvironmentPropertyCache`, `getPersistenceHelperPlugin`, `getSessionContext`, `setSessionContext``

Methods from class `java.lang.`Object``
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Methods from interface `javax.ejb.`SessionBean``
`ejbActivate, ejbPassivate, ejbRemove, setSessionContext`

## Constructor Detail

### CatalogManagerImpl

    public CatalogManagerImpl()

## Method Detail

### createAdminCatalogRequest() Method

    public CatalogRequest createAdminCatalogRequest()

Creates a CatalogRequest with administrative user access permissions. The CatalogRequest object is the first parameter to most catalog methods and encapsulates information about the current user and the data they are requesting.

Related Topics

``CatalogManager.createCatalogRequest()``

### createCatalogRequest() Method

    public CatalogRequest createCatalogRequest()

Creates a CatalogRequest with default user access permissions. The CatalogRequest object is the first parameter to most catalog methods and encapsulates information about the current user and the data they are requesting.

Related Topics

``CatalogManager.createAdminCatalogRequest()``

### ejbActivate() Method

    public void ejbActivate()
         throws EJBException

Description copied from `SessionImpl.ejbActivate()`
ejbActivate method.

Overrides
  `CatalogServiceImpl.ejbActivate()`

#### Exceptions

``EJBException``

### ejbCreate() Method

    public void ejbCreate()
         throws CreateException

Description copied from `SessionImpl.ejbCreate()`
ejbCreate method.

Overrides
  `CatalogServiceImpl.ejbCreate()`

#### Exceptions

``CreateException``

### ejbPassivate() Method

    public void ejbPassivate()
         throws EJBException

Description copied from `SessionImpl.ejbPassivate()`
ejbPassivate method.

Overrides
  `CatalogServiceImpl.ejbPassivate()`

#### Exceptions

``EJBException``

### ejbPostCreate() Method

    public void ejbPostCreate()
         throws CreateException

Description copied from `SessionImpl.ejbPostCreate()`
ejbPostCreate method.

Overrides
  `CatalogServiceImpl.ejbPostCreate()`

#### Exceptions

``CreateException``

### ejbRemove() Method

    public void ejbRemove()
         throws EJBException

Description copied from `SessionImpl.ejbRemove()`
ejbRemove method.

Overrides
  `CatalogServiceImpl.ejbRemove()`

#### Exceptions

``EJBException``

### getCatalogQueryManager(CatalogRequest) Method

    public CatalogQueryManager getCatalogQueryManager(CatalogRequest request)

Returns the CatalogQueryManager catalog service.

#### Parameters

request
  the user's current CatalogRequest

#### Returns

the CatalogQueryManager service

Related Topics

``CatalogQueryManager``
``CatalogManager.createCatalogRequest()``
``CatalogManager.createAdminCatalogRequest()``

### getCategoryManager(CatalogRequest) Method

    public CategoryManager getCategoryManager(CatalogRequest request)

Returns the CategoryManager catalog service.

#### Parameters

request
  the user's current CatalogRequest

#### Returns

the CategoryManager service

Related Topics

``CategoryManager``
``CatalogManager.createCatalogRequest()``
``CatalogManager.createAdminCatalogRequest()``

### getCustomDataManager(CatalogRequest) Method

    public CustomDataManager getCustomDataManager(CatalogRequest request)

Returns the CustomDataManager catalog service.

#### Parameters

request
  the user's current CatalogRequest

#### Returns

the CustomDataManager service

Related Topics

``CustomDataManager``
``CatalogManager.createCatalogRequest()``
``CatalogManager.createAdminCatalogRequest()``

### getProductItemManager(CatalogRequest) Method

    public ProductItemManager getProductItemManager(CatalogRequest request)

Returns the ProductItemManager catalog service.

#### Parameters

request
  the user's current CatalogRequest

#### Returns

the ProductItemManager service

Related Topics

``ProductItemManager``
``CatalogManager.createCatalogRequest()``
``CatalogManager.createAdminCatalogRequest()``

### onRemoveItem(CatalogRequest, CatalogItemKey) Method

    public void onRemoveItem(CatalogRequest request,
                             CatalogItemKey itemKey)

Callback method. Services that remove items: `CategoryManager.removeCategory` and `ProductItemMananger.removeItem` should notify the `CatalogManager` that the items have been removed.

#### Parameters

request
  the current CatalogRequest for the user

itemKey
  the key for the item being removed

### setSessionContext(SessionContext) Method

    public void setSessionContext(SessionContext ctx)
         throws EJBException

Description copied from `SessionImpl.setSessionContext(SessionContext)`
setSessionContext method.

Overrides
  `CatalogServiceImpl.setSessionContext(SessionContext)`

#### Exceptions

``EJBException``