|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.paris.lutece.plugins.jsr170.business.RepositoryFileHome
public class RepositoryFileHome
| Constructor Summary | |
|---|---|
RepositoryFileHome()
|
|
| Method Summary | |
|---|---|
void |
addFile(java.lang.String strWorkspace,
java.lang.String path,
java.io.File file)
Create a file in workspace strWorkspace in directory designed by path with content file |
boolean |
canAccess(java.lang.String strWorkspace,
java.lang.String strAccessType,
java.lang.String[] userRoles)
Tests if the workspace strWorkspace can be accessed with roles in userRoles and access of type strAccessType |
void |
createFolder(java.lang.String strWorkspace,
java.lang.String path)
Create a directory in workspace strWorkspace at location path |
void |
createWorkspace(java.lang.String strWorkspaceName)
Create a new workspace |
java.util.Map<java.lang.String,java.lang.Boolean> |
getAvailableAccess(java.lang.String strWorkspace,
java.lang.String[] userRoles)
Get all available access, given some roles |
fr.paris.lutece.util.ReferenceList |
getAvailableWorkspaces()
Get all available workspaces |
static RepositoryFileHome |
getInstance()
Returns the instance of the singleton |
IRepositoryFile |
getRepositoryFile(java.lang.String strWorkspace,
java.lang.String path)
Get the file in workspace strWorkspace in directory path |
java.util.List<IRepositoryFile> |
getRepositoryFileList(java.lang.String strWorkspace)
Get the files in workspace strWorkspace |
java.util.List<IRepositoryFile> |
getRepositoryFileList(java.lang.String strWorkspace,
java.lang.String parent)
Get the files in workspace strWorkspace in directory parent |
IWorkspace |
getWorkspace(java.lang.String strWorkspace)
Get workspace informations |
void |
modify(IWorkspace workspace)
Modify workspace acces rights |
void |
removeRepositoryFile(java.lang.String strWorkspace,
java.lang.String strPath)
Remove element in workspace strWorkspace at path strPath |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RepositoryFileHome()
| Method Detail |
|---|
public static RepositoryFileHome getInstance()
public java.util.List<IRepositoryFile> getRepositoryFileList(java.lang.String strWorkspace)
strWorkspace - the workspace name
public IRepositoryFile getRepositoryFile(java.lang.String strWorkspace,
java.lang.String path)
strWorkspace - the workspace namepath - an absolute path to the directory
public java.util.List<IRepositoryFile> getRepositoryFileList(java.lang.String strWorkspace,
java.lang.String parent)
strWorkspace - the workspace nameparent - the parent directory absolute path
public void addFile(java.lang.String strWorkspace,
java.lang.String path,
java.io.File file)
strWorkspace - the workspace namepath - the parent directory absolute pathfile - the file content
public void createFolder(java.lang.String strWorkspace,
java.lang.String path)
strWorkspace - the workspace namepath - the directory absolute path
public void removeRepositoryFile(java.lang.String strWorkspace,
java.lang.String strPath)
strWorkspace - the workspace namestrPath - the absolute pathpublic fr.paris.lutece.util.ReferenceList getAvailableWorkspaces()
public void createWorkspace(java.lang.String strWorkspaceName)
strWorkspaceName - the workspace namepublic IWorkspace getWorkspace(java.lang.String strWorkspace)
strWorkspace - the workspace name
public void modify(IWorkspace workspace)
workspace - the workspace
public boolean canAccess(java.lang.String strWorkspace,
java.lang.String strAccessType,
java.lang.String[] userRoles)
strWorkspace - the workspace namestrAccessType - the access type, it must be in IWorkspace.AVAILABLE_ACCESSuserRoles - an array of roles
public java.util.Map<java.lang.String,java.lang.Boolean> getAvailableAccess(java.lang.String strWorkspace,
java.lang.String[] userRoles)
strWorkspace - the workspace nameuserRoles - an array of roles
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||