|
bea Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--theory.smart.foundation.SessionImpl | +--theory.smart.ebusiness.troubleticket.TroubleTicketManagerImpl
This is a front-end to the trouble ticket system. It creates tickets and helps you move thru the ticket workflow. Constructor takes a sequencer key. If no sequencer with that key exists, a new one is created Each workflow-associated method takes in the minimum parameters needed to make the state transition. It fills in the ones it can (like status and effectiveDate), and it tries to move the workflow. If the transition is invalid, it passes the exception on thru to the caller of the method. openTicket uses sequencer to create a new ticket entity Stateful session bean This Bean is configurable with the following properties: TroubleTicketHome - Specifies the JNDI name for allocating trouble tickets. The default is theory.smart.ebusiness.troubleticket.TroubleTicket AlphaNumericSequencerHome - Specifies the JNDI name for allocating Aphanumeric Sequence. The default is theory.smart.axiom.util.AlphaNumericSequencer SequencerPrefix - Specifies the Prefix for allocating Trouble Ticket. Default is ticket SequencerSuffix - Specifies the Suffix for allocating Trouble Ticket. Default is ""
TroubleTicketManager
,
TroubleTicketManagerHome
, Serialized FormField Summary | |
protected static java.lang.String |
ALPHANUMERIC_SEQUENCER_HOME
|
protected static java.lang.String |
DEFAULT_ALPHANUMERIC_SEQUENCER_HOME
|
protected static java.lang.String |
DEFAULT_SEQUENCER_ID
|
protected static java.lang.String |
DEFAULT_SEQUENCER_PREFIX
|
protected static java.lang.String |
DEFAULT_SEQUENCER_SUFFIX
|
protected static java.lang.String |
DEFAULT_TROUBLETICKET_HOME
|
protected static java.lang.String |
SEQUENCER_PREFIX
|
protected static java.lang.String |
SEQUENCER_SUFFIX
|
protected static java.lang.String |
TROUBLETICKET_HOME
|
SmartHandle |
troubleTicketGenerator
troubleTicketGenerator [TroubleTicketManager] <>------> [ theory.smart.axiom.util.AlphaNumericSequencer ]
|
protected static TroubleTicketHome |
troubleTicketHome
|
Fields inherited from class theory.smart.foundation.SessionImpl |
ctx,
isDirty |
Constructor Summary | |
TroubleTicketManagerImpl()
|
Method Summary | |
void |
ejbActivate()
|
void |
ejbCreate()
|
void |
ejbPassivate()
|
void |
ejbPostCreate()
|
void |
ejbRemove()
|
java.util.Enumeration |
getAllTickets()
Return a list of all the open trouble tickets in the system. |
java.lang.String[] |
getAllTicketSummaries()
Get a summary of all the trouble tickets on the system. |
java.util.Vector |
getTicketsByCustomer(java.lang.String customerKey)
Get all of the trouble tickets associated with the specified customer. |
TroubleTicket |
getTroubleTicket(java.lang.String ticketId)
Get the ticket associated with the specified key. |
AlphaNumericSequencer |
getTroubleTicketGenerator()
Get the remote object reference of troubleTicketGenerator |
java.lang.String |
openTroubleTicket(java.lang.String category,
Customer customer,
java.lang.String description)
Create a new trouble ticket with the specified category, customer, and description. |
void |
purgeAllTickets()
Deletes all closed or rejected tickets. |
void |
purgeTicket(java.lang.String ticketId)
Purge a ticket that is in the closed or rejected state. |
void |
setSessionContext(SessionContext ctx)
|
void |
setTroubleTicketGenerator(AlphaNumericSequencer troubleTicketGenerator)
Set the remote object reference of troubleTicketGenerator |
void |
setTroubleTicketGenerator(java.lang.String sequencerKey)
Assign the sequence generator used for the creation of trouble ticket keys. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected static TroubleTicketHome troubleTicketHome
protected static java.lang.String DEFAULT_SEQUENCER_ID
protected static java.lang.String DEFAULT_SEQUENCER_PREFIX
protected static java.lang.String DEFAULT_SEQUENCER_SUFFIX
protected static java.lang.String SEQUENCER_PREFIX
protected static java.lang.String SEQUENCER_SUFFIX
protected static java.lang.String TROUBLETICKET_HOME
protected static java.lang.String DEFAULT_TROUBLETICKET_HOME
protected static java.lang.String ALPHANUMERIC_SEQUENCER_HOME
protected static java.lang.String DEFAULT_ALPHANUMERIC_SEQUENCER_HOME
public SmartHandle troubleTicketGenerator
troubleTicketGenerator
[TroubleTicketManager] <>------> [theory.smart.axiom.util.AlphaNumericSequencer
]
Constructor Detail |
public TroubleTicketManagerImpl() throws CreateException
Method Detail |
public void ejbCreate() throws CreateException, java.rmi.RemoteException
public void ejbPostCreate() throws CreateException, java.rmi.RemoteException
public void ejbActivate() throws java.rmi.RemoteException
public void ejbPassivate() throws java.rmi.RemoteException
public void ejbRemove() throws java.rmi.RemoteException
public void setSessionContext(SessionContext ctx) throws java.rmi.RemoteException
public AlphaNumericSequencer getTroubleTicketGenerator() throws java.rmi.RemoteException
public void setTroubleTicketGenerator(AlphaNumericSequencer troubleTicketGenerator) throws java.rmi.RemoteException
troubleTicketGenerators
- troubleTicketGenerator to be addedpublic void setTroubleTicketGenerator(java.lang.String sequencerKey) throws java.rmi.RemoteException
public java.lang.String openTroubleTicket(java.lang.String category, Customer customer, java.lang.String description) throws java.rmi.RemoteException, CreateException, IllegalWorkflowTransitionException
public TroubleTicket getTroubleTicket(java.lang.String ticketId) throws java.rmi.RemoteException
public java.util.Enumeration getAllTickets() throws java.rmi.RemoteException, FinderException
public java.lang.String[] getAllTicketSummaries() throws java.rmi.RemoteException
public java.util.Vector getTicketsByCustomer(java.lang.String customerKey) throws java.rmi.RemoteException, FinderException, javax.naming.NamingException
public void purgeTicket(java.lang.String ticketId) throws java.rmi.RemoteException
public void purgeAllTickets() throws java.rmi.RemoteException
|
bea Systems, Inc. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |