|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface IRepositoryFileDAO
Interface for Repository DAO
| Method Summary | |
|---|---|
void |
create(java.lang.String strWorkspace,
java.lang.String strPath)
Create a directory in workspace strWorkspace at absolute path strPath |
void |
create(java.lang.String strWorkspace,
java.lang.String strPath,
java.io.File file)
Create a file in workspace strWorkspace at absolute path strPath, with file content. |
void |
delete(java.lang.String strWorkspace,
java.lang.String strPath)
Remove a file from repository |
IRepositoryFile |
findById(java.lang.String strWorkspace,
java.lang.String id)
Find a file by its id |
IRepositoryFile |
findById(java.lang.String strWorkspace,
java.lang.String id,
java.lang.String version)
Find a file by its id |
IRepositoryFile |
findByPath(java.lang.String strWorkspace,
java.lang.String strPath)
Find a file by its path |
java.util.List<IRepositoryFile> |
getHistory(java.lang.String strWorkspace,
java.lang.String strNodeId)
Get all versions for this file |
java.util.List<IRepositoryFile> |
listFiles(java.lang.String strWorkspace,
java.lang.String strPath)
List all files in a directory |
java.lang.String |
removeLock(java.lang.String strWorkspace,
IRepositoryFile file)
|
java.lang.String |
setLock(java.lang.String strWorkspace,
IRepositoryFile file,
java.lang.String strUsername)
|
void |
setVersionnable(java.lang.String strWorkspace,
java.lang.String strNodeId,
boolean isVersionnable)
Set versionable feature for the specified node |
void |
store(java.lang.String strWorkspace,
IRepositoryFile file)
Submit file changes in repository |
| Method Detail |
|---|
void create(java.lang.String strWorkspace,
java.lang.String strPath,
java.io.File file)
strWorkspace - the name of the workspacestrPath - the absolute path of the filefile - the file content
void create(java.lang.String strWorkspace,
java.lang.String strPath)
strWorkspace - the name of the workspacestrPath - the absolute path of the directory
void store(java.lang.String strWorkspace,
IRepositoryFile file)
strWorkspace - the workspace namefile - the file containing the modifications
void delete(java.lang.String strWorkspace,
java.lang.String strPath)
strWorkspace - the workspace namestrPath - the path of the file to remove
IRepositoryFile findById(java.lang.String strWorkspace,
java.lang.String id)
strWorkspace - the workspace nameid - the id
IRepositoryFile findById(java.lang.String strWorkspace,
java.lang.String id,
java.lang.String version)
strWorkspace - the workspace nameid - the idversion - the version name to retrieve
IRepositoryFile findByPath(java.lang.String strWorkspace,
java.lang.String strPath)
strWorkspace - the workspace namestrPath - the absolute path
java.util.List<IRepositoryFile> listFiles(java.lang.String strWorkspace,
java.lang.String strPath)
strWorkspace - the workspace namestrPath - the absolute path
void setVersionnable(java.lang.String strWorkspace,
java.lang.String strNodeId,
boolean isVersionnable)
strWorkspace - the workspace namestrNodeId - the node idisVersionnable - true to make the node versionable
java.util.List<IRepositoryFile> getHistory(java.lang.String strWorkspace,
java.lang.String strNodeId)
strWorkspace - the workspace namestrNodeId - the node id
java.lang.String setLock(java.lang.String strWorkspace,
IRepositoryFile file,
java.lang.String strUsername)
java.lang.String removeLock(java.lang.String strWorkspace,
IRepositoryFile file)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||