|
|||||||||
| Home >> All >> org >> jeteam >> bean >> [ task overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.jeteam.bean.task
Class NoteServiceBeanImpl

java.lang.Objectorg.jeteam.bean.task.NoteServiceBean
org.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
- extends NoteServiceBean
| 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:
createNotein classNoteServiceBean
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:
removeNotein classNoteServiceBean
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:
getNotesin classNoteServiceBean
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:
getAllNotesin classNoteServiceBean
getTask
public TaskDTO getTask(NoteDTO note) throws NoteException
- Description copied from class:
NoteServiceBean Returns the task that is associated to this note.
- Specified by:
getTaskin classNoteServiceBean
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:
updateNotein classNoteServiceBean
setSessionContext
public void setSessionContext(javax.ejb.SessionContext ctx)
- Specified by:
setSessionContextin interfacejavax.ejb.SessionBean
ejbRemove
public void ejbRemove()
- Specified by:
ejbRemovein interfacejavax.ejb.SessionBean
ejbPassivate
public void ejbPassivate()
- Specified by:
ejbPassivatein interfacejavax.ejb.SessionBean
ejbActivate
public void ejbActivate()
- Specified by:
ejbActivatein interfacejavax.ejb.SessionBean
|
|||||||||
| Home >> All >> org >> jeteam >> bean >> [ task overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC