站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss RULES 4.0.0.11754MR2 API 英文版文档

SvnActionFactory (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档


org.drools.scm.svn
Class SvnActionFactory

java.lang.Object
  extended by org.drools.scm.svn.SvnActionFactory
All Implemented Interfaces:
ScmActionFactory

public class SvnActionFactory
extends Object
implements ScmActionFactory


Nested Class Summary
static class SvnActionFactory.AddDirectory
          root should be the last, previously created, parent folder.
static class SvnActionFactory.AddFile
           
static class SvnActionFactory.CommitMediator
           
static class SvnActionFactory.CopyDirectory
           
static class SvnActionFactory.CopyFile
           
static class SvnActionFactory.DeleteDirectory
           
static class SvnActionFactory.DeleteFile
           
static class SvnActionFactory.MoveDirectory
           
static class SvnActionFactory.MoveFile
           
static class SvnActionFactory.UpdateFile
           
 
Constructor Summary
SvnActionFactory(String url, String svnUsername, String svnPassword)
           
 
Method Summary
 ScmAction addDirectory(String root, String path)
           
 ScmAction addFile(String path, String file, byte[] content)
           
static void closeDirectories(org.tmatesoft.svn.core.io.ISVNEditor editor, String path)
           
 ScmAction copyDirectory(String path, String newPath, long revision)
           
 ScmAction copyFile(String path, String file, String newPath, String newFile, long revision)
           
 ScmAction deleteDirectory(String path)
           
 ScmAction deleteFile(String path, String file)
           
 void execute(ScmAction action, String message)
           
 void getContent(String path, String file, long revision, OutputStream os)
           
 long getLatestRevision()
           
 org.tmatesoft.svn.core.io.SVNRepository getSVNRepository()
           
 List listEntries(String path)
           
 void listEntries(String path, List list)
           
 List log(String[] paths, long startRevision, long endRevision)
           
 ScmAction moveDirectory(String path, String newPath, long revision)
           
 ScmAction moveFile(String path, String file, String newPath, String newFile, long revision)
           
static void openDirectories(org.tmatesoft.svn.core.io.ISVNEditor editor, String path)
           
 ScmAction updateFile(String path, String file, byte[] oldContent, byte[] newContent)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SvnActionFactory

public SvnActionFactory(String url,
                        String svnUsername,
                        String svnPassword)
                 throws Exception
Throws:
Exception
Method Detail

getSVNRepository

public org.tmatesoft.svn.core.io.SVNRepository getSVNRepository()

addDirectory

public ScmAction addDirectory(String root,
                              String path)
Specified by:
addDirectory in interface ScmActionFactory

addFile

public ScmAction addFile(String path,
                         String file,
                         byte[] content)
Specified by:
addFile in interface ScmActionFactory

copyDirectory

public ScmAction copyDirectory(String path,
                               String newPath,
                               long revision)
Specified by:
copyDirectory in interface ScmActionFactory

copyFile

public ScmAction copyFile(String path,
                          String file,
                          String newPath,
                          String newFile,
                          long revision)
Specified by:
copyFile in interface ScmActionFactory

deleteDirectory

public ScmAction deleteDirectory(String path)
Specified by:
deleteDirectory in interface ScmActionFactory

deleteFile

public ScmAction deleteFile(String path,
                            String file)
Specified by:
deleteFile in interface ScmActionFactory

moveDirectory

public ScmAction moveDirectory(String path,
                               String newPath,
                               long revision)
Specified by:
moveDirectory in interface ScmActionFactory

moveFile

public ScmAction moveFile(String path,
                          String file,
                          String newPath,
                          String newFile,
                          long revision)
Specified by:
moveFile in interface ScmActionFactory

updateFile

public ScmAction updateFile(String path,
                            String file,
                            byte[] oldContent,
                            byte[] newContent)
Specified by:
updateFile in interface ScmActionFactory

getContent

public void getContent(String path,
                       String file,
                       long revision,
                       OutputStream os)
                throws org.tmatesoft.svn.core.SVNException
Specified by:
getContent in interface ScmActionFactory
Throws:
org.tmatesoft.svn.core.SVNException

log

public List log(String[] paths,
                long startRevision,
                long endRevision)
         throws org.tmatesoft.svn.core.SVNException
Throws:
org.tmatesoft.svn.core.SVNException

getLatestRevision

public long getLatestRevision()
                       throws Exception
Specified by:
getLatestRevision in interface ScmActionFactory
Throws:
Exception

execute

public void execute(ScmAction action,
                    String message)
             throws Exception
Specified by:
execute in interface ScmActionFactory
Throws:
Exception

openDirectories

public static void openDirectories(org.tmatesoft.svn.core.io.ISVNEditor editor,
                                   String path)
                            throws org.tmatesoft.svn.core.SVNException
Throws:
org.tmatesoft.svn.core.SVNException

closeDirectories

public static void closeDirectories(org.tmatesoft.svn.core.io.ISVNEditor editor,
                                    String path)
                             throws org.tmatesoft.svn.core.SVNException
Throws:
org.tmatesoft.svn.core.SVNException

listEntries

public List listEntries(String path)
                 throws org.tmatesoft.svn.core.SVNException
Specified by:
listEntries in interface ScmActionFactory
Throws:
org.tmatesoft.svn.core.SVNException

listEntries

public void listEntries(String path,
                        List list)
                 throws org.tmatesoft.svn.core.SVNException
Throws:
org.tmatesoft.svn.core.SVNException


Copyright © 2001-2007 JBoss Inc.. All Rights Reserved.