org.kuali.rice.krad.service.impl
Class InactivationBlockingDetectionServiceImpl
java.lang.Object
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
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.