|
Groovy Documentation | |||||||
FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | PROPERTY | CONSTR | METHOD | DETAIL: FIELD | PROPERTY | CONSTR | METHOD |
java.lang.Objectservices.SventonService
class SventonService
Class to interact with the Sventon repository browser.
Property Summary | |
---|---|
static Map |
conf
Config |
private def |
randomNumberGenerator
Random number generator used to generate session IDs. |
def |
sandboxManager
Sandbox manager, autowired by grails. |
def |
sventonJmxManager
The JMX MBean used to remote-control sventon, autowired. |
Constructor Summary | |
SventonService()
|
Method Summary | |
---|---|
String
|
currentSventonSessionID()
Get the ID of the CowSventonSession corresponding to the current HTTP session. |
def
|
getSvnRepository(Wiki w, File wcPath, boolean refreshIfNecessary = false)
Returns an SvnRepository object for the root of the repository associated with the given working copy path in the given wiki, creating one in the database if necessary. |
void
|
grantPermission(String repository, String path)
Add a grant for the given repository and path to the current sventon session. |
String
|
historyLink(Wiki w, File pageFile, def redirectToYam)
Returns the sventon link to view the history of a given page in a wiki. |
boolean
|
isManagerAvailable()
Check whether the sventon remote controller is available. |
void
|
makeAdmin()
Make the current sventon session an admin session, with full access to the repositories. |
void
|
reInitSventon()
Remotely re-initialise sventon. |
void
|
refresh()
Update configuration and refresh sventon if possible. |
def
|
registerRootRepository(Wiki w)
Adds a repository definition to the database for the repository root from which the top-level directory of the given wiki was checked out. |
void
|
removeAllRepositories()
Remove all repositories from the current sventon configuration. |
String
|
sventonRelativeUrl(String path)
Given a path relative to the sventon web application, returns the path relative to the root of the web server for that sventon path, with the current session ID (if any) appended. |
void
|
updateConfig()
Update the sventon configuration, writing one repository definition for each known wiki area. |
def
|
withCowSventonSession(def callable)
Load or create a sventon session object for the current request, process it with the given closure and persist the session back to disk. |
Methods inherited from class Object | |
---|---|
wait, wait, wait, hashCode, getClass, equals, toString, notify, notifyAll |
Property Detail |
---|
static Map conf
private def randomNumberGenerator
def sandboxManager
def sventonJmxManager
Constructor Detail |
---|
SventonService()
Method Detail |
---|
String currentSventonSessionID()
public def getSvnRepository(Wiki w, File wcPath, boolean refreshIfNecessary = false)
void grantPermission(String repository, String path)
String historyLink(Wiki w, File pageFile, def redirectToYam)
boolean isManagerAvailable()
void makeAdmin()
void reInitSventon()
void refresh()
public def registerRootRepository(Wiki w)
void removeAllRepositories()
String sventonRelativeUrl(String path)
void updateConfig()
public def withCowSventonSession(def callable)
Groovy Documentation