|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.liferay.portal.kernel.lar.BasePortletDataHandler com.liferay.portlet.documentlibrary.lar.DLPortletDataHandlerImpl
public class DLPortletDataHandlerImpl
Constructor Summary | |
---|---|
DLPortletDataHandlerImpl()
|
Method Summary | |
---|---|
protected PortletPreferences |
doDeleteData(PortletDataContext portletDataContext,
String portletId,
PortletPreferences portletPreferences)
|
protected String |
doExportData(PortletDataContext portletDataContext,
String portletId,
PortletPreferences portletPreferences)
|
protected PortletPreferences |
doImportData(PortletDataContext portletDataContext,
String portletId,
PortletPreferences portletPreferences,
String data)
|
static void |
exportFileEntry(PortletDataContext portletDataContext,
Element fileEntryTypesElement,
Element foldersElement,
Element fileEntriesElement,
Element fileRanksElement,
Element repositoriesElement,
Element repositoryEntriesElement,
FileEntry fileEntry,
boolean checkDateRange)
|
protected static void |
exportFileEntryType(PortletDataContext portletDataContext,
Element fileEntryTypesElement,
DLFileEntryType dlFileEntryType)
|
protected static void |
exportFileRank(PortletDataContext portletDataContext,
Element fileRanksElement,
DLFileRank fileRank)
|
protected static void |
exportFileShortcut(PortletDataContext portletDataContext,
Element fileEntryTypesElement,
Element foldersElement,
Element fileShortcutsElement,
Element repositoriesElement,
Element repositoryEntriesElement,
DLFileShortcut fileShortcut)
|
protected static void |
exportFolder(PortletDataContext portletDataContext,
Element fileEntryTypesElement,
Element foldersElement,
Element fileEntriesElement,
Element fileShortcutsElement,
Element fileRanksElement,
Element repositoriesElement,
Element repositoryEntriesElement,
Folder folder,
boolean recurse)
|
protected static void |
exportFolderFileEntryTypes(PortletDataContext portletDataContext,
Folder folder,
Element fileEntryTypesElement,
Element folderElement)
|
protected static void |
exportMetaData(PortletDataContext portletDataContext,
Element fileEntryTypesElement,
Element fileEntryElement,
FileEntry fileEntry)
|
protected static void |
exportParentFolder(PortletDataContext portletDataContext,
Element fileEntryTypesElement,
Element foldersElement,
Element repositoriesElement,
Element repositoryEntriesElement,
long folderId)
|
protected static void |
exportRepository(PortletDataContext portletDataContext,
Element repositoriesElement,
Element repositoryEntriesElement,
Repository repository)
|
protected static void |
exportRepositoryEntry(PortletDataContext portletDataContext,
Element repositoryEntriesElement,
RepositoryEntry repositoryEntry)
|
String[] |
getDataPortletPreferences()
Returns an array of the portlet preferences that reference data. |
PortletDataHandlerControl[] |
getExportControls()
Returns an array of the controls defined for this data handler. |
PortletDataHandlerControl[] |
getExportMetadataControls()
Returns an array of the metadata controls defined for this data handler. |
protected static String |
getFileEntryBinPath(PortletDataContext portletDataContext,
FileEntry fileEntry)
|
protected static String |
getFileEntryFileEntryTypeStructureFieldsPath(PortletDataContext portletDataContext,
FileEntry fileEntry,
String fileEntryTypeUuid,
long structureId)
|
static String |
getFileEntryPath(PortletDataContext portletDataContext,
FileEntry fileEntry)
|
protected static String |
getFileEntryTypeName(String uuid,
long groupId,
String name,
int count)
|
protected static String |
getFileEntryTypePath(PortletDataContext portletDataContext,
DLFileEntryType dlFileEntryType)
|
protected static String |
getFileRankPath(PortletDataContext portletDataContext,
DLFileRank fileRank)
|
protected static String |
getFileShortcutPath(PortletDataContext portletDataContext,
DLFileShortcut fileShortcut)
|
protected static String |
getFolderName(String uuid,
long groupId,
long parentFolderId,
String name,
int count)
|
protected static String |
getFolderPath(PortletDataContext portletDataContext,
Folder folder)
|
PortletDataHandlerControl[] |
getImportControls()
Returns an array of the controls defined for this data handler. |
protected static String |
getImportFolderPath(PortletDataContext portletDataContext,
long folderId)
|
PortletDataHandlerControl[] |
getImportMetadataControls()
Returns an array of the metadata controls defined for this data handler. |
static PortletDataHandlerControl[] |
getMetadataControls()
|
static String |
getRepositoryEntryPath(PortletDataContext portletDataContext,
long repositoryEntryId)
|
protected static String |
getRepositoryEntryPath(PortletDataContext portletDataContext,
RepositoryEntry repositoryEntry)
|
protected static String |
getRepositoryPath(PortletDataContext portletDataContext,
Repository repository)
|
static void |
importFileEntry(PortletDataContext portletDataContext,
Element fileEntryElement)
|
static void |
importFileEntry(PortletDataContext portletDataContext,
Element fileEntryElement,
String path)
|
protected static void |
importFileEntryType(PortletDataContext portletDataContext,
Element fileEntryTypeElement)
|
protected static void |
importFileRank(PortletDataContext portletDataContext,
DLFileRank fileRank,
String fileEntryUuid)
|
static void |
importFileRank(PortletDataContext portletDataContext,
Element fileRankElement)
|
protected static void |
importFileShortcut(PortletDataContext portletDataContext,
Element fileShortcutElement)
|
protected static void |
importFileShortcut(PortletDataContext portletDataContext,
Element fileShortcutElement,
DLFileShortcut fileShortcut)
|
static void |
importFolder(PortletDataContext portletDataContext,
Element folderElement)
|
protected static void |
importFolder(PortletDataContext portletDataContext,
String folderPath,
Element folderElement,
Folder folder)
|
protected static void |
importFolderFileEntryTypes(PortletDataContext portletDataContext,
Element folderElement,
Folder folder,
ServiceContext serviceContext)
|
protected static void |
importMetaData(PortletDataContext portletDataContext,
Element fileEntryElement,
ServiceContext serviceContext)
|
static void |
importRepository(PortletDataContext portletDataContext,
Element repositoryElement)
|
static void |
importRepositoryEntry(PortletDataContext portletDataContext,
Element repositoryEntryElement)
|
boolean |
isAlwaysExportable()
Returns true to allow the user to export data for this
portlet even though it may not belong to any pages. |
boolean |
isDataLocalized()
|
protected static boolean |
isFileEntryTypeExportable(DLFileEntryType dlFileEntryType)
|
protected static boolean |
isFileEntryTypeGlobal(long companyId,
DLFileEntryType dlFileEntryType)
|
boolean |
isPublishToLiveByDefault()
Returns whether the data exported by this handler should be included by default when publishing to live. |
Methods inherited from class com.liferay.portal.kernel.lar.BasePortletDataHandler |
---|
deleteData, exportData, importData, isAlwaysStaged |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DLPortletDataHandlerImpl()
Method Detail |
---|
public static void exportFileEntry(PortletDataContext portletDataContext, Element fileEntryTypesElement, Element foldersElement, Element fileEntriesElement, Element fileRanksElement, Element repositoriesElement, Element repositoryEntriesElement, FileEntry fileEntry, boolean checkDateRange) throws Exception
Exception
public static String getFileEntryPath(PortletDataContext portletDataContext, FileEntry fileEntry)
public static PortletDataHandlerControl[] getMetadataControls()
public static String getRepositoryEntryPath(PortletDataContext portletDataContext, long repositoryEntryId)
public static void importFileEntry(PortletDataContext portletDataContext, Element fileEntryElement) throws Exception
Exception
public static void importFileEntry(PortletDataContext portletDataContext, Element fileEntryElement, String path) throws Exception
Exception
public static void importFileRank(PortletDataContext portletDataContext, Element fileRankElement) throws Exception
Exception
public static void importFolder(PortletDataContext portletDataContext, Element folderElement) throws Exception
Exception
public static void importRepository(PortletDataContext portletDataContext, Element repositoryElement) throws Exception
Exception
public static void importRepositoryEntry(PortletDataContext portletDataContext, Element repositoryEntryElement) throws Exception
Exception
public String[] getDataPortletPreferences()
PortletDataHandler
getDataPortletPreferences
in interface PortletDataHandler
getDataPortletPreferences
in class BasePortletDataHandler
public PortletDataHandlerControl[] getExportControls()
PortletDataHandler
getExportControls
in interface PortletDataHandler
getExportControls
in class BasePortletDataHandler
public PortletDataHandlerControl[] getExportMetadataControls()
PortletDataHandler
getExportMetadataControls
in interface PortletDataHandler
getExportMetadataControls
in class BasePortletDataHandler
public PortletDataHandlerControl[] getImportControls()
PortletDataHandler
getImportControls
in interface PortletDataHandler
getImportControls
in class BasePortletDataHandler
public PortletDataHandlerControl[] getImportMetadataControls()
PortletDataHandler
getImportMetadataControls
in interface PortletDataHandler
getImportMetadataControls
in class BasePortletDataHandler
public boolean isAlwaysExportable()
PortletDataHandler
true
to allow the user to export data for this
portlet even though it may not belong to any pages. See LPS-1624.
isAlwaysExportable
in interface PortletDataHandler
isAlwaysExportable
in class BasePortletDataHandler
true
to allow the user to export data for this
portlet even though it may not belong to any pagespublic boolean isDataLocalized()
isDataLocalized
in interface PortletDataHandler
isDataLocalized
in class BasePortletDataHandler
public boolean isPublishToLiveByDefault()
PortletDataHandler
true
for data that is meant to be managed in an staging environment such as
CMS content, but not for data meant to be input by users such as wiki
pages or message board posts.
isPublishToLiveByDefault
in interface PortletDataHandler
isPublishToLiveByDefault
in class BasePortletDataHandler
true
to publish to live by defaultprotected static void exportFileEntryType(PortletDataContext portletDataContext, Element fileEntryTypesElement, DLFileEntryType dlFileEntryType) throws Exception
Exception
protected static void exportFileRank(PortletDataContext portletDataContext, Element fileRanksElement, DLFileRank fileRank) throws Exception
Exception
protected static void exportFileShortcut(PortletDataContext portletDataContext, Element fileEntryTypesElement, Element foldersElement, Element fileShortcutsElement, Element repositoriesElement, Element repositoryEntriesElement, DLFileShortcut fileShortcut) throws Exception
Exception
protected static void exportFolder(PortletDataContext portletDataContext, Element fileEntryTypesElement, Element foldersElement, Element fileEntriesElement, Element fileShortcutsElement, Element fileRanksElement, Element repositoriesElement, Element repositoryEntriesElement, Folder folder, boolean recurse) throws Exception
Exception
protected static void exportFolderFileEntryTypes(PortletDataContext portletDataContext, Folder folder, Element fileEntryTypesElement, Element folderElement) throws Exception
Exception
protected static void exportMetaData(PortletDataContext portletDataContext, Element fileEntryTypesElement, Element fileEntryElement, FileEntry fileEntry) throws Exception
Exception
protected static void exportParentFolder(PortletDataContext portletDataContext, Element fileEntryTypesElement, Element foldersElement, Element repositoriesElement, Element repositoryEntriesElement, long folderId) throws Exception
Exception
protected static void exportRepository(PortletDataContext portletDataContext, Element repositoriesElement, Element repositoryEntriesElement, Repository repository) throws Exception
Exception
protected static void exportRepositoryEntry(PortletDataContext portletDataContext, Element repositoryEntriesElement, RepositoryEntry repositoryEntry) throws Exception
Exception
protected static String getFileEntryBinPath(PortletDataContext portletDataContext, FileEntry fileEntry)
protected static String getFileEntryFileEntryTypeStructureFieldsPath(PortletDataContext portletDataContext, FileEntry fileEntry, String fileEntryTypeUuid, long structureId)
protected static String getFileEntryTypeName(String uuid, long groupId, String name, int count) throws Exception
Exception
PortletImporter#getAssetCategoryName(String, long, long,
String, int)}
,
PortletImporter#getAssetVocabularyName(String, long, String,
int)}
protected static String getFileEntryTypePath(PortletDataContext portletDataContext, DLFileEntryType dlFileEntryType)
protected static String getFileRankPath(PortletDataContext portletDataContext, DLFileRank fileRank)
protected static String getFileShortcutPath(PortletDataContext portletDataContext, DLFileShortcut fileShortcut)
protected static String getFolderName(String uuid, long groupId, long parentFolderId, String name, int count) throws Exception
Exception
PortletImporter#getAssetCategoryName(String, long, long,
String, int)}
,
PortletImporter#getAssetVocabularyName(String, long, String,
int)}
protected static String getFolderPath(PortletDataContext portletDataContext, Folder folder)
protected static String getImportFolderPath(PortletDataContext portletDataContext, long folderId)
protected static String getRepositoryEntryPath(PortletDataContext portletDataContext, RepositoryEntry repositoryEntry)
protected static String getRepositoryPath(PortletDataContext portletDataContext, Repository repository)
protected static void importFileEntryType(PortletDataContext portletDataContext, Element fileEntryTypeElement) throws Exception
Exception
protected static void importFileRank(PortletDataContext portletDataContext, DLFileRank fileRank, String fileEntryUuid) throws Exception
Exception
protected static void importFileShortcut(PortletDataContext portletDataContext, Element fileShortcutElement) throws Exception
Exception
protected static void importFileShortcut(PortletDataContext portletDataContext, Element fileShortcutElement, DLFileShortcut fileShortcut) throws Exception
Exception
protected static void importFolder(PortletDataContext portletDataContext, String folderPath, Element folderElement, Folder folder) throws Exception
Exception
protected static void importFolderFileEntryTypes(PortletDataContext portletDataContext, Element folderElement, Folder folder, ServiceContext serviceContext) throws Exception
Exception
protected static void importMetaData(PortletDataContext portletDataContext, Element fileEntryElement, ServiceContext serviceContext) throws Exception
Exception
protected static boolean isFileEntryTypeExportable(DLFileEntryType dlFileEntryType)
protected static boolean isFileEntryTypeGlobal(long companyId, DLFileEntryType dlFileEntryType) throws PortalException, SystemException
PortalException
SystemException
protected PortletPreferences doDeleteData(PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences) throws Exception
doDeleteData
in class BasePortletDataHandler
Exception
protected String doExportData(PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences) throws Exception
doExportData
in class BasePortletDataHandler
Exception
protected PortletPreferences doImportData(PortletDataContext portletDataContext, String portletId, PortletPreferences portletPreferences, String data) throws Exception
doImportData
in class BasePortletDataHandler
Exception
|
Liferay 6.1.2-ce-ga3 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |