Package mc.core.model.project
Class ProjectResource
java.lang.Object
mc.core.model.project.ProjectResource
- All Implemented Interfaces:
Serializable,IBaseEntity,ICoreEntity,IProjectResource
link entity to create m:n assignment from project to resource data, optionally storing additional information.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptiondefault constructorProjectResource(Project project, ComplexEntity entity) constructor with mandatory members -
Method Summary
Modifier and TypeMethodDescriptionbooleanlonggetId()forIProjectResourcecontract.inthashCode()booleanisActive()voidsetActive(boolean active) voidsetEntity(ComplexEntity entity) voidsetEntityClass(String entityClass) voidsetId(long id) voidsetProject(Project project) voidsetTaskResources(List<ProjectTaskResource> projectTaskResources) toString()
-
Constructor Details
-
ProjectResource
public ProjectResource()default constructor -
ProjectResource
constructor with mandatory members
-
-
Method Details
-
getId
public long getId()- Specified by:
getIdin interfaceIBaseEntity
-
setId
public void setId(long id) - Specified by:
setIdin interfaceIBaseEntity
-
getProject
- Specified by:
getProjectin interfaceIProjectResource- Returns:
- project, never null
-
setProject
-
getEntity
- Specified by:
getEntityin interfaceIProjectResource- Returns:
- entity, never null
-
setEntity
-
getEntityClass
- Specified by:
getEntityClassin interfaceIProjectResource- Returns:
- entityClass of entity, never null
-
setEntityClass
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceIProjectResource- Returns:
- active flag
-
setActive
public void setActive(boolean active) -
getTaskResources
-
setTaskResources
-
getProjectTasks
forIProjectResourcecontract.- Specified by:
getProjectTasksin interfaceIProjectResource- Returns:
- project task list, may be empty if project resource is not a task resource
-
equals
-
hashCode
public int hashCode() -
toString
-