org.kuali.kfs.module.purap.dataaccess.impl
Class ImageDaoNet
java.lang.Object
org.springframework.dao.support.DaoSupport
org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport
org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
org.kuali.kfs.module.purap.dataaccess.impl.ImageDaoNet
- All Implemented Interfaces:
- ImageDao, org.kuali.rice.kns.dao.PlatformAwareDao, org.springframework.beans.factory.InitializingBean
public class ImageDaoNet
- extends org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb
- implements ImageDao
OJB Implementation of ImageDao.
Fields inherited from class org.springframework.dao.support.DaoSupport |
logger |
Method Summary |
String |
getContractManagerImage(String key,
Integer contractManagerId,
String location)
Get the contract manager signature image. |
protected String |
getFile(String prefix,
String fileKey,
String key,
String extension,
String location)
Copy a file from a web location to the local system. |
String |
getLogo(String key,
String campusCode,
String location)
Get the campus logo image. |
String |
getPurchasingDirectorImage(String key,
String campusCode,
String location)
Get the purchasing director signature image. |
void |
setConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService configurationService)
|
void |
setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
|
Methods inherited from class org.kuali.rice.kns.dao.impl.PlatformAwareDaoBaseOjb |
getDbPlatform, setDbPlatform |
Methods inherited from class org.springmodules.orm.ojb.support.PersistenceBrokerDaoSupport |
checkDaoConfig, convertOjbAccessException, createPersistenceBrokerTemplate, getJcdAlias, getPersistenceBroker, getPersistenceBrokerTemplate, releasePersistenceBroker, setJcdAlias, setPersistenceBrokerTemplate |
Methods inherited from class org.springframework.dao.support.DaoSupport |
afterPropertiesSet, initDao |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ImageDaoNet
public ImageDaoNet()
setParameterService
public void setParameterService(org.kuali.rice.kns.service.ParameterService parameterService)
setConfigurationService
public void setConfigurationService(org.kuali.rice.kns.service.KualiConfigurationService configurationService)
getPurchasingDirectorImage
public String getPurchasingDirectorImage(String key,
String campusCode,
String location)
- Description copied from interface:
ImageDao
- Get the purchasing director signature image. This will get the image from webdav and copy it to a temp directory.
- Specified by:
getPurchasingDirectorImage
in interface ImageDao
- Parameters:
key
- - Key for use in filename to make it uniquecampusCode
- - Campus code for imagelocation
- - location of where image resides
- Returns:
- - Full path on the local box for image file name
- See Also:
ImageDao.getPurchasingDirectorImage(java.lang.String, java.lang.String, java.lang.String)
getContractManagerImage
public String getContractManagerImage(String key,
Integer contractManagerId,
String location)
- Description copied from interface:
ImageDao
- Get the contract manager signature image. This will get the image from webdav and copy it to a temp directory.
- Specified by:
getContractManagerImage
in interface ImageDao
- Parameters:
key
- - Key for use in filename to make it uniquelocation
- - location of where image resides
- Returns:
- - Full path on the local box for image file name
- See Also:
ImageDao.getContractManagerImage(java.lang.String, java.lang.Integer, java.lang.String)
getLogo
public String getLogo(String key,
String campusCode,
String location)
- Description copied from interface:
ImageDao
- Get the campus logo image. This will get the image from webdav and copy it to a temp directory.
- Specified by:
getLogo
in interface ImageDao
- Parameters:
key
- - Key for use in filename to make it uniquecampusCode
- - Campus code for imagelocation
- - location of where image resides
- Returns:
- - Full path on the local box for image file name
- See Also:
ImageDao.getLogo(java.lang.String, java.lang.String, java.lang.String)
getFile
protected String getFile(String prefix,
String fileKey,
String key,
String extension,
String location)
- Copy a file from a web location to the local system.
- Parameters:
prefix
- - Prefix for the file namefileKey
- - File key for filekey
- - Unique key for the filelocation
- - location of file
- Returns:
- - location to copied file
Copyright © 2005-2012 The Kuali Foundation. All Rights Reserved.