Package com.xpn.xwiki.web.sx
Class SxDocumentSource
- java.lang.Object
-
- com.xpn.xwiki.web.sx.SxDocumentSource
-
- All Implemented Interfaces:
SxSource
public class SxDocumentSource extends Object implements SxSource
Wiki Document source for Skin Extensions. This is the standard source for Skin Extensions, using an XWiki object of an extension class in a wiki document.- Since:
- 1.7M2
- Version:
- $Id: 689f0f4ea1a7564d84808eae8bbe3d812aca7f31 $
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.xpn.xwiki.web.sx.SxSource
SxSource.CachePolicy
-
-
Constructor Summary
Constructors Constructor Description SxDocumentSource(XWikiContext context, Extension extension)
Constructor for this extension source.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SxSource.CachePolicy
getCachePolicy()
String
getContent()
long
getLastModifiedDate()
-
-
-
Constructor Detail
-
SxDocumentSource
public SxDocumentSource(XWikiContext context, Extension extension)
Constructor for this extension source.- Parameters:
context
- The XWikiContextextension
- The Extension type
-
-
Method Detail
-
getCachePolicy
public SxSource.CachePolicy getCachePolicy()
- Specified by:
getCachePolicy
in interfaceSxSource
- Returns:
- the cache policy associated with this extension source.
-
getContent
public String getContent()
- Specified by:
getContent
in interfaceSxSource
- Returns:
- the content of the extension source. For example, a javascript script for a javascript extension.
-
getLastModifiedDate
public long getLastModifiedDate()
- Specified by:
getLastModifiedDate
in interfaceSxSource
- Returns:
- the last date at which the extension source has been modified.
-
-