当前页面:
在线文档首页 >
JBoss RULES 4.0.0.11754MR2 API 英文版文档
JcrActionFactory (Drools 4.0.0.11754MR2 API) - JBoss RULES 4.0.0.11754MR2 API 英文版文档
org.drools.scm.jcr
Class JcrActionFactory
java.lang.Object
org.drools.scm.jcr.JcrActionFactory
- All Implemented Interfaces:
- ScmActionFactory
public class JcrActionFactory
- extends Object
- implements ScmActionFactory
Method Summary |
ScmAction |
addDirectory(String root,
String path)
|
ScmAction |
addFile(String path,
String file,
byte[] content)
|
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()
|
List |
listEntries(String path)
|
ScmAction |
moveDirectory(String path,
String newPath,
long revision)
|
ScmAction |
moveFile(String path,
String file,
String newPath,
String newFile,
long revision)
|
void |
syncToScmLog(List list,
ScmActionFactory factory)
|
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 |
JcrActionFactory
public JcrActionFactory(RulesRepository repo)
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
execute
public void execute(ScmAction action,
String message)
throws Exception
- Specified by:
execute
in interface ScmActionFactory
- Throws:
Exception
getContent
public void getContent(String path,
String file,
long revision,
OutputStream os)
throws Exception
- Specified by:
getContent
in interface ScmActionFactory
- Throws:
Exception
getLatestRevision
public long getLatestRevision()
throws Exception
- Specified by:
getLatestRevision
in interface ScmActionFactory
- Throws:
Exception
listEntries
public List listEntries(String path)
throws Exception
- Specified by:
listEntries
in interface ScmActionFactory
- Throws:
Exception
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
syncToScmLog
public void syncToScmLog(List list,
ScmActionFactory factory)
throws Exception
- Throws:
Exception
Copyright © 2001-2007
JBoss Inc.. All Rights Reserved.