|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.jsr170.business.JcrRepositoryFileDAO
public class JcrRepositoryFileDAO
| Field Summary | |
|---|---|
static java.lang.String |
ATTRIBUTE_NODE_SIZE
|
static java.lang.String |
DEFAULT_WORKSPACE_NAME
|
static java.lang.String |
LUTECE_NAMESPACE
|
static java.lang.String |
LUTECE_NAMESPACE_URI
|
static java.lang.String |
NODE_TYPE_FILE
|
static java.lang.String |
NODE_TYPE_FILE_RESOURCE
|
static java.lang.String |
NODE_TYPE_FOLDER
|
static java.lang.String |
NODE_TYPE_JCR_CONTENT
|
static java.lang.String |
PATH_SEPARATOR
|
static java.lang.String |
RESOURCE_TYPE
|
| 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 strFileName,
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 strId)
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static java.lang.String PATH_SEPARATOR
public static final java.lang.String RESOURCE_TYPE
public static final java.lang.String NODE_TYPE_FOLDER
public static final java.lang.String NODE_TYPE_FILE
public static final java.lang.String NODE_TYPE_FILE_RESOURCE
public static final java.lang.String LUTECE_NAMESPACE
public static final java.lang.String LUTECE_NAMESPACE_URI
public static final java.lang.String DEFAULT_WORKSPACE_NAME
public static final java.lang.String ATTRIBUTE_NODE_SIZE
public static final java.lang.String NODE_TYPE_JCR_CONTENT
| Method Detail |
|---|
public void create(java.lang.String strWorkspace,
java.lang.String strPath)
IRepositoryFileDAO
create in interface IRepositoryFileDAOstrWorkspace - the name of the workspacestrPath - the absolute path of the directory
public void create(java.lang.String strWorkspace,
java.lang.String strFileName,
java.io.File file)
IRepositoryFileDAO
create in interface IRepositoryFileDAOstrWorkspace - the name of the workspacestrFileName - the absolute path of the filefile - the file content
public void delete(java.lang.String strWorkspace,
java.lang.String strPath)
IRepositoryFileDAO
delete in interface IRepositoryFileDAOstrWorkspace - the workspace namestrPath - the path of the file to remove
public java.util.List<IRepositoryFile> listFiles(java.lang.String strWorkspace,
java.lang.String strPath)
IRepositoryFileDAO
listFiles in interface IRepositoryFileDAOstrWorkspace - the workspace namestrPath - the absolute path
public IRepositoryFile findById(java.lang.String strWorkspace,
java.lang.String strId)
IRepositoryFileDAO
findById in interface IRepositoryFileDAOstrWorkspace - the workspace namestrId - the id
public IRepositoryFile findByPath(java.lang.String strWorkspace,
java.lang.String strPath)
IRepositoryFileDAO
findByPath in interface IRepositoryFileDAOstrWorkspace - the workspace namestrPath - the absolute path
public void store(java.lang.String strWorkspace,
IRepositoryFile file)
IRepositoryFileDAO
store in interface IRepositoryFileDAOstrWorkspace - the workspace namefile - the file containing the modifications
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||