public class DocLibraryUtil extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
WORKFLOWS_FOLDER |
| Constructor and Description |
|---|
DocLibraryUtil() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
deleteFileFromDocLibrary(org.gcube.application.framework.core.session.ASLSession session,
String workflowid) |
static long |
getCompanyID() |
static com.liferay.portlet.documentlibrary.model.DLFileEntry |
getFileEntry(org.gcube.application.framework.core.session.ASLSession session,
String workflowid) |
static List<com.liferay.portlet.documentlibrary.model.DLFolder> |
getFolders(org.gcube.application.framework.core.session.ASLSession session) |
static long |
getGroupID(org.gcube.application.framework.core.session.ASLSession session) |
static long |
getUserId(org.gcube.application.framework.core.session.ASLSession session) |
static long |
getWfFolder(org.gcube.application.framework.core.session.ASLSession session)
check the existence of the WFFolder or create it if not exists
|
static boolean |
wfFolderExists(org.gcube.application.framework.core.session.ASLSession session) |
static boolean |
writeFileIntoDocLibrary(org.gcube.application.framework.core.session.ASLSession session,
List<com.liferay.portal.model.Role> roles,
org.gcube.portlets.admin.wfdocslibrary.shared.Step start,
String fileName,
byte[] buffer)
write the Report File (payload) into Liferay DocLibrary in the workflowdocs folder
|
public static final String WORKFLOWS_FOLDER
public static boolean writeFileIntoDocLibrary(org.gcube.application.framework.core.session.ASLSession session,
List<com.liferay.portal.model.Role> roles,
org.gcube.portlets.admin.wfdocslibrary.shared.Step start,
String fileName,
byte[] buffer)
roles - start - each Step contains a MapfileName - buffer - the payload as byte arraypublic static boolean deleteFileFromDocLibrary(org.gcube.application.framework.core.session.ASLSession session,
String workflowid)
session - workflowid - public static com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(org.gcube.application.framework.core.session.ASLSession session,
String workflowid)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException,
Exception
session - workflowid - com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionExceptionpublic static long getWfFolder(org.gcube.application.framework.core.session.ASLSession session)
throws Exception
session - com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionExceptionpublic static boolean wfFolderExists(org.gcube.application.framework.core.session.ASLSession session)
session - the ASL Session instancepublic static long getGroupID(org.gcube.application.framework.core.session.ASLSession session)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
session - com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static long getCompanyID()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
com.liferay.portal.kernel.exception.PortalExceptioncom.liferay.portal.kernel.exception.SystemExceptionpublic static List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(org.gcube.application.framework.core.session.ASLSession session) throws com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.PortalException
session - the ASL Session instancecom.liferay.portal.kernel.exception.SystemException - .com.liferay.portal.kernel.exception.PortalException - .public static long getUserId(org.gcube.application.framework.core.session.ASLSession session)
session - the ASL Session instanceCopyright © 2014. All Rights Reserved.