com.liferay.portlet.documentlibrary.lar
Class DLPortletDataHandlerImpl
java.lang.Object
com.liferay.portal.lar.BasePortletDataHandler
com.liferay.portlet.documentlibrary.lar.DLPortletDataHandlerImpl
- All Implemented Interfaces:
- com.liferay.portal.lar.PortletDataHandler
public class DLPortletDataHandlerImpl
- extends com.liferay.portal.lar.BasePortletDataHandler
View Source
- Author:
- Bruno Farache, Raymond Augé
Method Summary |
javax.portlet.PortletPreferences |
deleteData(com.liferay.portal.lar.PortletDataContext context,
java.lang.String portletId,
javax.portlet.PortletPreferences preferences)
|
java.lang.String |
exportData(com.liferay.portal.lar.PortletDataContext context,
java.lang.String portletId,
javax.portlet.PortletPreferences preferences)
|
static void |
exportFileEntry(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portal.kernel.xml.Element foldersEl,
com.liferay.portal.kernel.xml.Element fileEntriesEl,
com.liferay.portal.kernel.xml.Element fileRanksEl,
com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry)
|
protected static void |
exportFileRank(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portal.kernel.xml.Element fileRanksEl,
com.liferay.portlet.documentlibrary.model.DLFileRank fileRank)
|
protected static void |
exportFileShortcut(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portal.kernel.xml.Element foldersEl,
com.liferay.portal.kernel.xml.Element fileShortcutsEl,
com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut)
|
static void |
exportFolder(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portal.kernel.xml.Element foldersEl,
com.liferay.portal.kernel.xml.Element fileEntriesEl,
com.liferay.portal.kernel.xml.Element fileShortcutsEl,
com.liferay.portal.kernel.xml.Element fileRanksEl,
com.liferay.portlet.documentlibrary.model.DLFolder folder)
|
protected static void |
exportParentFolder(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portal.kernel.xml.Element foldersEl,
long folderId)
|
com.liferay.portal.lar.PortletDataHandlerControl[] |
getExportControls()
|
protected static java.lang.String |
getFileEntryBinPath(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry)
|
protected static java.lang.String |
getFileEntryPath(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry)
|
protected static java.lang.String |
getFileRankPath(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portlet.documentlibrary.model.DLFileRank fileRank)
|
protected static java.lang.String |
getFileShortcutPath(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut)
|
protected static java.lang.String |
getFolderName(long companyId,
long groupId,
long parentFolderId,
java.lang.String name,
int count)
|
protected static java.lang.String |
getFolderPath(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portlet.documentlibrary.model.DLFolder folder)
|
com.liferay.portal.lar.PortletDataHandlerControl[] |
getImportControls()
|
protected static java.lang.String |
getImportFolderPath(com.liferay.portal.lar.PortletDataContext context,
long folderId)
|
javax.portlet.PortletPreferences |
importData(com.liferay.portal.lar.PortletDataContext context,
java.lang.String portletId,
javax.portlet.PortletPreferences preferences,
java.lang.String data)
|
static void |
importFileEntry(com.liferay.portal.lar.PortletDataContext context,
java.util.Map<java.lang.Long,java.lang.Long> folderPKs,
java.util.Map<java.lang.String,java.lang.String> fileEntryNames,
com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
java.lang.String binPath)
|
static void |
importFileRank(com.liferay.portal.lar.PortletDataContext context,
java.util.Map<java.lang.Long,java.lang.Long> folderPKs,
java.util.Map<java.lang.String,java.lang.String> fileEntryNames,
com.liferay.portlet.documentlibrary.model.DLFileRank rank)
|
protected static void |
importFileShortcut(com.liferay.portal.lar.PortletDataContext context,
java.util.Map<java.lang.Long,java.lang.Long> folderPKs,
java.util.Map<java.lang.String,java.lang.String> fileEntryNames,
com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut)
|
static void |
importFolder(com.liferay.portal.lar.PortletDataContext context,
java.util.Map<java.lang.Long,java.lang.Long> folderPKs,
com.liferay.portlet.documentlibrary.model.DLFolder folder)
|
Methods inherited from class com.liferay.portal.lar.BasePortletDataHandler |
isAlwaysExportable, isPublishToLiveByDefault |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DLPortletDataHandlerImpl
public DLPortletDataHandlerImpl()
exportFileEntry
public static void exportFileEntry(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portal.kernel.xml.Element foldersEl,
com.liferay.portal.kernel.xml.Element fileEntriesEl,
com.liferay.portal.kernel.xml.Element fileRanksEl,
com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
exportFolder
public static void exportFolder(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portal.kernel.xml.Element foldersEl,
com.liferay.portal.kernel.xml.Element fileEntriesEl,
com.liferay.portal.kernel.xml.Element fileShortcutsEl,
com.liferay.portal.kernel.xml.Element fileRanksEl,
com.liferay.portlet.documentlibrary.model.DLFolder folder)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
importFileEntry
public static void importFileEntry(com.liferay.portal.lar.PortletDataContext context,
java.util.Map<java.lang.Long,java.lang.Long> folderPKs,
java.util.Map<java.lang.String,java.lang.String> fileEntryNames,
com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
java.lang.String binPath)
throws java.lang.Exception
- Throws:
java.lang.Exception
importFileRank
public static void importFileRank(com.liferay.portal.lar.PortletDataContext context,
java.util.Map<java.lang.Long,java.lang.Long> folderPKs,
java.util.Map<java.lang.String,java.lang.String> fileEntryNames,
com.liferay.portlet.documentlibrary.model.DLFileRank rank)
throws java.lang.Exception
- Throws:
java.lang.Exception
importFolder
public static void importFolder(com.liferay.portal.lar.PortletDataContext context,
java.util.Map<java.lang.Long,java.lang.Long> folderPKs,
com.liferay.portlet.documentlibrary.model.DLFolder folder)
throws java.lang.Exception
- Throws:
java.lang.Exception
deleteData
public javax.portlet.PortletPreferences deleteData(com.liferay.portal.lar.PortletDataContext context,
java.lang.String portletId,
javax.portlet.PortletPreferences preferences)
throws com.liferay.portal.lar.PortletDataException
- Throws:
com.liferay.portal.lar.PortletDataException
exportData
public java.lang.String exportData(com.liferay.portal.lar.PortletDataContext context,
java.lang.String portletId,
javax.portlet.PortletPreferences preferences)
throws com.liferay.portal.lar.PortletDataException
- Throws:
com.liferay.portal.lar.PortletDataException
getExportControls
public com.liferay.portal.lar.PortletDataHandlerControl[] getExportControls()
getImportControls
public com.liferay.portal.lar.PortletDataHandlerControl[] getImportControls()
importData
public javax.portlet.PortletPreferences importData(com.liferay.portal.lar.PortletDataContext context,
java.lang.String portletId,
javax.portlet.PortletPreferences preferences,
java.lang.String data)
throws com.liferay.portal.lar.PortletDataException
- Throws:
com.liferay.portal.lar.PortletDataException
exportFileRank
protected static void exportFileRank(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portal.kernel.xml.Element fileRanksEl,
com.liferay.portlet.documentlibrary.model.DLFileRank fileRank)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
exportFileShortcut
protected static void exportFileShortcut(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portal.kernel.xml.Element foldersEl,
com.liferay.portal.kernel.xml.Element fileShortcutsEl,
com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
exportParentFolder
protected static void exportParentFolder(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portal.kernel.xml.Element foldersEl,
long folderId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getFileEntryBinPath
protected static java.lang.String getFileEntryBinPath(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry)
getFileEntryPath
protected static java.lang.String getFileEntryPath(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry)
getFolderName
protected static java.lang.String getFolderName(long companyId,
long groupId,
long parentFolderId,
java.lang.String name,
int count)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getFolderPath
protected static java.lang.String getFolderPath(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portlet.documentlibrary.model.DLFolder folder)
getFileRankPath
protected static java.lang.String getFileRankPath(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portlet.documentlibrary.model.DLFileRank fileRank)
getFileShortcutPath
protected static java.lang.String getFileShortcutPath(com.liferay.portal.lar.PortletDataContext context,
com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut)
getImportFolderPath
protected static java.lang.String getImportFolderPath(com.liferay.portal.lar.PortletDataContext context,
long folderId)
importFileShortcut
protected static void importFileShortcut(com.liferay.portal.lar.PortletDataContext context,
java.util.Map<java.lang.Long,java.lang.Long> folderPKs,
java.util.Map<java.lang.String,java.lang.String> fileEntryNames,
com.liferay.portlet.documentlibrary.model.DLFileShortcut fileShortcut)
throws java.lang.Exception
- Throws:
java.lang.Exception