|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A common interface which all repositories must implement. A Repository represents a data store which contains content.
Method Summary | |
java.lang.String |
get(java.lang.String path)
Get the content from the given path. |
java.lang.String |
get(java.lang.String path,
org.apache.velocity.VelocityContext context)
Get the content from the given path and merge it with the given context. |
long |
getLastModified(java.lang.String path)
Get the last modified time in milliseconds for the given path. |
java.lang.String |
getName()
Get the name of the repository. |
void |
setSiteContext(SiteContext siteContext)
Set the SiteContext. |
Methods inherited from interface org.jpublish.Configurable |
loadConfiguration |
Method Detail |
public java.lang.String getName()
public java.lang.String get(java.lang.String path) throws java.lang.Exception
path
- The relative content pathjava.lang.Exception
- Any Exceptionpublic java.lang.String get(java.lang.String path, org.apache.velocity.VelocityContext context) throws java.lang.Exception
path
- The content pathcontext
- The VelocityContextjava.lang.Exception
- Any Exceptionpublic long getLastModified(java.lang.String path) throws java.lang.Exception
path
- The content pathjava.lang.Exception
- Any Exceptionpublic void setSiteContext(SiteContext siteContext)
siteContext
- The siteContext
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |