org.nuiton.maven.skin
Class ScmwebeditorUtils

java.lang.Object
  extended by org.nuiton.maven.skin.ScmwebeditorUtils

public class ScmwebeditorUtils
extends Object

A tool to be used in the velocity template.

Since:
1.0.6
Author:
tchemit

Constructor Summary
ScmwebeditorUtils(org.apache.velocity.VelocityContext context, org.codehaus.plexus.logging.Logger logger)
           
 
Method Summary
 void buildStates()
           
protected  org.apache.velocity.VelocityContext getContext()
           
protected  String getCurrentFileName()
           
 String getCurrentFileScmwebeditorURL()
           
protected  File getFile(String editFile)
           
protected  org.codehaus.plexus.logging.Logger getLogger()
           
protected  org.apache.maven.project.MavenProject getProject()
           
protected  String getRelativePath(String editFile, char separator)
           
 String getSiteXmlScmwebeditorURL()
           
 boolean isCurrentFileEditable()
           
protected  boolean isFirstLocale()
           
 void setContext(org.apache.velocity.VelocityContext context)
           
 void setLocale(Locale locale)
           
 void setLocales(List<Locale> locales)
           
 void setMavenProject(org.apache.maven.project.MavenProject mavenProject)
           
 void setScmwebeditorPrefixURL(String scmwebeditorPrefixURL)
           
 void setSiteSourcesType(String siteSourcesType)
           
 void setSiteXmlScmwebeditorURL(String siteXmlScmwebeditorURL)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScmwebeditorUtils

public ScmwebeditorUtils(org.apache.velocity.VelocityContext context,
                         org.codehaus.plexus.logging.Logger logger)
Method Detail

buildStates

public void buildStates()

setContext

public void setContext(org.apache.velocity.VelocityContext context)

setLocales

public void setLocales(List<Locale> locales)

setLocale

public void setLocale(Locale locale)

setScmwebeditorPrefixURL

public void setScmwebeditorPrefixURL(String scmwebeditorPrefixURL)

setSiteSourcesType

public void setSiteSourcesType(String siteSourcesType)

setMavenProject

public void setMavenProject(org.apache.maven.project.MavenProject mavenProject)

setSiteXmlScmwebeditorURL

public void setSiteXmlScmwebeditorURL(String siteXmlScmwebeditorURL)

getSiteXmlScmwebeditorURL

public String getSiteXmlScmwebeditorURL()

isCurrentFileEditable

public boolean isCurrentFileEditable()

getCurrentFileScmwebeditorURL

public String getCurrentFileScmwebeditorURL()

getContext

protected org.apache.velocity.VelocityContext getContext()

getLogger

protected org.codehaus.plexus.logging.Logger getLogger()

getProject

protected org.apache.maven.project.MavenProject getProject()

getCurrentFileName

protected String getCurrentFileName()

isFirstLocale

protected boolean isFirstLocale()

getRelativePath

protected String getRelativePath(String editFile,
                                 char separator)

getFile

protected File getFile(String editFile)


Copyright © 2006-2011 CodeLutin. All Rights Reserved.