|
||||||||||
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(String strWorkspace,
String strPath)
Create a directory in workspace strWorkspace at absolute path strPath |
void |
create(String strWorkspace,
String strPath,
File file,
String strMimeType)
Create a file in workspace strWorkspace at absolute path strPath, with file content. |
void |
delete(String strWorkspace,
String strPath)
Remove a file from repository |
IRepositoryFile |
findById(String strWorkspace,
String id)
Find a file by its id |
IRepositoryFile |
findById(String strWorkspace,
String id,
String version)
Find a file by its id |
IRepositoryFile |
findByPath(String strWorkspace,
String strPath)
Find a file by its path |
List<IRepositoryFile> |
getHistory(String strWorkspace,
String strNodeId)
Get all versions for this file |
List<IRepositoryFile> |
getPathToFile(String strWorkspace,
String strFileId)
|
List<IRepositoryFile> |
listFiles(String strWorkspace,
String strPath)
List all files in a directory |
String |
removeLock(String strWorkspace,
IRepositoryFile file)
|
String |
setLock(String strWorkspace,
IRepositoryFile file,
String strUsername)
|
void |
setVersionnable(String strWorkspace,
String strNodeId,
boolean isVersionnable)
Set versionable feature for the specified node |
void |
store(String strWorkspace,
IRepositoryFile file)
Submit file changes in repository |
Methods inherited from interface fr.paris.lutece.plugins.jcr.business.IJsr170DAO |
---|
free, isAlive |
Method Detail |
---|
void create(String strWorkspace, String strPath, File file, String strMimeType)
strWorkspace
- the name of the workspacestrPath
- the absolute path of the filefile
- the file contentvoid create(String strWorkspace, String strPath)
strWorkspace
- the name of the workspacestrPath
- the absolute path of the directoryvoid store(String strWorkspace, IRepositoryFile file)
strWorkspace
- the workspace namefile
- the file containing the modificationsvoid delete(String strWorkspace, String strPath)
strWorkspace
- the workspace namestrPath
- the path of the file to removeIRepositoryFile findById(String strWorkspace, String id)
strWorkspace
- the workspace nameid
- the id
IRepositoryFile findById(String strWorkspace, String id, String version)
strWorkspace
- the workspace nameid
- the idversion
- the version name to retrieve
IRepositoryFile findByPath(String strWorkspace, String strPath)
strWorkspace
- the workspace namestrPath
- the absolute path
List<IRepositoryFile> listFiles(String strWorkspace, String strPath)
strWorkspace
- the workspace namestrPath
- the absolute path
void setVersionnable(String strWorkspace, String strNodeId, boolean isVersionnable)
strWorkspace
- the workspace namestrNodeId
- the node idisVersionnable
- true to make the node versionableList<IRepositoryFile> getHistory(String strWorkspace, String strNodeId)
strWorkspace
- the workspace namestrNodeId
- the node id
String setLock(String strWorkspace, IRepositoryFile file, String strUsername)
String removeLock(String strWorkspace, IRepositoryFile file)
List<IRepositoryFile> getPathToFile(String strWorkspace, String strFileId)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |