java.lang.Object
org.jeteam.bean.project.ProjectBean
- All Implemented Interfaces:
- javax.ejb.EnterpriseBean, javax.ejb.EntityBean, java.io.Serializable
- Direct Known Subclasses:
- ProjectBeanImpl
- public abstract class ProjectBean
- extends java.lang.Object
- implements javax.ejb.EntityBean
A project is one of the central entities in the system, in fact
everything is built around it.
Users can be assigned to work on a project, this gives them the
right to work on related tasks. However, it is only possible to
assign users that have a valid role. Users that do not have that
role are unable to work on the project.
Users create tasks for a project and can update the current
status of the project, depending on the individual statusses of
the different tasks it is possible to derive a general completion
percentage on the current project status.
The created and deleted attributes indicate
the date of creation and (logical) removal respectively. By
verifying whether the optional deleted attribute is
null one can know if the project is still alive or not,
in case the deleted attribute contains a date this means
the project has been removed and working on it should not be
possible anymore.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProjectBean
public ProjectBean()
getId
public abstract java.lang.String getId()
setId
public abstract void setId(java.lang.String newValue)
getName
public abstract java.lang.String getName()
setName
public abstract void setName(java.lang.String newValue)
getDescription
public abstract java.lang.String getDescription()
setDescription
public abstract void setDescription(java.lang.String newValue)
getCreated
public abstract java.util.Date getCreated()
setCreated
public abstract void setCreated(java.util.Date newValue)
getDeleted
public abstract java.util.Date getDeleted()
setDeleted
public abstract void setDeleted(java.util.Date newValue)
getLastUpdated
public abstract java.util.Date getLastUpdated()
setLastUpdated
public abstract void setLastUpdated(java.util.Date newValue)
getUsers
public abstract java.util.Collection getUsers()
setUsers
public abstract void setUsers(java.util.Collection users)
getTasks
public abstract java.util.Collection getTasks()
setTasks
public abstract void setTasks(java.util.Collection tasks)
getRoles
public abstract java.util.Collection getRoles()
setRoles
public abstract void setRoles(java.util.Collection roles)
getStatus
public abstract org.jeteam.bean.config.StatusLocal getStatus()
setStatus
public abstract void setStatus(org.jeteam.bean.config.StatusLocal status)
getProjectData
public org.jeteam.bean.project.ProjectData getProjectData()
setProjectData
public void setProjectData(org.jeteam.bean.project.ProjectData value)
ejbCreate
public java.lang.String ejbCreate(java.lang.String name,
java.lang.String description,
java.util.Date created,
java.util.Date deleted,
java.util.Date lastUpdated)
throws javax.ejb.CreateException
ejbPostCreate
public void ejbPostCreate(java.lang.String name,
java.lang.String description,
java.util.Date created,
java.util.Date deleted,
java.util.Date lastUpdated)
throws javax.ejb.CreateException
ejbCreate
public java.lang.String ejbCreate(org.jeteam.bean.project.ProjectData data)
throws javax.ejb.CreateException
ejbPostCreate
public void ejbPostCreate(org.jeteam.bean.project.ProjectData data)
throws javax.ejb.CreateException
ejbRemove
public void ejbRemove()
throws javax.ejb.RemoveException
- Specified by:
ejbRemove in interface javax.ejb.EntityBean