01: /*
02: * Copyright 2007 The Kuali Foundation.
03: *
04: * Licensed under the Educational Community License, Version 1.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.opensource.org/licenses/ecl1.php
09: *
10: * Unless required by applicable law or agreed to in writing, software
11: * distributed under the License is distributed on an "AS IS" BASIS,
12: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13: * See the License for the specific language governing permissions and
14: * limitations under the License.
15: */
16: package org.kuali.module.purap.dao;
17:
18: /**
19: * Image DAO Interface.
20: */
21: public interface ImageDao {
22:
23: /**
24: * Get the purchasing director signature image. This will get the image from webdav and copy it to a temp directory.
25: *
26: * @param key - Key for use in filename to make it unique
27: * @param campusCode - Campus code for image
28: * @param location - location of where image resides
29: * @return - Full path on the local box for image file name
30: */
31: public String getPurchasingDirectorImage(String key,
32: String campusCode, String location);
33:
34: /**
35: * Get the contract manager signature image. This will get the image from webdav and copy it to a temp directory.
36: *
37: * @param key - Key for use in filename to make it unique
38: * @param campusCode - Contract manager ID for image
39: * @param location - location of where image resides
40: * @return - Full path on the local box for image file name
41: */
42: public String getContractManagerImage(String key,
43: Integer contractManagerId, String location);
44:
45: /**
46: * Get the campus logo image. This will get the image from webdav and copy it to a temp directory.
47: *
48: * @param key - Key for use in filename to make it unique
49: * @param campusCode - Campus code for image
50: * @param location - location of where image resides
51: * @return - Full path on the local box for image file name
52: */
53: public String getLogo(String key, String campusCode, String location);
54:
55: /**
56: * Remove temporary images
57: *
58: * @param key - Key for use in the filenames
59: * @param location - location of where image resides
60: */
61: public void removeImages(String key, String location);
62:
63: }
|