|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gcube.portlets.d4sreporting.common.server.ServiceUtil
public class ServiceUtil
ServiceUtil contains utility methods for the servlet SERVICES
| Constructor Summary | |
|---|---|
ServiceUtil(org.gcube.application.framework.core.session.ASLSession session)
|
|
| Method Summary | |
|---|---|
void |
copyFile(File from,
File to,
String folder)
just copies files using buffered input stream |
org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceFolder |
getReportsFolder(org.gcube.application.framework.core.session.ASLSession session)
|
String |
getReportsPath(String templateName,
String currentVRE,
String currentUser)
Return the server path of the templatename passed |
String |
getTemplateFolder(String currentDL,
String currentUser)
return the user template folder |
String |
getTemplatePath(String templateName,
String currentVRE,
String currentUser)
Return the server path of the templatename passed |
protected org.gcube.portlets.user.homelibrary.home.workspace.Workspace |
getWorkspaceArea(org.gcube.application.framework.core.session.ASLSession session)
|
Model |
readRawModel(String pathToModel)
|
boolean |
writeModel(Model model,
String templateName,
String currentDL,
String currentUser)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ServiceUtil(org.gcube.application.framework.core.session.ASLSession session)
| Method Detail |
|---|
public org.gcube.portlets.user.homelibrary.home.workspace.WorkspaceFolder getReportsFolder(org.gcube.application.framework.core.session.ASLSession session)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.exceptions.HomeNotFoundException
session - the ASL session
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException - .
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException - .
org.gcube.portlets.user.homelibrary.home.exceptions.HomeNotFoundException - .
protected org.gcube.portlets.user.homelibrary.home.workspace.Workspace getWorkspaceArea(org.gcube.application.framework.core.session.ASLSession session)
throws org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException,
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException,
org.gcube.portlets.user.homelibrary.home.exceptions.HomeNotFoundException
org.gcube.portlets.user.homelibrary.home.exceptions.HomeNotFoundException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.workspace.exceptions.WorkspaceFolderNotFoundException
WorkspaceNotFoundException
org.gcube.portlets.user.homelibrary.home.exceptions.InternalErrorException
org.gcube.portlets.user.homelibrary.home.exceptions.HomeNotFoundException
public String getTemplatePath(String templateName,
String currentVRE,
String currentUser)
templateName - .currentVRE - .currentUser - .
public String getReportsPath(String templateName,
String currentVRE,
String currentUser)
templateName - .currentVRE - .currentUser - .
public String getTemplateFolder(String currentDL,
String currentUser)
templateName - currentDL - .currentUser - .
public boolean writeModel(Model model,
String templateName,
String currentDL,
String currentUser)
gwtModel - .templateName - .currentDL - .currentUser - .
public Model readRawModel(String pathToModel)
pathToModel - e.g. /home/massi/templates/massimiliano.assante/PROVA1/PROVA1.d4st
public void copyFile(File from,
File to,
String folder)
throws Exception
from - .to - .folder - the folder in which the image has to be copied, (it creates it if not exist)
Exception - .
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||