org.kuali.kfs.module.cam.document.service.impl
Class AssetLocationServiceImpl

java.lang.Object
  extended by org.kuali.kfs.module.cam.document.service.impl.AssetLocationServiceImpl
All Implemented Interfaces:
AssetLocationService

public class AssetLocationServiceImpl
extends Object
implements AssetLocationService


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.kuali.kfs.module.cam.document.service.AssetLocationService
AssetLocationService.LocationField
 
Constructor Summary
AssetLocationServiceImpl()
           
 
Method Summary
 org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()
           
 org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()
           
protected  boolean isBlank(Map<AssetLocationService.LocationField,String> fieldMap, AssetLocationService.LocationField field, String countryCode)
           
 boolean isOffCampusLocationEmpty(AssetLocation offCampusLocation)
          check if offCampusLocation is empty
 boolean isOffCampusLocationExists(AssetLocation offCampusLocation)
          check if offCampusLocation is holding any location information.
protected  void putError(Map<AssetLocationService.LocationField,String> fieldMap, AssetLocationService.LocationField field, String errorKey, String... errorParameters)
          Convenience method to append the path prefix
protected  String readPropertyValue(org.kuali.rice.kns.bo.BusinessObject currObject, Map<AssetLocationService.LocationField,String> fieldMap, AssetLocationService.LocationField field)
           
 void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)
           
 void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)
           
 void setOffCampusLocation(Asset asset)
          The method will set Off Campus Location from the assetLocations collection
 void updateOffCampusLocation(Asset asset)
          update existing offCampusLocation
protected  boolean validateCapitalAssetLocation(AssetType assetType, Map<AssetLocationService.LocationField,String> fieldMap, String campusCode, String buildingCode, String roomNumber, String subRoomNumber, String contactName, String streetAddress, String cityName, String stateCode, String zipCode, String countryCode, boolean onCampus, boolean offCampus, org.kuali.rice.kns.datadictionary.DataDictionaryEntryBase businessObjectEntry)
           
 boolean validateLocation(Map<AssetLocationService.LocationField,String> fieldMap, org.kuali.rice.kns.bo.BusinessObject businessObject, boolean isCapital, AssetType assetType)
           
protected  boolean validateNonCapitalAssetLocation(Map<AssetLocationService.LocationField,String> fieldMap, String contactName, String streetAddress, String cityName, String stateCode, String zipCode, String countryCode, boolean onCampus, boolean offCampus)
           
protected  boolean validateOffCampusLocation(Map<AssetLocationService.LocationField,String> fieldMap, String contactName, String streetAddress, String cityName, String stateCode, String zipCode, String countryCode)
           
protected  boolean validateOnCampusLocation(Map<AssetLocationService.LocationField,String> fieldMap, AssetType assetType, String campusCode, String buildingCode, String buildingRoomNumber, String subRoomNumber)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AssetLocationServiceImpl

public AssetLocationServiceImpl()
Method Detail

setOffCampusLocation

public void setOffCampusLocation(Asset asset)
Description copied from interface: AssetLocationService
The method will set Off Campus Location from the assetLocations collection

Specified by:
setOffCampusLocation in interface AssetLocationService
See Also:
AssetLocationService.setOffCampusLocation(org.kuali.kfs.module.cam.businessobject.Asset)

updateOffCampusLocation

public void updateOffCampusLocation(Asset asset)
update existing offCampusLocation

Specified by:
updateOffCampusLocation in interface AssetLocationService
See Also:
AssetLocationService.updateOffCampusLocation(org.kuali.kfs.module.cam.businessobject.Asset)

isOffCampusLocationExists

public boolean isOffCampusLocationExists(AssetLocation offCampusLocation)
Description copied from interface: AssetLocationService
check if offCampusLocation is holding any location information.

Specified by:
isOffCampusLocationExists in interface AssetLocationService
See Also:
AssetLocationService.isOffCampusLocationExists(org.kuali.kfs.module.cam.businessobject.AssetLocation)

isOffCampusLocationEmpty

public boolean isOffCampusLocationEmpty(AssetLocation offCampusLocation)
Description copied from interface: AssetLocationService
check if offCampusLocation is empty

Specified by:
isOffCampusLocationEmpty in interface AssetLocationService
See Also:
AssetLocationService.isOffCampusLocationEmpty(org.kuali.kfs.module.cam.businessobject.AssetLocation)

validateLocation

public boolean validateLocation(Map<AssetLocationService.LocationField,String> fieldMap,
                                org.kuali.rice.kns.bo.BusinessObject businessObject,
                                boolean isCapital,
                                AssetType assetType)
Specified by:
validateLocation in interface AssetLocationService
See Also:
org.kuali.kfs.module.cam.document.service.AssetLocationService#validateLocation(java.lang.Object, org.kuali.kfs.module.cam.businessobject.Asset, java.util.Map)

validateCapitalAssetLocation

protected boolean validateCapitalAssetLocation(AssetType assetType,
                                               Map<AssetLocationService.LocationField,String> fieldMap,
                                               String campusCode,
                                               String buildingCode,
                                               String roomNumber,
                                               String subRoomNumber,
                                               String contactName,
                                               String streetAddress,
                                               String cityName,
                                               String stateCode,
                                               String zipCode,
                                               String countryCode,
                                               boolean onCampus,
                                               boolean offCampus,
                                               org.kuali.rice.kns.datadictionary.DataDictionaryEntryBase businessObjectEntry)

validateNonCapitalAssetLocation

protected boolean validateNonCapitalAssetLocation(Map<AssetLocationService.LocationField,String> fieldMap,
                                                  String contactName,
                                                  String streetAddress,
                                                  String cityName,
                                                  String stateCode,
                                                  String zipCode,
                                                  String countryCode,
                                                  boolean onCampus,
                                                  boolean offCampus)

putError

protected void putError(Map<AssetLocationService.LocationField,String> fieldMap,
                        AssetLocationService.LocationField field,
                        String errorKey,
                        String... errorParameters)
Convenience method to append the path prefix


validateOnCampusLocation

protected boolean validateOnCampusLocation(Map<AssetLocationService.LocationField,String> fieldMap,
                                           AssetType assetType,
                                           String campusCode,
                                           String buildingCode,
                                           String buildingRoomNumber,
                                           String subRoomNumber)

validateOffCampusLocation

protected boolean validateOffCampusLocation(Map<AssetLocationService.LocationField,String> fieldMap,
                                            String contactName,
                                            String streetAddress,
                                            String cityName,
                                            String stateCode,
                                            String zipCode,
                                            String countryCode)

isBlank

protected boolean isBlank(Map<AssetLocationService.LocationField,String> fieldMap,
                          AssetLocationService.LocationField field,
                          String countryCode)

readPropertyValue

protected String readPropertyValue(org.kuali.rice.kns.bo.BusinessObject currObject,
                                   Map<AssetLocationService.LocationField,String> fieldMap,
                                   AssetLocationService.LocationField field)

getBusinessObjectService

public org.kuali.rice.kns.service.BusinessObjectService getBusinessObjectService()

setBusinessObjectService

public void setBusinessObjectService(org.kuali.rice.kns.service.BusinessObjectService businessObjectService)

getDataDictionaryService

public org.kuali.rice.kns.service.DataDictionaryService getDataDictionaryService()

setDataDictionaryService

public void setDataDictionaryService(org.kuali.rice.kns.service.DataDictionaryService dataDictionaryService)


Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.