com.retek.component.history.impl
Class HistoryManagerImpl

java.lang.Object
  extended bycom.retek.commons.component.impl.DistributedObjectManagerImpl
      extended bycom.retek.component.history.impl.HistoryManagerImpl
All Implemented Interfaces:
DistributedObjectManager, HistoryManager

public class HistoryManagerImpl
extends DistributedObjectManagerImpl
implements HistoryManager


Constructor Summary
HistoryManagerImpl(DistributedContext context)
           
 
Method Summary
 HistoryEventType buildExternalHistoryEventType()
           
 HistoryEvent buildGenericHistoryEventInstanceForCustomer(User user, Customer customer, java.lang.String eventDetail)
          Deprecated. test uses deprecated API's
 HistoryEvent buildGenericHistoryEventInstanceForOrder(User user, CustomerOrder order, HistoryEventType eventType, HistoryEventVisibility visibility, java.lang.String eventDetail)
          Deprecated. test uses deprecated API's
 HistoryEvent buildGenericHistoryEventInstanceForOrder(User user, CustomerOrder order, HistoryEventVisibility visibility, java.lang.String eventDetail)
          Deprecated. test uses deprecated API's
 HistoryEvent buildHistoryEventInstance(HistoryEventRequest eventRequest)
          Build a new history event instance for a history event request object.
 HistoryEvent buildHistoryEventInstanceForActivityRequest(Banner banner, ChannelType channelType, User user, Customer customer, CustomerOrder order, ActivityRequest request)
          Build a new customer history event instance for an activity request.
 HistoryEvent buildHistoryEventInstanceForCustomer(Banner banner, ChannelType channelType, HistoryEventType type, User user, Customer customer)
          Build a new customer history event instance for a customer.
 HistoryEvent buildHistoryEventInstanceForOrder(HistoryEventType type, User user, CustomerOrder order)
          Build a new customer history event instance for an order.
protected  ReferenceCache fetchMoreReferences(java.lang.Class businessIface)
           
 java.util.Set findAllEventTypes()
           
 java.util.List findEventsForCustomer(Customer customer)
          Find all history events for a specified customer (regardless of visibility).
 java.util.List findEventsForCustomerVisibleAtCustomer(Customer customer)
          Find all history events for a specified customer which have visibility set to customer only.
 java.util.List findEventsForOrder(CustomerOrder order)
          Find history events for a specified customer order.
 boolean isEventTypeEquals(HistoryEventRequest request, java.lang.String eventTypeId)
           
 boolean isEventTypeEquals(HistoryEvent event, java.lang.String eventTypeId)
           
 HistoryEvent read(DistributedReference ref)
          Read a history event for a specified reference.
 HistoryEventType readHistoryEventType(java.lang.String eventTypeId)
           
 void submitHistoryEvents(java.util.Collection eventRequests)
          Submit one or more history events to the history database for a specified set of history event requests.
 
Methods inherited from class com.retek.commons.component.impl.DistributedObjectManagerImpl
getContext, getReferenceCache
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.retek.commons.component.DistributedObjectManager
getContext
 

Constructor Detail

HistoryManagerImpl

public HistoryManagerImpl(DistributedContext context)
Method Detail

read

public HistoryEvent read(DistributedReference ref)
                  throws SystemException
Description copied from interface: HistoryManager
Read a history event for a specified reference.

Specified by:
read in interface HistoryManager
Parameters:
ref - history event reference
Returns:
HistoryEvent
Throws:
SystemException

readHistoryEventType

public HistoryEventType readHistoryEventType(java.lang.String eventTypeId)
                                      throws SystemException
Specified by:
readHistoryEventType in interface HistoryManager
Throws:
SystemException

buildHistoryEventInstanceForCustomer

public HistoryEvent buildHistoryEventInstanceForCustomer(Banner banner,
                                                         ChannelType channelType,
                                                         HistoryEventType type,
                                                         User user,
                                                         Customer customer)
                                                  throws SystemException,
                                                         BusinessException
Description copied from interface: HistoryManager
Build a new customer history event instance for a customer.

Specified by:
buildHistoryEventInstanceForCustomer in interface HistoryManager
Parameters:
banner - banner for the new event
channelType - channel type for the new event
type - history event type
user - user that created the new event
customer - customer for the new event
Returns:
HistoryEvent new history event instance
Throws:
SystemException
BusinessException
See Also:
HistoryEvent.submit()

buildHistoryEventInstanceForOrder

public HistoryEvent buildHistoryEventInstanceForOrder(HistoryEventType type,
                                                      User user,
                                                      CustomerOrder order)
                                               throws SystemException,
                                                      BusinessException
Description copied from interface: HistoryManager
Build a new customer history event instance for an order.

Specified by:
buildHistoryEventInstanceForOrder in interface HistoryManager
Parameters:
type - history event type
user - user that created the new event
order - order for the new event
Returns:
HistoryEvent new history event instance
Throws:
SystemException
BusinessException
See Also:
HistoryEvent.submit()

buildHistoryEventInstance

public HistoryEvent buildHistoryEventInstance(HistoryEventRequest eventRequest)
                                       throws SystemException
Description copied from interface: HistoryManager
Build a new history event instance for a history event request object. A history event request is a light-weight bean which can be used to queue up history events on another object (ex. customer order) during a larger process to facilitate transaction integrity in managing history events.

Specified by:
buildHistoryEventInstance in interface HistoryManager
Parameters:
eventRequest - history event request bean
Returns:
HistoryEvent new history event instance
Throws:
SystemException
See Also:
HistoryManager#submitHistoryEvents(Set)

