org.kuali.ole.service
Class OleLocationConverterService

java.lang.Object
  extended by org.kuali.ole.service.OleLocationConverterService

public class OleLocationConverterService
extends Object

OleLocationConverterService generates list of location to perform ole location operation.


Constructor Summary
OleLocationConverterService()
           
 
Method Summary
 OleLocationGroup buildLocation(String fileName)
           
 OleLocationGroup buildLocationFromFileContent(String fileContent)
           
 void createOleLocation(OleLocationIngest oleLocation)
          This method creates location using oleLocation.
 List<OleLocationIngest> getCreateLocationList()
          Gets the createLocationList attribute value.
 OleLocationObjectGeneratorFromXML getOleLocationObjectGeneratorFromXML()
          Gets the oleLocationObjectGeneratorFromXML attribute value.
 OleLocationService getOleLocationService()
          Gets the oleLocationService attribute value.
 List<OleLocationIngest> getUpdateLocationList()
          Gets the updateLocationList attribute value.
 boolean isLocationExist(OleLocationIngest oleLocationIngest)
          This method checks Location using oleLocationIngest.
 boolean isLocationLevelCodeExist(OleLocationIngest oleLocationIngest)
          This method checks LocationLevelCode using oleLocationIngest.
 boolean isParentLocationExist(OleLocationIngest oleLocationIngest)
          This method checks existence of ParentLocation using oleLocationIngest.
 String persistLocationFromFileContent(String fileContent, String fileName)
          This method persist business object using xml file.
 void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
          Sets the businessObjectService attribute value.
 void setCreateLocationList(List<OleLocationIngest> createLocationList)
          Sets the createLocationList attribute value.
 void setOleLocationObjectGeneratorFromXML(OleLocationObjectGeneratorFromXML oleLocationObjectGeneratorFromXML)
          Sets the oleLocationObjectGeneratorFromXML attribute value.
 void setOleLocationService(OleLocationService oleLocationService)
          Sets the oleLocationService attribute value.
 void setUpdateLocationList(List<OleLocationIngest> updateLocationList)
          Sets the updateLocationList attribute value.
 void updateOleLocation(OleLocationIngest oleLocation)
          This method updates location using oleLocation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OleLocationConverterService

public OleLocationConverterService()
Method Detail

setBusinessObjectService

public void setBusinessObjectService(org.kuali.rice.krad.service.BusinessObjectService businessObjectService)
Sets the businessObjectService attribute value.

Parameters:
businessObjectService -

getOleLocationService

public OleLocationService getOleLocationService()
Gets the oleLocationService attribute value.

Returns:
oleLocationService.

setOleLocationService

public void setOleLocationService(OleLocationService oleLocationService)
Sets the oleLocationService attribute value.

Parameters:
oleLocationService -

getCreateLocationList

public List<OleLocationIngest> getCreateLocationList()
Gets the createLocationList attribute value.

Returns:
createLocationList

setCreateLocationList

public void setCreateLocationList(List<OleLocationIngest> createLocationList)
Sets the createLocationList attribute value.

Parameters:
createLocationList -

getUpdateLocationList

public List<OleLocationIngest> getUpdateLocationList()
Gets the updateLocationList attribute value.

Returns:
updateLocationList

setUpdateLocationList

public void setUpdateLocationList(List<OleLocationIngest> updateLocationList)
Sets the updateLocationList attribute value.

Parameters:
updateLocationList -

persistLocationFromFileContent

public String persistLocationFromFileContent(String fileContent,
                                             String fileName)
                                      throws IOException,
                                             URISyntaxException
This method persist business object using xml file.

Parameters:
fileContent -
fileName -
Returns:
String
Throws:
IOException
URISyntaxException

isLocationLevelCodeExist

public boolean isLocationLevelCodeExist(OleLocationIngest oleLocationIngest)
This method checks LocationLevelCode using oleLocationIngest.

Parameters:
oleLocationIngest -
Returns:
boolean

isParentLocationExist

public boolean isParentLocationExist(OleLocationIngest oleLocationIngest)
This method checks existence of ParentLocation using oleLocationIngest.

Parameters:
oleLocationIngest -
Returns:
boolean

isLocationExist

public boolean isLocationExist(OleLocationIngest oleLocationIngest)
This method checks Location using oleLocationIngest.

Parameters:
oleLocationIngest -
Returns:
boolean

createOleLocation

public void createOleLocation(OleLocationIngest oleLocation)
This method creates location using oleLocation.

Parameters:
oleLocation -

updateOleLocation

public void updateOleLocation(OleLocationIngest oleLocation)
This method updates location using oleLocation.

Parameters:
oleLocation -

buildLocationFromFileContent

public OleLocationGroup buildLocationFromFileContent(String fileContent)
                                              throws URISyntaxException,
                                                     IOException
Parameters:
fileContent -
Returns:
OleLocationGroup
Throws:
URISyntaxException
IOException

buildLocation

public OleLocationGroup buildLocation(String fileName)
                               throws URISyntaxException,
                                      IOException,
                                      SAXException
Parameters:
fileName -
Returns:
OleLocationGroup/null
Throws:
URISyntaxException
IOException
SAXException

getOleLocationObjectGeneratorFromXML

public OleLocationObjectGeneratorFromXML getOleLocationObjectGeneratorFromXML()
Gets the oleLocationObjectGeneratorFromXML attribute value.

Returns:
oleLocationObjectGeneratorFromXML.

setOleLocationObjectGeneratorFromXML

public void setOleLocationObjectGeneratorFromXML(OleLocationObjectGeneratorFromXML oleLocationObjectGeneratorFromXML)
Sets the oleLocationObjectGeneratorFromXML attribute value.

Parameters:
oleLocationObjectGeneratorFromXML -


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