KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > ofbiz > widget > ContentWorkerInterface


1 /*
2  * $Id: ContentWorkerInterface.java 5462 2005-08-05 18:35:48Z jonesde $
3  *
4  * Copyright (c) 2004-2005 The Open For Business Project - www.ofbiz.org
5  *
6  * Permission is hereby granted, free of charge, to any person obtaining a
7  * copy of this software and associated documentation files (the "Software"),
8  * to deal in the Software without restriction, including without limitation
9  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
10  * and/or sell copies of the Software, and to permit persons to whom the
11  * Software is furnished to do so, subject to the following conditions:
12  *
13  * The above copyright notice and this permission notice shall be included
14  * in all copies or substantial portions of the Software.
15  *
16  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
17  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
19  * IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
20  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT
21  * OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR
22  * THE USE OR OTHER DEALINGS IN THE SOFTWARE.
23  */

24 package org.ofbiz.widget;
25
26 import java.io.IOException JavaDoc;
27 import java.io.Writer JavaDoc;
28 import java.sql.Timestamp JavaDoc;
29 import java.util.List JavaDoc;
30 import java.util.Locale JavaDoc;
31 import java.util.Map JavaDoc;
32
33 import org.ofbiz.base.util.GeneralException;
34 import org.ofbiz.entity.GenericDelegator;
35 import org.ofbiz.entity.GenericEntityException;
36 import org.ofbiz.entity.GenericValue;
37
38 /**
39  * ContentWorkerInterface
40  *
41  * @author <a HREF="mailto:jonesde@ofbiz.org">David E. Jones</a>
42  * @version $Rev: 5462 $
43  */

44 public interface ContentWorkerInterface {
45
46     public GenericValue getCurrentContentExt(GenericDelegator delegator, List JavaDoc trail, GenericValue userLogin, Map JavaDoc ctx, Boolean JavaDoc nullThruDatesOnly, String JavaDoc contentAssocPredicateId) throws GeneralException;
47
48     public Map JavaDoc renderSubContentAsTextExt(GenericDelegator delegator, String JavaDoc contentId, Writer JavaDoc out, String JavaDoc mapKey, String JavaDoc subContentId, GenericValue subContentDataResourceView,
49             Map JavaDoc templateContext, Locale JavaDoc locale, String JavaDoc mimeTypeId, GenericValue userLogin, Timestamp JavaDoc fromDate) throws GeneralException, IOException JavaDoc;
50
51     public String JavaDoc renderSubContentAsTextCacheExt(GenericDelegator delegator, String JavaDoc contentId, String JavaDoc mapKey, GenericValue subContentDataResourceView,
52             Map JavaDoc templateRoot, Locale JavaDoc locale, String JavaDoc mimeTypeId, GenericValue userLogin, Timestamp JavaDoc fromDate) throws GeneralException, IOException JavaDoc;
53
54     public Map JavaDoc renderSubContentAsTextCacheExt(GenericDelegator delegator, String JavaDoc contentId, Writer JavaDoc out, String JavaDoc mapKey, GenericValue subContentDataResourceView,
55             Map JavaDoc templateRoot, Locale JavaDoc locale, String JavaDoc mimeTypeId, GenericValue userLogin, Timestamp JavaDoc fromDate) throws GeneralException, IOException JavaDoc;
56
57     public Map JavaDoc renderSubContentAsTextCacheExt(GenericDelegator delegator, String JavaDoc contentId, Writer JavaDoc out, String JavaDoc mapKey, GenericValue subContentDataResourceView,
58             Map JavaDoc templateRoot, Locale JavaDoc locale, String JavaDoc mimeTypeId, GenericValue userLogin, Timestamp JavaDoc fromDate, Boolean JavaDoc nullThruDatesOnly) throws GeneralException, IOException JavaDoc;
59
60     public Map JavaDoc renderContentAsTextExt(GenericDelegator delegator, String JavaDoc contentId, Writer JavaDoc out, Map JavaDoc templateContext, GenericValue view, Locale JavaDoc locale, String JavaDoc mimeTypeId) throws GeneralException, IOException JavaDoc;
61
62     public String JavaDoc renderContentAsTextCacheExt(GenericDelegator delegator, String JavaDoc contentId, Map JavaDoc templateContext, GenericValue view, Locale JavaDoc locale, String JavaDoc mimeTypeId) throws GeneralException, IOException JavaDoc;
63
64     public Map JavaDoc renderContentAsTextCacheExt(GenericDelegator delegator, String JavaDoc contentId, Writer JavaDoc out, Map JavaDoc templateContext, GenericValue view, Locale JavaDoc locale, String JavaDoc mimeTypeId) throws GeneralException, IOException JavaDoc;
65
66     public String JavaDoc getMimeTypeIdExt(GenericDelegator delegator, GenericValue view, Map JavaDoc ctx);
67
68     public GenericValue getWebSitePublishPointExt(GenericDelegator delegator, String JavaDoc contentId, boolean ignoreCache) throws GenericEntityException;
69 }
70
Popular Tags