fr.paris.lutece.plugins.jcr.business
Interface IRepositoryFileDAO

All Known Implementing Classes:
AlfrescoRepositoryFileDAO, JcrRepositoryFileDAO

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 findByPath(java.lang.String strWorkspace, java.lang.String strPath)
          Find a file by its path
 java.util.List<IRepositoryFile> listFiles(java.lang.String strWorkspace, java.lang.String strPath)
          List all files in a directory
 void store(java.lang.String strWorkspace, IRepositoryFile file)
          Submit file changes in repository
 

Method Detail

create

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.

Parameters:
strWorkspace - the name of the workspace
strPath - the absolute path of the file
file - the file content

create

void create(java.lang.String strWorkspace,
            java.lang.String strPath)
Create a directory in workspace strWorkspace at absolute path strPath

Parameters:
strWorkspace - the name of the workspace
strPath - the absolute path of the directory

store

void store(java.lang.String strWorkspace,
           IRepositoryFile file)
Submit file changes in repository

Parameters:
strWorkspace - the workspace name
file - the file containing the modifications

delete

void delete(java.lang.String strWorkspace,
            java.lang.String strPath)
Remove a file from repository

Parameters:
strWorkspace - the workspace name
strPath - the path of the file to remove

findById

IRepositoryFile findById(java.lang.String strWorkspace,
                         java.lang.String id)
Find a file by its id

Parameters:
strWorkspace - the workspace name
id - the id
Returns:
the file associated with the id

findByPath

IRepositoryFile findByPath(java.lang.String strWorkspace,
                           java.lang.String strPath)
Find a file by its path

Parameters:
strWorkspace - the workspace name
strPath - the absolute path
Returns:
the file associated with the path

listFiles

java.util.List<IRepositoryFile> listFiles(java.lang.String strWorkspace,
                                          java.lang.String strPath)
List all files in a directory

Parameters:
strWorkspace - the workspace name
strPath - the absolute path
Returns:
a list of all files


Copyright © 2007 Mairie de Paris. All Rights Reserved.