Package mc.core.model.project
Class Project
java.lang.Object
mc.core.model.base.EntityBase
mc.core.model.base.ComplexEntity
mc.core.model.project.Project
- All Implemented Interfaces:
Serializable,IBaseEntity,ICollectionManaged,ICoreEntity,IEntity,IRightManaged,ISortableEntity
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class mc.core.model.base.ComplexEntity
ComplexEntity.ComplexEntityComparator, ComplexEntity.ParamNested classes/interfaces inherited from class mc.core.model.base.EntityBase
EntityBase.EntityComparator -
Field Summary
Fields inherited from class mc.core.model.base.EntityBase
INTDESC_COLUMN_LENGTH -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddProjectPrincipal(ProjectPrincipal projectPrincipal) voidaddProjectResource(ProjectResource projectResource) give the maximum list of RightTypes that apply for this class.booleantype of ComplexEntity must be attached if existsintgetProjectGroup(UserGroup group) getProjectPrincipal(Principal principal) getProjectPrincipals(ProjectPrincipal.ProjectPrincipalRole principalRole) if principalRole == null return all project principalsgetProjectResources(String resourceEntityClass) return all projectResources with given resourceEntityClassgetProjectResources(String resourceEntityClass, boolean isActive) return all projectResources with given resourceEntityClass and active flaggetProjectUser(User user) getType()for ComplexEntity contract.booleanisEditAllowed(User user) TODO: check permissions outside based on regular MC object permissionsbooleanforICollectionManagedcontract.voidsetDatePlannedEnd(Calendar plannedEndDate) voidsetDateRealEnd(Calendar realEndDate) voidsetDateStart(Calendar startDate) voidsetPeriodInDays(int periodInDays) voidsetProjectCategory(Project.ProjectCategory projectCategory) voidsetProjectPrincipals(List<ProjectPrincipal> projectPrincipals) voidsetProjectResources(List<ProjectResource> projectResources) voidsetProjectTasks(List<ProjectTask> projectTasks) voidMethods inherited from class mc.core.model.base.ComplexEntity
addState, getAttributes, getCollections, getCollections, getCollectionToCEs, getDateCreated, getDateModified, getEntityData, getEntityDatas, getEntityFilters, getEntityOwner, getExternalKey, getFileId, getFilename, getId, getInternalDescription, getLifeCycleFlag, getMasterId, getMasterLocale, getMemos, getParameter, getParameters, getParameterValue, getPermissions, getRelatedEntities, getState, getStateGroupTypes, getStates, getStatesToRemove, getVersions, getWatches, isArchived, isDeleted, isRightInheritanceDisabled, isSecondaryCollection, isVisible, setAttributes, setCollectionToCEs, setDateCreated, setDateModified, setEntityDatas, setEntityFilters, setEntityOwner, setExternalKey, setFileId, setFilename, setId, setLifeCycleFlag, setMasterId, setMasterLocale, setMemos, setParameters, setPermissions, setRelatedEntities, setRightInheritanceDisabled, setStates, setType, setVersions, setWatchesMethods inherited from class mc.core.model.base.EntityBase
equals, getCollection, getDescription, getDescription, getFlag, getIsSystem, getName, getName, getNamespace, getPrio, hashCode, setCollection, setDescription, setDescription, setFlag, setInternalDescription, setIsSystem, setName, setName, setNamespace, setPrio, toStringMethods inherited from interface mc.core.model.base.IBaseEntity
getId, setIdMethods inherited from interface mc.core.model.base.ICollectionManaged
getCollection, setCollectionMethods inherited from interface mc.core.model.base.IEntity
getDescription, getInternalDescription, getName, getPrio, setInternalDescriptionMethods inherited from interface mc.core.model.base.IRightManaged
getPermissions
-
Constructor Details
-
Project
public Project()default constructor -
Project
copy constructor
-
-
Method Details
-
getProjectCategory
-
setProjectCategory
-
getProjectTasks
-
setProjectTasks
-
getProjectPrincipals
-
setProjectPrincipals
-
addProjectPrincipal
-
getProjectResources
-
setProjectResources
-
addProjectResource
-
getDateStart
-
setDateStart
-
getDatePlannedEnd
-
setDatePlannedEnd
-
getDateRealEnd
-
setDateRealEnd
-
getPeriodInDays
public int getPeriodInDays() -
setPeriodInDays
public void setPeriodInDays(int periodInDays) -
getStateGroupType
-
setStateGroupType
-
getType
for ComplexEntity contract. returns always null. projects have no configured type.- Specified by:
getTypein interfaceICollectionManaged- Specified by:
getTypein classComplexEntity
-
isRootPerType
public boolean isRootPerType()forICollectionManagedcontract. returns always false as Project is not type dependent.- Specified by:
isRootPerTypein interfaceICollectionManaged
-
getFirstLevelProjectTasks
-
getProjectOwner
-
isEditAllowed
TODO: check permissions outside based on regular MC object permissions -
getProjectPrincipal
-
getProjectPrincipals
public List<ProjectPrincipal> getProjectPrincipals(ProjectPrincipal.ProjectPrincipalRole principalRole) if principalRole == null return all project principals -
getProjectUser
- Returns:
- Principal or
null.
-
getProjectGroup
-
getProjectResources
return all projectResources with given resourceEntityClass- Parameters:
resourceEntityClass- may be null- Returns:
- all projectResources of resourceEntityClass, or all projectResources if resourceEntityClass is null
-
getProjectResources
return all projectResources with given resourceEntityClass and active flag- Parameters:
resourceEntityClass- may be nullisActive-- Returns:
- all projectResources of resourceEntityClass and active flag, or all projectResources if resourceEntityClass is null
-
getAllowedRightTypes
Description copied from interface:IRightManagedgive the maximum list of RightTypes that apply for this class.- Specified by:
getAllowedRightTypesin interfaceIRightManaged- Returns:
- array of enum RightType
-
getHasObjectRights
public boolean getHasObjectRights()Description copied from class:ComplexEntitytype of ComplexEntity must be attached if exists- Specified by:
getHasObjectRightsin interfaceIRightManaged- Overrides:
getHasObjectRightsin classComplexEntity- Returns:
- true if object rights are configured for this ComplexEntity
-