KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > blandware > atleap > service > core > UtilManager


1 /*
2  * Copyright 2005 Blandware (http://www.blandware.com)
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
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 com.blandware.atleap.service.core;
17
18 import java.util.List JavaDoc;
19
20 /**
21  * Contains some util methods used in different managers.
22  *
23  * <p><a HREF="UtilManager.java.htm"><i>View source</i></a></p>
24  *
25  * @author Roman Puchkovskiy <a HREF="mailto:roman.puchkovskiy@blandware.com">
26  * &lt;roman.puchkovskiy@blandware.com&gt;</a>
27  * @version $Revision: 1.2 $ $Date: 2005/08/27 11:17:08 $
28  */

29 public interface UtilManager extends BaseManager {
30     /**
31      * Replaces links to linkable object which URI is oldUri with newUri in
32      * linked objects (CFVs and menu items)
33      *
34      * @param oldUri URI to be replaced
35      * @param newUri new URI
36      * @param linkedContentFieldValues list of CFVs that are linked to object
37      * with old URI
38      * @param linkedMenuItems list of menu items that are linked to
39      * @param rwPrefix RW prefix that may be added to URI in
40      * link (after context path)
41      * @param noExtension whether links already have an extension
42      * (so there's no need to append one)
43      */

44     public void replaceLinkableObjectUriInLinkedObjects(String JavaDoc oldUri, String JavaDoc newUri,
45                                                         List JavaDoc linkedContentFieldValues,
46                                                         List JavaDoc linkedMenuItems, String JavaDoc rwPrefix,
47                                                         boolean noExtension);
48
49     /**
50      * Replaces sizes of image in CFVs that contain it
51      *
52      * @param uri URI of content image for which to replace
53      * sizes
54      * @param linkedContentFieldValues CFVs that linked to that image
55      * @param oldWidth old width of image
56      * @param oldHeight old height of image
57      * @param newWidth new width of image
58      * @param newHeight new height of image
59      * @param rwPrefix RW prefix that may be added to URI in
60      * link (after context path)
61      * @param noExtension whether links already have an extension
62      */

63     void replaceImageSizesInLinkedObjects(String JavaDoc uri, List JavaDoc linkedContentFieldValues,
64                                           int oldWidth, int oldHeight,
65                                           int newWidth, int newHeight,
66                                           String JavaDoc rwPrefix, boolean noExtension);
67 }
68
Popular Tags