public interface RevisionDao
extends com.jamasoftware.contour.api.review.dao.RevisionDao
Modifier and Type | Method and Description |
---|---|
void |
deleteRevision(Revision revision) |
List<Revision> |
getAllExpiredActiveRevisions() |
List<Integer> |
getChangedRevisionItemIds(Integer revisionId)
Obtains the
Revision_Item ids for those items whose associated Document s have been updated from
the immediately preceding Revision . |
List<Integer> |
getLatestDocumentIdsForRevision(Integer revisionId) |
List<Integer> |
getNonLatestRevisionItemIds(Integer revisionId)
Obtains the
Revision_Item ids for those associated with Document s that are not the more recent
versions. |
List<com.jamasoftware.contour.api.review.dto.RevisionDocumentTypeDTO> |
getRevisionDocumentTypesIncludingLayoutFields(Revision revision,
com.jamasoftware.contour.service.assembler.DocumentTypeAssembler documentTypeAssembler) |
List<String> |
getRevisionEmailAddresses(Integer revisionId)
Gets a list of the e-mail addresses for everyone in the review, including reviewers, approvers and author(s).
|
List<Revision> |
getRevisionsForItemId(Integer itemId) |
List<Integer> |
getRevisionsForReviews(List<Integer> reviewIds) |
List<Revision> |
getRevisionsToNotify() |
Integer |
getVersionIdFromPreviousRevision(Integer revisionItemId)
For the given
Revision_Item , this method gets the Revision_Item from the Revision
immediately prior to the one that the passed in Revision_Item is associated with, and then returns the
ContourItem associated with it. |
void |
populateNumbers(com.jamasoftware.contour.api.review.dto.RevisionStatsDTO revisionStats)
Populates the numbers of the
RevisionStatsDTO in an efficient way |
Revision |
saveRevision(Revision revision) |
List<com.jamasoftware.contour.api.review.dto.RevisionDocumentTypeDTO> getRevisionDocumentTypesIncludingLayoutFields(Revision revision, com.jamasoftware.contour.service.assembler.DocumentTypeAssembler documentTypeAssembler)
void populateNumbers(com.jamasoftware.contour.api.review.dto.RevisionStatsDTO revisionStats)
RevisionStatsDTO
in an efficient wayrevisionStats
- The stats to populate (must have a non-null id)List<Integer> getChangedRevisionItemIds(Integer revisionId)
Revision_Item
ids for those items whose associated Document
s have been updated from
the immediately preceding Revision
. If there are no previous Revision
s, this will be an empty
list.revisionId
- The id of a Revision
]List
of Revision_Item
ids that have been updated since the last Revision
Integer getVersionIdFromPreviousRevision(Integer revisionItemId)
Revision_Item
, this method gets the Revision_Item
from the Revision
immediately prior to the one that the passed in Revision_Item
is associated with, and then returns the
ContourItem
associated with it. The idea being that the user of this method expects that such a
ContourItem
will be different than the ContourItem
associated with the given
Revision_Item
already. The user may know this by, for example, examining the ids given by
getChangedRevisionItemIds(Integer)
revisionItemId
- The id of a Revision_Item
ContourItem
associated with the corresponding Revision_Item
from the immediately
previous Revision
List<Integer> getNonLatestRevisionItemIds(Integer revisionId)
Revision_Item
ids for those associated with Document
s that are not the more recent
versions.revisionId
- The id of a Revision
Revision_Item
sList<String> getRevisionEmailAddresses(Integer revisionId)
revisionId
- id of a Revision
Copyright (c) 2013-2014 Jama Software, Inc. All Rights Reserved.