com.intland.codebeamer.persistence.dto.base
Interface ProjectAwareDto
- All Superinterfaces:
- BaseDto, java.io.Serializable
- All Known Implementing Classes:
- ArtifactApprovalWorkflowDto, ArtifactDto, ArtifactsStatsDto, ArtifactStatusDto, BuildDto, BuildStatsDto, CalendarDto, CalendarEntryDto, ChatStatsDto, DailyProjectSourceCodeStatsDto, DailyProjectStatsDto, ForumDto, ForumPostDto, InboxDto, JoinProjectRequestDto, ProjectPreferencesDto, ReadOnlyApprovalWorkflowDto, ReadOnlyTrackerDto, ScmChangeSetCountDto, ScmChangeSetDto, ScmChangeSetNotificationDto, ScmUserChangeSetDto, SourceCodeStatsDto, SourceDirectoryDto, SourceFileDto, SourceFilesStatsDto, TrackerDto, TrackerItemAttachmentDto, TrackerItemCommentDto, TrackerItemDto, UserProjectItemStatsDto, UserTrackerItemsGroupedByProjectDto, WikiPageDto
public interface ProjectAwareDto
- extends BaseDto
All DTO classes with project property must implement this.
In those DTO classes, that are "indirectly (transitively) project aware"
(e.g. TrackerItemDto
, the recommended implementation is:
- the getter is fail-safe and returns the project from the "container" object
- the setter throws
UnsupportedOperationException
Note that this can't be an abstract class, because an abstract
class wouldn't fit the DTO class hierarchy: there are DTO classes
with name but without project, and without name but with project.
getProject
ProjectDto getProject()
setProject
void setProject(ProjectDto project)
Copyright © 2006-2009 Intland Software. All rights reserved.