|
|||||||||
| 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 NoteServiceBean

java.lang.Objectorg.jeteam.bean.task.NoteServiceBean
- All Implemented Interfaces:
- javax.ejb.EnterpriseBean, java.io.Serializable, javax.ejb.SessionBean
- Direct Known Subclasses:
- NoteServiceBeanImpl
- public abstract class NoteServiceBean
- extends java.lang.Object
- implements javax.ejb.SessionBean
- extends java.lang.Object
This bean is a service to Note CRUD operations
A note is a piece of information a user would like to associate with a task, the information can describe anything the user wants and is useful in the context of the task.
The subject is like the subject of an email, it is a brief desciption of the content.
The message is the information.
| Constructor Summary | |
NoteServiceBean()
|
|
| Method Summary | |
abstract 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 |
ejbCreate()
|
void |
ejbPostCreate()
|
abstract NoteDTO[] |
getAllNotes()
This method returns all the notes that can be found, also the ones that have been logically deleted. |
abstract 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. |
abstract TaskDTO |
getTask(NoteDTO note)
Returns the task that is associated to this note. |
abstract 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. |
abstract void |
updateNote(NoteDTO note)
Updates the content of the note, this might either be the subject or the message. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface javax.ejb.SessionBean |
ejbActivate, ejbPassivate, ejbRemove, setSessionContext |
| Constructor Detail |
NoteServiceBean
public NoteServiceBean()
| Method Detail |
createNote
public abstract NoteDTO createNote(NoteDTO note, TaskDTO task) throws NoteException
A note is created by attaching it to its associated task, without a task a note has no meaning.
removeNote
public abstract void removeNote(NoteDTO note) throws NoteException
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.
getNotes
public abstract NoteDTO[] getNotes() throws NoteException
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.
getAllNotes
public abstract NoteDTO[] getAllNotes() throws NoteException
This method returns all the notes that can be found, also the ones that have been logically deleted.
getTask
public abstract TaskDTO getTask(NoteDTO note) throws NoteException
Returns the task that is associated to this note.
updateNote
public abstract void updateNote(NoteDTO note) throws NoteException
Updates the content of the note, this might either be the subject or the message.
ejbCreate
public void ejbCreate()
throws javax.ejb.CreateException
ejbPostCreate
public void ejbPostCreate()
throws javax.ejb.CreateException
|
|||||||||
| Home >> All >> org >> jeteam >> bean >> [ task overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.jeteam.bean.task.NoteServiceBean