public class BasicRepositoryResource2
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
BasicRepositoryResource2(<any> saikuSessioncontainer,
<any> entityManagerProvider,
EntityUtils entityUtils) |
Modifier and Type | Method and Description |
---|---|
Response |
deleteResource(java.lang.String file)
Delete a resource from the repository
|
java.util.List<IRepositoryObject> |
getRepository(java.lang.String path,
java.lang.String type) |
Response |
getResource(java.lang.String username,
java.lang.String file)
Get an object from the repository.
|
AclEntry |
getResourceAcl(java.lang.String file)
Get the ACL information for a given resource.
|
boolean |
isMDX(java.lang.String username) |
Response |
moveResource(java.lang.String source,
java.lang.String target)
Move an object within the repository.
|
boolean |
reset(java.lang.String username) |
Response |
saveResource(java.lang.String file,
java.lang.String content)
Save an object to the repository.
|
Response |
setResourceAcl(java.lang.String file,
java.lang.String aclEntry)
Set the ACL information for a file/folder.
|
public BasicRepositoryResource2(<any> saikuSessioncontainer, <any> entityManagerProvider, EntityUtils entityUtils)
public java.util.List<IRepositoryObject> getRepository(java.lang.String path, java.lang.String type)
public boolean reset(java.lang.String username)
public boolean isMDX(java.lang.String username)
public AclEntry getResourceAcl(java.lang.String file)
public Response setResourceAcl(java.lang.String file, java.lang.String aclEntry)
file
- The file you want to changeaclEntry
- The ACL information.public Response getResource(java.lang.String username, java.lang.String file)
file
- - The name of the repository file to load.public Response saveResource(java.lang.String file, java.lang.String content)
file
- - The name of the repository file to load.content
- - The content to save.public Response deleteResource(java.lang.String file)
file
- - The name of the repository file to load.public Response moveResource(java.lang.String source, java.lang.String target)
source
- Source objecttarget
- Target location