Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
LPS-26857 Source formatting
  • Loading branch information
brianchandotcom committed Apr 25, 2012
1 parent 15cf40f commit 3209446
Showing 1 changed file with 9 additions and 8 deletions.
Expand Up @@ -1213,28 +1213,29 @@ public DLFileEntry updateStatus(
// File versions

if (oldStatus == WorkflowConstants.STATUS_IN_TRASH) {
List<DLFileVersion> trashedFileVersions =
List<DLFileVersion> trashedDLFileVersions =
dlFileVersionPersistence.findByF_S(
dlFileEntry.getFileEntryId(),
WorkflowConstants.STATUS_IN_TRASH);

for (DLFileVersion trashedFileVersion : trashedFileVersions) {
trashedFileVersion.setStatus(WorkflowConstants.STATUS_APPROVED);
for (DLFileVersion trashedDLFileVersion : trashedDLFileVersions) {
trashedDLFileVersion.setStatus(
WorkflowConstants.STATUS_APPROVED);

dlFileVersionPersistence.update(trashedFileVersion, false);
dlFileVersionPersistence.update(trashedDLFileVersion, false);
}
}
else if (status == WorkflowConstants.STATUS_IN_TRASH) {
List<DLFileVersion> approvedFileVersions =
List<DLFileVersion> approvedDLFileVersions =
dlFileVersionPersistence.findByF_S(
dlFileEntry.getFileEntryId(),
WorkflowConstants.STATUS_APPROVED);

for (DLFileVersion approvedFileVersion : approvedFileVersions) {
approvedFileVersion.setStatus(
for (DLFileVersion approvedDLFileVersion : approvedDLFileVersions) {
approvedDLFileVersion.setStatus(
WorkflowConstants.STATUS_IN_TRASH);

dlFileVersionPersistence.update(approvedFileVersion, false);
dlFileVersionPersistence.update(approvedDLFileVersion, false);
}
}

Expand Down

0 comments on commit 3209446

Please sign in to comment.