Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.jeteam.bean.task
Class NoteServiceBeanImpl  view NoteServiceBeanImpl download NoteServiceBeanImpl.java

java.lang.Object
  extended byorg.jeteam.bean.task.NoteServiceBean
      extended byorg.jeteam.bean.task.NoteServiceBeanImpl
All Implemented Interfaces:
javax.ejb.EnterpriseBean, java.io.Serializable, javax.ejb.SessionBean

public class NoteServiceBeanImpl
extends NoteServiceBean
implements javax.ejb.SessionBean


Field Summary
private  javax.ejb.SessionContext context
           
 
Constructor Summary
NoteServiceBeanImpl()
           
 
Method Summary
 NoteDTO createNote(NoteDTO note, TaskDTO task)
           A note is created by attaching it to its associated task, without a task a note has no meaning.
 void ejbActivate()
           
 void ejbPassivate()
           
 void ejbRemove()
           
 NoteDTO[] getAllNotes()
           This method returns all the notes that can be found, also the ones that have been logically deleted.
 NoteDTO[] getNotes()
           Getting the notes will only return the ones that have not been logically deleted, use getAllNotes() in case you need to retrieve the complete list of notes.
 TaskDTO getTask(NoteDTO note)
           Returns the task that is associated to this note.
 void removeNote(NoteDTO note)
           Removing a note will result in setting its 'deleted' attribute to the current date (not null ) so it will be logically deleted.
 void setSessionContext(javax.ejb.SessionContext ctx)
           
 void updateNote(NoteDTO note)
           Updates the content of the note, this might either be the subject or the message.
 
Methods inherited from class org.jeteam.bean.task.NoteServiceBean
ejbCreate, ejbPostCreate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

context

private javax.ejb.SessionContext context
Constructor Detail

NoteServiceBeanImpl

public NoteServiceBeanImpl()
Method Detail

createNote

public NoteDTO createNote(NoteDTO note,
                          TaskDTO task)
                   throws NoteException
Description copied from class: NoteServiceBean

A note is created by attaching it to its associated task, without a task a note has no meaning.

Specified by:
createNote in class NoteServiceBean

removeNote

public void removeNote(NoteDTO note)
                throws NoteException
Description copied from class: NoteServiceBean

Removing a note will result in setting its 'deleted' attribute to the current date (not null ) so it will be logically deleted. A note that has already been logically deleted cannot be deleted again, this method will not do anything in that case.

Specified by:
removeNote in class NoteServiceBean

getNotes

public NoteDTO[] getNotes()
                   throws NoteException
Description copied from class: NoteServiceBean

Getting the notes will only return the ones that have not been logically deleted, use getAllNotes() in case you need to retrieve the complete list of notes.

Specified by:
getNotes in class NoteServiceBean

getAllNotes

public NoteDTO[] getAllNotes()
                      throws NoteException
Description copied from class: NoteServiceBean

This method returns all the notes that can be found, also the ones that have been logically deleted.

Specified by:
getAllNotes in class NoteServiceBean

getTask

public TaskDTO getTask(NoteDTO note)
                throws NoteException
Description copied from class: NoteServiceBean

Returns the task that is associated to this note.

Specified by:
getTask in class NoteServiceBean

updateNote

public void updateNote(NoteDTO note)
                throws NoteException
Description copied from class: NoteServiceBean

Updates the content of the note, this might either be the subject or the message.

Specified by:
updateNote in class NoteServiceBean

setSessionContext

public void setSessionContext(javax.ejb.SessionContext ctx)
Specified by:
setSessionContext in interface javax.ejb.SessionBean

ejbRemove

public void ejbRemove()
Specified by:
ejbRemove in interface javax.ejb.SessionBean

ejbPassivate

public void ejbPassivate()
Specified by:
ejbPassivate in interface javax.ejb.SessionBean

ejbActivate

public void ejbActivate()
Specified by:
ejbActivate in interface javax.ejb.SessionBean