1. Project Clover database Tue Dec 20 2016 21:24:09 CET
  2. Package com.xpn.xwiki.internal.render

File OldRendering.java

 

Code metrics

0
0
0
1
69
26
0
-
-
0
-

Classes

Class Line # Actions
OldRendering 46 0 - 0 0
-1.0 -
 

Contributing tests

No tests hitting this source file were found.

Source view

1    /*
2    * See the NOTICE file distributed with this work for additional
3    * information regarding copyright ownership.
4    *
5    * This is free software; you can redistribute it and/or modify it
6    * under the terms of the GNU Lesser General Public License as
7    * published by the Free Software Foundation; either version 2.1 of
8    * the License, or (at your option) any later version.
9    *
10    * This software is distributed in the hope that it will be useful,
11    * but WITHOUT ANY WARRANTY; without even the implied warranty of
12    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13    * Lesser General Public License for more details.
14    *
15    * You should have received a copy of the GNU Lesser General Public
16    * License along with this software; if not, write to the Free
17    * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
18    * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
19    */
20    package com.xpn.xwiki.internal.render;
21   
22    import java.lang.reflect.ParameterizedType;
23    import java.util.Set;
24   
25    import javax.inject.Provider;
26   
27    import org.xwiki.component.annotation.Role;
28    import org.xwiki.component.util.DefaultParameterizedType;
29    import org.xwiki.model.reference.DocumentReference;
30   
31    import com.xpn.xwiki.XWikiContext;
32    import com.xpn.xwiki.XWikiException;
33    import com.xpn.xwiki.doc.XWikiDocument;
34    import com.xpn.xwiki.doc.XWikiLink;
35   
36    /**
37    * Hook to let xwiki/1.0 module override a few internal methods to inject some specific behavior that only make sense
38    * with the old rendering engine.
39    *
40    * @version $Id: 5deabdaeb2c5082b4178df9eb5a2168efa155bf8 $
41    * @since 7.1M1
42    * @deprecated only here for retro-compatibility purposes and should never be used for any new feature
43    */
44    @Role
45    @Deprecated
 
46    public interface OldRendering
47    {
48    /**
49    * Type instance for Provider<OldRendering>.
50    */
51    ParameterizedType TYPE_PROVIDER = new DefaultParameterizedType(null, Provider.class, OldRendering.class);
52   
53    void flushCache();
54   
55    void renameLinks(XWikiDocument backlinkDocument, DocumentReference oldReference, DocumentReference newReference,
56    XWikiContext context) throws XWikiException;
57   
58    void resetRenderingEngine(XWikiContext context) throws XWikiException;
59   
60    String renderText(String text, XWikiDocument doc, XWikiContext xcontext);
61   
62    String renderTemplate(String template, String skin, XWikiContext xcontext);
63   
64    String renderTemplate(String template, XWikiContext xcontext);
65   
66    String parseContent(String content, XWikiContext xcontext);
67   
68    Set<XWikiLink> extractLinks(XWikiDocument doc, XWikiContext context) throws XWikiException;
69    }