|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface RevisionDao
| Method Summary | |
|---|---|
void |
deleteRevision(java.lang.Integer revisionId)
|
void |
deleteRevision(Revision revision)
|
java.util.List<Revision> |
getAllExpiredActiveRevisions()
|
java.util.List<java.lang.Integer> |
getChangedRevisionItemIds(java.lang.Integer revisionId)
Obtains the Revision_Item ids for those items whose associated Documents have been updated from
the immediately preceding Revision. |
java.util.List<java.lang.Integer> |
getNonLatestRevisionItemIds(java.lang.Integer revisionId)
Obtains the Revision_Item ids for those associated with Documents that are not the more recent
versions. |
Revision |
getRevision(java.lang.Integer revisionId)
|
java.util.List<com.jamasoftware.contour.review.dto.RevisionDocumentTypeDTO> |
getRevisionDocumentTypes(Revision revision)
|
java.util.List<com.jamasoftware.contour.review.dto.RevisionDocumentTypeDTO> |
getRevisionDocumentTypesIncludingLayoutFields(Revision revision,
com.jamasoftware.contour.service.assembler.DocumentTypeAssembler documentTypeAssembler)
|
java.util.List<java.lang.String> |
getRevisionEmailAddresses(java.lang.Integer revisionId)
Gets a list of the e-mail addresses for everyone in the review, including reviewers, approvers and author(s). |
java.util.List<Revision> |
getRevisionsInReview(java.lang.Integer reviewId)
|
java.util.List<Revision> |
getRevisionsToNotify()
|
java.lang.Integer |
getVersionIdFromPreviousRevision(java.lang.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.review.dto.RevisionStatsDTO revisionStats)
Populates the numbers of the RevisionStatsDTO in an efficient way |
Revision |
saveRevision(Revision revision)
|
| Method Detail |
|---|
Revision getRevision(java.lang.Integer revisionId)
java.util.List<Revision> getRevisionsInReview(java.lang.Integer reviewId)
java.util.List<Revision> getAllExpiredActiveRevisions()
Revision saveRevision(Revision revision)
void deleteRevision(java.lang.Integer revisionId)
java.util.List<com.jamasoftware.contour.review.dto.RevisionDocumentTypeDTO> getRevisionDocumentTypes(Revision revision)
java.util.List<com.jamasoftware.contour.review.dto.RevisionDocumentTypeDTO> getRevisionDocumentTypesIncludingLayoutFields(Revision revision,
com.jamasoftware.contour.service.assembler.DocumentTypeAssembler documentTypeAssembler)
void populateNumbers(com.jamasoftware.contour.review.dto.RevisionStatsDTO revisionStats)
RevisionStatsDTO in an efficient way
revisionStats - The stats to populate (must have a non-null id)java.util.List<Revision> getRevisionsToNotify()
java.util.List<java.lang.Integer> getChangedRevisionItemIds(java.lang.Integer revisionId)
Revision_Item ids for those items whose associated Documents have been updated from
the immediately preceding Revision. If there are no previous Revisions, this will be an empty
list.
revisionId - The id of a Revision]
List of Revision_Item ids that have been updated since the last Revisionjava.lang.Integer getVersionIdFromPreviousRevision(java.lang.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 Revisionjava.util.List<java.lang.Integer> getNonLatestRevisionItemIds(java.lang.Integer revisionId)
Revision_Item ids for those associated with Documents that are not the more recent
versions.
revisionId - The id of a Revision
Revision_Itemsvoid deleteRevision(Revision revision)
revision - The Revision to deletejava.util.List<java.lang.String> getRevisionEmailAddresses(java.lang.Integer revisionId)
revisionId - id of a Revision
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||