org.kuali.rice.krad.service.impl
Class InactivationBlockingDetectionServiceImpl

java.lang.Object
  extended by 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)

Field Summary
protected  BusinessObjectService businessObjectService
           
protected  DataObjectMetaDataService dataObjectMetaDataService
           
 
Constructor Summary
InactivationBlockingDetectionServiceImpl()
           
 
Method Summary
protected  Map<String,String> buildInactivationBlockerQueryMap(BusinessObject blockedBo, InactivationBlockingMetadata inactivationBlockingMetadata)
           
 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.
 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.
 void setBusinessObjectService(BusinessObjectService businessObjectService)
           
 void setDataObjectMetaDataService(DataObjectMetaDataService dataObjectMetaDataService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

dataObjectMetaDataService

protected DataObjectMetaDataService dataObjectMetaDataService

businessObjectService

protected BusinessObjectService businessObjectService
Constructor Detail

InactivationBlockingDetectionServiceImpl

public InactivationBlockingDetectionServiceImpl()
Method Detail

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 MutableInactivatable might not have the active field, for example instances of InactivatableFromTo

Specified by:
listAllBlockerRecords in 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 MutableInactivatable might not have the active field, for example instances of InactivatableFromTo

Specified by:
hasABlockingRecord in 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.