com.liferay.portlet.documentlibrary.service.impl
Class DLFileEntryLocalServiceImpl
java.lang.Object
com.liferay.portlet.documentlibrary.service.base.DLFileEntryLocalServiceBaseImpl
com.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl
- All Implemented Interfaces:
- com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService
public class DLFileEntryLocalServiceImpl
- extends DLFileEntryLocalServiceBaseImpl
View Source
For DLFileEntries, the naming convention for some of the variables is not
very informative, due to legacy code. Each DLFileEntry has a corresponding
name and title. The "name" is a unique identifier for a given file and
usually follows the format "1234" whereas the "title" is the actual name
specified by the user (e.g., "Budget.xls").
- Author:
- Brian Wing Shun Chan, Harry Mark
Fields inherited from class com.liferay.portlet.documentlibrary.service.base.DLFileEntryLocalServiceBaseImpl |
assetCategoryFinder, assetCategoryLocalService, assetCategoryPersistence, assetCategoryService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, assetTagFinder, assetTagLocalService, assetTagPersistence, assetTagService, counterLocalService, counterService, dlFileEntryFinder, dlFileEntryLocalService, dlFileEntryPersistence, dlFileEntryService, dlFileRankLocalService, dlFileRankPersistence, dlFileShortcutLocalService, dlFileShortcutPersistence, dlFileShortcutService, dlFileVersionLocalService, dlFileVersionPersistence, dlFileVersionService, dlFolderFinder, dlFolderLocalService, dlFolderPersistence, dlFolderService, dlLocalService, dlService, expandoValueLocalService, expandoValuePersistence, expandoValueService, lockLocalService, lockPersistence, mbDiscussionLocalService, mbDiscussionPersistence, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, ratingsEntryLocalService, ratingsEntryPersistence, ratingsEntryService, ratingsStatsLocalService, ratingsStatsPersistence, resourceFinder, resourceLocalService, resourcePersistence, resourceService, socialActivityFinder, socialActivityLocalService, socialActivityPersistence, userFinder, userLocalService, userPersistence, userService, webDAVPropsLocalService, webDAVPropsPersistence, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence |
Method Summary |
com.liferay.portlet.documentlibrary.model.DLFileEntry |
addFileEntry(java.lang.String uuid,
long userId,
long groupId,
long folderId,
java.lang.String name,
java.lang.String title,
java.lang.String description,
java.lang.String versionDescription,
java.lang.String extraSettings,
byte[] bytes,
com.liferay.portal.service.ServiceContext serviceContext)
|
com.liferay.portlet.documentlibrary.model.DLFileEntry |
addFileEntry(java.lang.String uuid,
long userId,
long groupId,
long folderId,
java.lang.String name,
java.lang.String title,
java.lang.String description,
java.lang.String versionDescription,
java.lang.String extraSettings,
java.io.File file,
com.liferay.portal.service.ServiceContext serviceContext)
|
com.liferay.portlet.documentlibrary.model.DLFileEntry |
addFileEntry(java.lang.String uuid,
long userId,
long groupId,
long folderId,
java.lang.String name,
java.lang.String title,
java.lang.String description,
java.lang.String versionDescription,
java.lang.String extraSettings,
java.io.InputStream is,
long size,
com.liferay.portal.service.ServiceContext serviceContext)
|
void |
addFileEntryResources(com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addFileEntryResources(com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
void |
addFileEntryResources(long fileEntryId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
|
void |
addFileEntryResources(long fileEntryId,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
|
protected void |
addFileVersion(com.liferay.portal.model.User user,
com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
java.lang.String version,
java.lang.String description,
int status)
|
com.liferay.portlet.documentlibrary.model.DLFileEntry |
addOrOverwriteFileEntry(long userId,
long groupId,
long folderId,
java.lang.String name,
java.lang.String sourceName,
java.lang.String title,
java.lang.String description,
java.lang.String versionDescription,
java.lang.String extraSettings,
java.io.File file,
com.liferay.portal.service.ServiceContext serviceContext)
|
void |
deleteFileEntries(long groupId,
long folderId)
|
void |
deleteFileEntry(com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry)
|
void |
deleteFileEntry(long groupId,
long folderId,
java.lang.String name)
|
void |
deleteFileEntry(long groupId,
long folderId,
java.lang.String name,
java.lang.String version)
|
java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> |
getCompanyFileEntries(long companyId,
int start,
int end)
|
java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> |
getCompanyFileEntries(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
int |
getCompanyFileEntriesCount(long companyId)
|
java.io.InputStream |
getFileAsStream(long companyId,
long userId,
long groupId,
long folderId,
java.lang.String name)
|
java.io.InputStream |
getFileAsStream(long companyId,
long userId,
long groupId,
long folderId,
java.lang.String name,
java.lang.String version)
|
java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> |
getFileEntries(long groupId,
long folderId)
|
java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> |
getFileEntries(long groupId,
long folderId,
int start,
int end)
|
java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> |
getFileEntries(long groupId,
long folderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
int |
getFileEntriesCount(long groupId,
long folderId)
|
com.liferay.portlet.documentlibrary.model.DLFileEntry |
getFileEntry(long fileEntryId)
|
com.liferay.portlet.documentlibrary.model.DLFileEntry |
getFileEntry(long groupId,
long folderId,
java.lang.String name)
|
com.liferay.portlet.documentlibrary.model.DLFileEntry |
getFileEntryByTitle(long groupId,
long folderId,
java.lang.String title)
|
com.liferay.portlet.documentlibrary.model.DLFileEntry |
getFileEntryByUuidAndGroupId(java.lang.String uuid,
long groupId)
|
protected long |
getFolderId(long companyId,
long folderId)
|
int |
getFoldersFileEntriesCount(long groupId,
java.util.List<java.lang.Long> folderIds,
int status)
|
java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> |
getGroupFileEntries(long groupId,
int start,
int end)
|
java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> |
getGroupFileEntries(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> |
getGroupFileEntries(long groupId,
long userId,
int start,
int end)
|
java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> |
getGroupFileEntries(long groupId,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
int |
getGroupFileEntriesCount(long groupId)
|
int |
getGroupFileEntriesCount(long groupId,
long userId)
|
protected java.lang.String |
getNextVersion(com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
boolean majorVersion)
|
java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> |
getNoAssetFileEntries()
|
void |
updateAsset(long userId,
com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
long[] assetCategoryIds,
java.lang.String[] assetTagNames)
|
com.liferay.portlet.documentlibrary.model.DLFileEntry |
updateFileEntry(long userId,
long groupId,
long folderId,
long newFolderId,
java.lang.String name,
java.lang.String sourceFileName,
java.lang.String title,
java.lang.String description,
java.lang.String versionDescription,
boolean majorVersion,
java.lang.String extraSettings,
byte[] bytes,
com.liferay.portal.service.ServiceContext serviceContext)
|
com.liferay.portlet.documentlibrary.model.DLFileEntry |
updateFileEntry(long userId,
long groupId,
long folderId,
long newFolderId,
java.lang.String name,
java.lang.String sourceFileName,
java.lang.String title,
java.lang.String description,
java.lang.String versionDescription,
boolean majorVersion,
java.lang.String extraSettings,
java.io.File file,
com.liferay.portal.service.ServiceContext serviceContext)
|
com.liferay.portlet.documentlibrary.model.DLFileEntry |
updateFileEntry(long userId,
long groupId,
long folderId,
long newFolderId,
java.lang.String name,
java.lang.String sourceFileName,
java.lang.String title,
java.lang.String description,
java.lang.String versionDescription,
boolean majorVersion,
java.lang.String extraSettings,
java.io.InputStream is,
long size,
com.liferay.portal.service.ServiceContext serviceContext)
|
com.liferay.portlet.documentlibrary.model.DLFileEntry |
updateWorkflowStatus(long userId,
long fileEntryId,
com.liferay.portal.service.ServiceContext serviceContext)
|
protected void |
validate(long groupId,
long folderId,
long newFolderId,
java.lang.String name,
java.lang.String title,
java.lang.String sourceFileName,
java.io.InputStream is)
|
protected void |
validate(long groupId,
long folderId,
java.lang.String title,
java.io.InputStream is)
|
protected void |
validate(long groupId,
long folderId,
java.lang.String name,
java.lang.String title)
|
Methods inherited from class com.liferay.portlet.documentlibrary.service.base.DLFileEntryLocalServiceBaseImpl |
addDLFileEntry, createDLFileEntry, deleteDLFileEntry, deleteDLFileEntry, dynamicQuery, dynamicQuery, getAssetCategoryFinder, getAssetCategoryLocalService, getAssetCategoryPersistence, getAssetCategoryService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getAssetTagFinder, getAssetTagLocalService, getAssetTagPersistence, getAssetTagService, getCounterLocalService, getCounterService, getDLFileEntries, getDLFileEntriesCount, getDLFileEntry, getDLFileEntryFinder, getDLFileEntryLocalService, getDLFileEntryPersistence, getDLFileEntryService, getDLFileRankLocalService, getDLFileRankPersistence, getDLFileShortcutLocalService, getDLFileShortcutPersistence, getDLFileShortcutService, getDLFileVersionLocalService, getDLFileVersionPersistence, getDLFileVersionService, getDLFolderFinder, getDLFolderLocalService, getDLFolderPersistence, getDLFolderService, getDLLocalService, getDLService, getExpandoValueLocalService, getExpandoValuePersistence, getExpandoValueService, getLockLocalService, getLockPersistence, getMBDiscussionLocalService, getMBDiscussionPersistence, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getRatingsEntryLocalService, getRatingsEntryPersistence, getRatingsEntryService, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getSocialActivityFinder, getSocialActivityLocalService, getSocialActivityPersistence, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWebDAVPropsLocalService, getWebDAVPropsPersistence, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAssetCategoryFinder, setAssetCategoryLocalService, setAssetCategoryPersistence, setAssetCategoryService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setAssetTagFinder, setAssetTagLocalService, setAssetTagPersistence, setAssetTagService, setCounterLocalService, setCounterService, setDLFileEntryFinder, setDLFileEntryLocalService, setDLFileEntryPersistence, setDLFileEntryService, setDLFileRankLocalService, setDLFileRankPersistence, setDLFileShortcutLocalService, setDLFileShortcutPersistence, setDLFileShortcutService, setDLFileVersionLocalService, setDLFileVersionPersistence, setDLFileVersionService, setDLFolderFinder, setDLFolderLocalService, setDLFolderPersistence, setDLFolderService, setDLLocalService, setDLService, setExpandoValueLocalService, setExpandoValuePersistence, setExpandoValueService, setLockLocalService, setLockPersistence, setMBDiscussionLocalService, setMBDiscussionPersistence, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setRatingsEntryLocalService, setRatingsEntryPersistence, setRatingsEntryService, setRatingsStatsLocalService, setRatingsStatsPersistence, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setSocialActivityFinder, setSocialActivityLocalService, setSocialActivityPersistence, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWebDAVPropsLocalService, setWebDAVPropsPersistence, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateDLFileEntry, updateDLFileEntry |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DLFileEntryLocalServiceImpl
public DLFileEntryLocalServiceImpl()
addFileEntry
public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(java.lang.String uuid,
long userId,
long groupId,
long folderId,
java.lang.String name,
java.lang.String title,
java.lang.String description,
java.lang.String versionDescription,
java.lang.String extraSettings,
byte[] bytes,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
addFileEntry
public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(java.lang.String uuid,
long userId,
long groupId,
long folderId,
java.lang.String name,
java.lang.String title,
java.lang.String description,
java.lang.String versionDescription,
java.lang.String extraSettings,
java.io.File file,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
addFileEntry
public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(java.lang.String uuid,
long userId,
long groupId,
long folderId,
java.lang.String name,
java.lang.String title,
java.lang.String description,
java.lang.String versionDescription,
java.lang.String extraSettings,
java.io.InputStream is,
long size,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
addFileEntryResources
public void addFileEntryResources(com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
addFileEntryResources
public void addFileEntryResources(com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
addFileEntryResources
public void addFileEntryResources(long fileEntryId,
boolean addCommunityPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
addFileEntryResources
public void addFileEntryResources(long fileEntryId,
java.lang.String[] communityPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
addOrOverwriteFileEntry
public com.liferay.portlet.documentlibrary.model.DLFileEntry addOrOverwriteFileEntry(long userId,
long groupId,
long folderId,
java.lang.String name,
java.lang.String sourceName,
java.lang.String title,
java.lang.String description,
java.lang.String versionDescription,
java.lang.String extraSettings,
java.io.File file,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
deleteFileEntries
public void deleteFileEntries(long groupId,
long folderId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
deleteFileEntry
public void deleteFileEntry(com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
deleteFileEntry
public void deleteFileEntry(long groupId,
long folderId,
java.lang.String name)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
deleteFileEntry
public void deleteFileEntry(long groupId,
long folderId,
java.lang.String name,
java.lang.String version)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getCompanyFileEntries
public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(long companyId,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getCompanyFileEntries
public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getCompanyFileEntriesCount
public int getCompanyFileEntriesCount(long companyId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFileAsStream
public java.io.InputStream getFileAsStream(long companyId,
long userId,
long groupId,
long folderId,
java.lang.String name)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFileAsStream
public java.io.InputStream getFileAsStream(long companyId,
long userId,
long groupId,
long folderId,
java.lang.String name,
java.lang.String version)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFileEntries
public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(long groupId,
long folderId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFileEntries
public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(long groupId,
long folderId,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFileEntries
public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(long groupId,
long folderId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFileEntriesCount
public int getFileEntriesCount(long groupId,
long folderId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFileEntry
public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(long fileEntryId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFileEntry
public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(long groupId,
long folderId,
java.lang.String name)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFileEntryByTitle
public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(long groupId,
long folderId,
java.lang.String title)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFileEntryByUuidAndGroupId
public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(java.lang.String uuid,
long groupId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
getFoldersFileEntriesCount
public int getFoldersFileEntriesCount(long groupId,
java.util.List<java.lang.Long> folderIds,
int status)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getGroupFileEntries
public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(long groupId,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getGroupFileEntries
public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getGroupFileEntries
public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(long groupId,
long userId,
int start,
int end)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getGroupFileEntries
public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(long groupId,
long userId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getGroupFileEntriesCount
public int getGroupFileEntriesCount(long groupId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getGroupFileEntriesCount
public int getGroupFileEntriesCount(long groupId,
long userId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getNoAssetFileEntries
public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
updateAsset
public void updateAsset(long userId,
com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
long[] assetCategoryIds,
java.lang.String[] assetTagNames)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updateFileEntry
public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(long userId,
long groupId,
long folderId,
long newFolderId,
java.lang.String name,
java.lang.String sourceFileName,
java.lang.String title,
java.lang.String description,
java.lang.String versionDescription,
boolean majorVersion,
java.lang.String extraSettings,
byte[] bytes,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updateFileEntry
public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(long userId,
long groupId,
long folderId,
long newFolderId,
java.lang.String name,
java.lang.String sourceFileName,
java.lang.String title,
java.lang.String description,
java.lang.String versionDescription,
boolean majorVersion,
java.lang.String extraSettings,
java.io.File file,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updateFileEntry
public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(long userId,
long groupId,
long folderId,
long newFolderId,
java.lang.String name,
java.lang.String sourceFileName,
java.lang.String title,
java.lang.String description,
java.lang.String versionDescription,
boolean majorVersion,
java.lang.String extraSettings,
java.io.InputStream is,
long size,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
updateWorkflowStatus
public com.liferay.portlet.documentlibrary.model.DLFileEntry updateWorkflowStatus(long userId,
long fileEntryId,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
addFileVersion
protected void addFileVersion(com.liferay.portal.model.User user,
com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
java.lang.String version,
java.lang.String description,
int status)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getFolderId
protected long getFolderId(long companyId,
long folderId)
throws com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.SystemException
getNextVersion
protected java.lang.String getNextVersion(com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
boolean majorVersion)
validate
protected void validate(long groupId,
long folderId,
long newFolderId,
java.lang.String name,
java.lang.String title,
java.lang.String sourceFileName,
java.io.InputStream is)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
validate
protected void validate(long groupId,
long folderId,
java.lang.String title,
java.io.InputStream is)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException
validate
protected void validate(long groupId,
long folderId,
java.lang.String name,
java.lang.String title)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException
- Throws:
com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.SystemException