|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.pentaho.platform.repository.solution.SolutionRepositoryServiceImpl
public class SolutionRepositoryServiceImpl
Constructor Summary | |
---|---|
SolutionRepositoryServiceImpl()
|
Method Summary | |
---|---|
boolean |
createFolder(IPentahoSession userSession,
String solution,
String path,
String name,
String desc)
This method creates a folder along with it's index.xml file. |
boolean |
delete(IPentahoSession userSession,
String solution,
String path,
String name)
This method will delete a file from the ISolutionRepository and respects IPentahoAclEntry.PERM_DELETE. |
String |
getAclXml(String solution,
String path,
String filename,
IPentahoSession userSession)
Gets ACLs based on a solution repository file. |
Document |
getSolutionRepositoryDoc(IPentahoSession session,
String[] filters)
|
Document |
getSolutionRepositoryFileDetails(IPentahoSession session,
String fullPath)
Returns an XML snippet consisting of a single file element. |
void |
setAcl(String solution,
String path,
String filename,
String strAclXml,
IPentahoSession userSession)
Sets the ACL Xml for a particular file in the solution repository |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SolutionRepositoryServiceImpl()
Method Detail |
---|
public boolean delete(IPentahoSession userSession, String solution, String path, String name) throws IOException
delete
in interface ISolutionRepositoryService
userSession
- An IPentahoSession for the user requesting the delete operationsolution
- The name of the solution, such as 'steel-wheels'path
- The path within the solution to the file/folder to be deleted (does not include the file/folder itself)name
- The name of the file or folder which will be deleted in the given solution/path
IOException
public boolean createFolder(IPentahoSession userSession, String solution, String path, String name, String desc) throws IOException
createFolder
in interface ISolutionRepositoryService
userSession
- the current usersolution
- the solution pathpath
- the folder pathname
- the name of the new folderdesc
- the description of the new folder
IOException
public Document getSolutionRepositoryDoc(IPentahoSession session, String[] filters) throws ParserConfigurationException
getSolutionRepositoryDoc
in interface ISolutionRepositoryService
ParserConfigurationException
public Document getSolutionRepositoryFileDetails(IPentahoSession session, String fullPath) throws ParserConfigurationException
file
element. The file
element is the same
as would have been returned by getSolutionRepositoryDoc
.
getSolutionRepositoryFileDetails
in interface ISolutionRepositoryService
session
- current session
ParserConfigurationException
public void setAcl(String solution, String path, String filename, String strAclXml, IPentahoSession userSession) throws SolutionRepositoryServiceException, IOException, PentahoAccessControlException
setAcl
in interface ISolutionRepositoryService
solution
- path
- filename
- strAclXml
- userSession
-
SolutionRepositoryServiceException
IOException
PentahoAccessControlException
public String getAclXml(String solution, String path, String filename, IPentahoSession userSession) throws SolutionRepositoryServiceException, IOException
getAclXml
in interface ISolutionRepositoryService
userSession
-
SolutionRepositoryServiceException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |