org.kuali.rice.kns.service
Interface InactivationBlockingDetectionService

All Known Implementing Classes:
InactivationBlockingDetectionServiceImpl

public interface InactivationBlockingDetectionService

This service detects whether there are any records that block the inactivation of a particular record

Author:
Kuali Rice Team (rice.collab@kuali.org)

Method Summary
 boolean hasABlockingRecord(BusinessObject blockedBo, InactivationBlockingMetadata inactivationBlockingMetadata)
          Determines whether there is ANY record in the relationship defined by the inactivationBlockingMetadata that prevents inactivation of blockedBo
 Collection<BusinessObject> listAllBlockerRecords(BusinessObject blockedBo, InactivationBlockingMetadata inactivationBlockingMetadata)
          Lists all records in the relationship defined by the inactivationBlockingMetadata that prevents inactivation of blockedBo
 

Method Detail

hasABlockingRecord

boolean hasABlockingRecord(BusinessObject blockedBo,
                           InactivationBlockingMetadata inactivationBlockingMetadata)
Determines whether there is ANY record in the relationship defined by the inactivationBlockingMetadata that prevents inactivation of blockedBo

Parameters:
blockedBo - a BO that is potentially inactivation blocked
inactivationBlockingMetadata -
Returns:
true iff there was a record that blocks the blockedBo using the metadata in inactivationBlockingMetadata

listAllBlockerRecords

Collection<BusinessObject> listAllBlockerRecords(BusinessObject blockedBo,
                                                 InactivationBlockingMetadata inactivationBlockingMetadata)
Lists all records in the relationship defined by the inactivationBlockingMetadata that prevents inactivation of blockedBo

Parameters:
blockedBo - a BO that is potentially inactivation blocked
inactivationBlockingMetadata -
Returns:
true iff there was a record that blocks the blockedBo using the metadata in inactivationBlockingMetadata


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.