buildHistoryEventInstanceForActivityRequest

public HistoryEvent buildHistoryEventInstanceForActivityRequest(Banner banner,
                                                                ChannelType channelType,
                                                                User user,
                                                                Customer customer,
                                                                CustomerOrder order,
                                                                ActivityRequest request)
                                                         throws SystemException,
                                                                BusinessException
Description copied from interface: HistoryManager
Build a new customer history event instance for an activity request.

Specified by:
buildHistoryEventInstanceForActivityRequest in interface HistoryManager
Parameters:
banner - banner for the new event
channelType - channel type for the new event
user - user that created the new event
customer - customer for the new event
order - order for the new event
request - activity request for the new event
Returns:
HistoryEvent new history event instance
Throws:
SystemException
BusinessException
See Also:
HistoryEvent.submit()

buildGenericHistoryEventInstanceForCustomer

public HistoryEvent buildGenericHistoryEventInstanceForCustomer(User user,
                                                                Customer customer,
                                                                java.lang.String eventDetail)
                                                         throws SystemException,
                                                                BusinessException
Deprecated. test uses deprecated API's

Specified by:
buildGenericHistoryEventInstanceForCustomer in interface HistoryManager
Parameters:
user - user that created the new event
customer - customer for the new event
eventDetail - event detail
Returns:
HistoryEvent new history event instance
Throws:
SystemException
BusinessException
See Also:
HistoryEvent.submit()

buildGenericHistoryEventInstanceForOrder

public HistoryEvent buildGenericHistoryEventInstanceForOrder(User user,
                                                             CustomerOrder order,
                                                             HistoryEventVisibility visibility,
                                                             java.lang.String eventDetail)
                                                      throws SystemException,
                                                             BusinessException
Deprecated. test uses deprecated API's

Specified by:
buildGenericHistoryEventInstanceForOrder in interface HistoryManager
Parameters:
user - user that created the new event
order - order for the new event
visibility - history event visilbility
eventDetail - event detail
Returns:
HistoryEvent new history event instance
Throws:
SystemException
BusinessException
See Also:
HistoryEvent.submit()

buildGenericHistoryEventInstanceForOrder

public HistoryEvent buildGenericHistoryEventInstanceForOrder(User user,
                                                             CustomerOrder order,
                                                             HistoryEventType eventType,
                                                             HistoryEventVisibility visibility,
                                                             java.lang.String eventDetail)
                                                      throws SystemException,
                                                             BusinessException
Deprecated. test uses deprecated API's

Specified by:
buildGenericHistoryEventInstanceForOrder in interface HistoryManager
Parameters:
user - user that created the new event
order - order for the new event
visibility - history event visilbility
eventDetail - event detail
Returns:
HistoryEvent new history event instance
Throws:
SystemException
BusinessException
See Also:
HistoryEvent.submit()

buildExternalHistoryEventType

public HistoryEventType buildExternalHistoryEventType()
                                               throws SystemException
Specified by:
buildExternalHistoryEventType in interface HistoryManager
Throws:
SystemException

findEventsForCustomer

public java.util.List findEventsForCustomer(Customer customer)
                                     throws SystemException,
                                            BusinessException
Description copied from interface: HistoryManager
Find all history events for a specified customer (regardless of visibility).

Specified by:
findEventsForCustomer in interface HistoryManager
Parameters:
customer - customer
Returns:
List matching history events for the customer
Throws:
SystemException
BusinessException

findEventsForCustomerVisibleAtCustomer

public java.util.List findEventsForCustomerVisibleAtCustomer(Customer customer)
                                                      throws SystemException,
                                                             BusinessException
Description copied from interface: HistoryManager
Find all history events for a specified customer which have visibility set to customer only.

Specified by:
findEventsForCustomerVisibleAtCustomer in interface HistoryManager
Parameters:
customer - customer
Returns:
List matching history events for the customer
Throws:
SystemException
BusinessException

findEventsForOrder

public java.util.List findEventsForOrder(CustomerOrder order)
                                  throws SystemException,
                                         BusinessException
Description copied from interface: HistoryManager
Find history events for a specified customer order.

Specified by:
findEventsForOrder in interface HistoryManager
Parameters:
order - customer order
Returns:
List matching history events for the order
Throws:
SystemException
BusinessException

findAllEventTypes

public java.util.Set findAllEventTypes()
                                throws SystemException
Specified by:
findAllEventTypes in interface HistoryManager
Throws:
SystemException

submitHistoryEvents

public void submitHistoryEvents(java.util.Collection eventRequests)
                         throws SystemException
Description copied from interface: HistoryManager
Submit one or more history events to the history database for a specified set of history event requests.

Specified by:
submitHistoryEvents in interface HistoryManager
Parameters:
eventRequests - history event request beans
Throws:
SystemException
See Also:
HistoryEventRequest

fetchMoreReferences

protected ReferenceCache fetchMoreReferences(java.lang.Class businessIface)
                                      throws SystemException
Specified by:
fetchMoreReferences in class DistributedObjectManagerImpl
Throws:
SystemException

isEventTypeEquals

public boolean isEventTypeEquals(HistoryEvent event,
                                 java.lang.String eventTypeId)
                          throws SystemException
Specified by:
isEventTypeEquals in interface HistoryManager
Throws:
SystemException

isEventTypeEquals

public boolean isEventTypeEquals(HistoryEventRequest request,
                                 java.lang.String eventTypeId)
                          throws SystemException
Specified by:
isEventTypeEquals in interface HistoryManager
Throws:
SystemException


Copyright © 2004 Retek Inc. All Rights Reserved. - Generated at Fri, 10/22/2004 07:28