public class MaintenanceUtils extends Object
Constructor and Description |
---|
MaintenanceUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
checkDocumentBlockingDocumentId(String blockingDocId,
boolean throwExceptionIfLocked) |
static void |
checkForLockingDocument(MaintenanceDocument document,
boolean throwExceptionIfLocked)
Determines if there is another maintenance document that has a lock on the same key as the given document, and
therefore will block the maintenance document from being submitted
|
protected static void |
cleanOrphanLocks(String lockingDocumentNumber,
Exception workflowException) |
static boolean |
isMaintenanceDocumentCreatingNewRecord(String maintenanceAction)
Determines if the maintenance document action creates a new record.
|
public MaintenanceUtils()
public static void checkForLockingDocument(MaintenanceDocument document, boolean throwExceptionIfLocked)
document
- - maintenance document instance to check locking forthrowExceptionIfLocked
- - indicates if an exception should be thrown in the case of found locking document,
if false only an error will be addedpublic static void checkDocumentBlockingDocumentId(String blockingDocId, boolean throwExceptionIfLocked)
protected static void cleanOrphanLocks(String lockingDocumentNumber, Exception workflowException)
public static boolean isMaintenanceDocumentCreatingNewRecord(String maintenanceAction)
When taking an action on a maintenance document, some actions cause the creation of a new record, while some don't. For example, editing does not create a record, but copying does.
maintenanceAction
- Copyright © 2005–2015 The Kuali Foundation. All rights reserved.