org.kuali.rice.krad.service.impl
Class InactivationBlockingDetectionServiceImpl
java.lang.Object
   org.kuali.rice.krad.service.impl.InactivationBlockingDetectionServiceImpl
org.kuali.rice.krad.service.impl.InactivationBlockingDetectionServiceImpl
- All Implemented Interfaces: 
- InactivationBlockingDetectionService
- @Transactional
public class InactivationBlockingDetectionServiceImpl 
- extends Object- implements InactivationBlockingDetectionService
Performs checking of inactivation blocking
- Author:
- Kuali Rice Team (rice.collab@kuali.org)
 
 
 
| Methods inherited from class java.lang.Object | 
| clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
dataObjectMetaDataService
protected DataObjectMetaDataService dataObjectMetaDataService
businessObjectService
protected BusinessObjectService businessObjectService
InactivationBlockingDetectionServiceImpl
public InactivationBlockingDetectionServiceImpl()
listAllBlockerRecords
public Collection<BusinessObject> listAllBlockerRecords(BusinessObject blockedBo,
                                                        InactivationBlockingMetadata inactivationBlockingMetadata)
- Note we are checking the active getting after retrieving potential blocking records instead of setting criteria on the
 active field. This is because some implementations of MutableInactivatablemight not have the active field, for example
 instances ofInactivatableFromTo
 
- 
- Specified by:
- listAllBlockerRecordsin interface- InactivationBlockingDetectionService
 
- 
- Parameters:
- blockedBo- a BO that is potentially inactivation blocked
- Returns:
- true iff there was a record that blocks the blockedBo using the metadata in inactivationBlockingMetadata
- See Also:
- org.kuali.rice.krad.service.InactivationBlockingDetectionService#listAllBlockerRecords(org.kuali.rice.krad.datadictionary.InactivationBlockingDefinition),- MutableInactivatable
 
hasABlockingRecord
public boolean hasABlockingRecord(BusinessObject blockedBo,
                                  InactivationBlockingMetadata inactivationBlockingMetadata)
- Note we are checking the active getting after retrieving potential blocking records instead of setting criteria on the
 active field. This is because some implementations of MutableInactivatablemight not have the active field, for example
 instances ofInactivatableFromTo
 
- 
- Specified by:
- hasABlockingRecordin interface- InactivationBlockingDetectionService
 
- 
- Parameters:
- blockedBo- a BO that is potentially inactivation blocked
- Returns:
- true iff there was a record that blocks the blockedBo using the metadata in inactivationBlockingMetadata
- See Also:
- InactivationBlockingDetectionService.hasABlockingRecord(org.kuali.rice.krad.bo.BusinessObject,
      org.kuali.rice.krad.datadictionary.InactivationBlockingMetadata),- MutableInactivatable
 
buildInactivationBlockerQueryMap
protected Map<String,String> buildInactivationBlockerQueryMap(BusinessObject blockedBo,
                                                              InactivationBlockingMetadata inactivationBlockingMetadata)
- 
 
- 
 
setDataObjectMetaDataService
public void setDataObjectMetaDataService(DataObjectMetaDataService dataObjectMetaDataService)
- 
 
- 
 
setBusinessObjectService
public void setBusinessObjectService(BusinessObjectService businessObjectService)
- 
 
- 
 
Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.