com.liferay.portlet.documentlibrary.service.impl
Class DLFileEntryLocalServiceImpl

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.service.base.DLFileEntryLocalServiceBaseImpl
      extended by 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 "DLFE-1234.xls" whereas the "title" is the actual name specified by the user (e.g., "Budget.xls").

Author:
Brian Wing Shun Chan, Harry Mark

Field Summary
 
Fields inherited from class com.liferay.portlet.documentlibrary.service.base.DLFileEntryLocalServiceBaseImpl
counterLocalService, counterService, dlFileEntryFinder, dlFileEntryLocalService, dlFileEntryPersistence, dlFileEntryService, dlFileRankFinder, dlFileRankLocalService, dlFileRankPersistence, dlFileShortcutFinder, dlFileShortcutLocalService, dlFileShortcutPersistence, dlFileShortcutService, dlFileVersionLocalService, dlFileVersionPersistence, dlFolderFinder, dlFolderLocalService, dlFolderPersistence, dlFolderService, dlLocalService, dlService, lockService, mbDiscussionLocalService, mbDiscussionPersistence, mbMessageFinder, mbMessageLocalService, mbMessagePersistence, mbMessageService, ratingsEntryLocalService, ratingsEntryPersistence, ratingsEntryService, ratingsStatsLocalService, ratingsStatsPersistence, resourceFinder, resourceLocalService, resourcePersistence, resourceService, tagsAssetFinder, tagsAssetLocalService, tagsAssetPersistence, tagsAssetService, tagsEntryFinder, tagsEntryLocalService, tagsEntryPersistence, tagsEntryService, userFinder, userLocalService, userPersistence, userService, webDAVPropsLocalService, webDAVPropsPersistence
 
Constructor Summary
DLFileEntryLocalServiceImpl()
           
 
Method Summary
 com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(long userId, long folderId, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String[] tagsEntries, java.lang.String extraSettings, byte[] bytes, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(long userId, long folderId, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String[] tagsEntries, java.lang.String extraSettings, byte[] bytes, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(long userId, long folderId, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String[] tagsEntries, java.lang.String extraSettings, java.io.File file, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(long userId, long folderId, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String[] tagsEntries, java.lang.String extraSettings, java.io.File file, java.lang.Boolean addCommunityPermissions, java.lang.Boolean addGuestPermissions, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(long userId, long folderId, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String[] tagsEntries, java.lang.String extraSettings, java.io.File file, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(java.lang.String uuid, long userId, long folderId, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String[] tagsEntries, java.lang.String extraSettings, byte[] bytes, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(java.lang.String uuid, long userId, long folderId, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String[] tagsEntries, java.lang.String extraSettings, byte[] bytes, java.lang.Boolean addCommunityPermissions, java.lang.Boolean addGuestPermissions, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(java.lang.String uuid, long userId, long folderId, java.lang.String name, java.lang.String title, java.lang.String description, java.lang.String[] tagsEntries, java.lang.String extraSettings, java.io.InputStream is, long size, java.lang.Boolean addCommunityPermissions, java.lang.Boolean addGuestPermissions, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addFileEntryResources(com.liferay.portlet.documentlibrary.model.DLFolder folder, com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addFileEntryResources(com.liferay.portlet.documentlibrary.model.DLFolder folder, com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addFileEntryResources(long folderId, java.lang.String name, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addFileEntryResources(long folderId, java.lang.String name, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry addOrOverwriteFileEntry(long userId, long folderId, java.lang.String name, java.lang.String sourceName, java.lang.String title, java.lang.String description, java.lang.String[] tagsEntries, java.lang.String extraSettings, java.io.File file, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void deleteFileEntries(long folderId)
           
 void deleteFileEntry(com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry)
           
 void deleteFileEntry(long folderId, java.lang.String name)
           
 void deleteFileEntry(long folderId, java.lang.String name, double 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 folderId, java.lang.String name)
           
 java.io.InputStream getFileAsStream(long companyId, long userId, long folderId, java.lang.String name, double version)
           
 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(long folderId)
           
 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(long folderId, int start, int end)
           
 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(long folderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 int getFileEntriesCount(long folderId)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(long fileEntryId)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(long folderId, java.lang.String name)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(long folderId, java.lang.String titleWithExtension)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(java.lang.String uuid, long groupId)
           
protected  long getFolderId(long companyId, long folderId)
           
 int getFoldersFileEntriesCount(java.util.List<java.lang.Long> folderIds)
           
 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 getName(java.lang.String name)
           
 java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
           
 void reIndex(long fileEntryId)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(long userId, long folderId, long newFolderId, java.lang.String name, java.lang.String sourceFileName, java.lang.String title, java.lang.String description, java.lang.String[] tagsEntries, java.lang.String extraSettings, byte[] bytes)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(long userId, long folderId, long newFolderId, java.lang.String name, java.lang.String sourceFileName, java.lang.String title, java.lang.String description, java.lang.String[] tagsEntries, java.lang.String extraSettings, java.io.File file)
           
 com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(long userId, long folderId, long newFolderId, java.lang.String name, java.lang.String sourceFileName, java.lang.String title, java.lang.String description, java.lang.String[] tagsEntries, java.lang.String extraSettings, java.io.InputStream is, long size)
           
 void updateTagsAsset(long userId, com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry, java.lang.String[] tagsEntries)
           
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 name, java.lang.String title, java.io.InputStream is)
           
 
Methods inherited from class com.liferay.portlet.documentlibrary.service.base.DLFileEntryLocalServiceBaseImpl
addDLFileEntry, createDLFileEntry, deleteDLFileEntry, deleteDLFileEntry, dynamicQuery, dynamicQuery, getCounterLocalService, getCounterService, getDLFileEntries, getDLFileEntriesCount, getDLFileEntry, getDLFileEntryFinder, getDLFileEntryLocalService, getDLFileEntryPersistence, getDLFileEntryService, getDLFileRankFinder, getDLFileRankLocalService, getDLFileRankPersistence, getDLFileShortcutFinder, getDLFileShortcutLocalService, getDLFileShortcutPersistence, getDLFileShortcutService, getDLFileVersionLocalService, getDLFileVersionPersistence, getDLFolderFinder, getDLFolderLocalService, getDLFolderPersistence, getDLFolderService, getDLLocalService, getDLService, getLockService, getMBDiscussionLocalService, getMBDiscussionPersistence, getMBMessageFinder, getMBMessageLocalService, getMBMessagePersistence, getMBMessageService, getRatingsEntryLocalService, getRatingsEntryPersistence, getRatingsEntryService, getRatingsStatsLocalService, getRatingsStatsPersistence, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getTagsAssetFinder, getTagsAssetLocalService, getTagsAssetPersistence, getTagsAssetService, getTagsEntryFinder, getTagsEntryLocalService, getTagsEntryPersistence, getTagsEntryService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, getWebDAVPropsLocalService, getWebDAVPropsPersistence, setCounterLocalService, setCounterService, setDLFileEntryFinder, setDLFileEntryLocalService, setDLFileEntryPersistence, setDLFileEntryService, setDLFileRankFinder, setDLFileRankLocalService, setDLFileRankPersistence, setDLFileShortcutFinder, setDLFileShortcutLocalService, setDLFileShortcutPersistence, setDLFileShortcutService, setDLFileVersionLocalService, setDLFileVersionPersistence, setDLFolderFinder, setDLFolderLocalService, setDLFolderPersistence, setDLFolderService, setDLLocalService, setDLService, setLockService, setMBDiscussionLocalService, setMBDiscussionPersistence, setMBMessageFinder, setMBMessageLocalService, setMBMessagePersistence, setMBMessageService, setRatingsEntryLocalService, setRatingsEntryPersistence, setRatingsEntryService, setRatingsStatsLocalService, setRatingsStatsPersistence, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setTagsAssetFinder, setTagsAssetLocalService, setTagsAssetPersistence, setTagsAssetService, setTagsEntryFinder, setTagsEntryLocalService, setTagsEntryPersistence, setTagsEntryService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWebDAVPropsLocalService, setWebDAVPropsPersistence, updateDLFileEntry
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLFileEntryLocalServiceImpl

public DLFileEntryLocalServiceImpl()
Method Detail

addFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(long userId,
                                                                          long folderId,
                                                                          java.lang.String name,
                                                                          java.lang.String title,
                                                                          java.lang.String description,
                                                                          java.lang.String[] tagsEntries,
                                                                          java.lang.String extraSettings,
                                                                          java.io.File file,
                                                                          boolean addCommunityPermissions,
                                                                          boolean addGuestPermissions)
                                                                   throws com.liferay.portal.PortalException,
                                                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(long userId,
                                                                          long folderId,
                                                                          java.lang.String name,
                                                                          java.lang.String title,
                                                                          java.lang.String description,
                                                                          java.lang.String[] tagsEntries,
                                                                          java.lang.String extraSettings,
                                                                          byte[] bytes,
                                                                          boolean addCommunityPermissions,
                                                                          boolean addGuestPermissions)
                                                                   throws com.liferay.portal.PortalException,
                                                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(java.lang.String uuid,
                                                                          long userId,
                                                                          long folderId,
                                                                          java.lang.String name,
                                                                          java.lang.String title,
                                                                          java.lang.String description,
                                                                          java.lang.String[] tagsEntries,
                                                                          java.lang.String extraSettings,
                                                                          byte[] bytes,
                                                                          boolean addCommunityPermissions,
                                                                          boolean addGuestPermissions)
                                                                   throws com.liferay.portal.PortalException,
                                                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(long userId,
                                                                          long folderId,
                                                                          java.lang.String name,
                                                                          java.lang.String title,
                                                                          java.lang.String description,
                                                                          java.lang.String[] tagsEntries,
                                                                          java.lang.String extraSettings,
                                                                          java.io.File file,
                                                                          java.lang.String[] communityPermissions,
                                                                          java.lang.String[] guestPermissions)
                                                                   throws com.liferay.portal.PortalException,
                                                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(long userId,
                                                                          long folderId,
                                                                          java.lang.String name,
                                                                          java.lang.String title,
                                                                          java.lang.String description,
                                                                          java.lang.String[] tagsEntries,
                                                                          java.lang.String extraSettings,
                                                                          byte[] bytes,
                                                                          java.lang.String[] communityPermissions,
                                                                          java.lang.String[] guestPermissions)
                                                                   throws com.liferay.portal.PortalException,
                                                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(long userId,
                                                                          long folderId,
                                                                          java.lang.String name,
                                                                          java.lang.String title,
                                                                          java.lang.String description,
                                                                          java.lang.String[] tagsEntries,
                                                                          java.lang.String extraSettings,
                                                                          java.io.File file,
                                                                          java.lang.Boolean addCommunityPermissions,
                                                                          java.lang.Boolean addGuestPermissions,
                                                                          java.lang.String[] communityPermissions,
                                                                          java.lang.String[] guestPermissions)
                                                                   throws com.liferay.portal.PortalException,
                                                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(java.lang.String uuid,
                                                                          long userId,
                                                                          long folderId,
                                                                          java.lang.String name,
                                                                          java.lang.String title,
                                                                          java.lang.String description,
                                                                          java.lang.String[] tagsEntries,
                                                                          java.lang.String extraSettings,
                                                                          byte[] bytes,
                                                                          java.lang.Boolean addCommunityPermissions,
                                                                          java.lang.Boolean addGuestPermissions,
                                                                          java.lang.String[] communityPermissions,
                                                                          java.lang.String[] guestPermissions)
                                                                   throws com.liferay.portal.PortalException,
                                                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry addFileEntry(java.lang.String uuid,
                                                                          long userId,
                                                                          long folderId,
                                                                          java.lang.String name,
                                                                          java.lang.String title,
                                                                          java.lang.String description,
                                                                          java.lang.String[] tagsEntries,
                                                                          java.lang.String extraSettings,
                                                                          java.io.InputStream is,
                                                                          long size,
                                                                          java.lang.Boolean addCommunityPermissions,
                                                                          java.lang.Boolean addGuestPermissions,
                                                                          java.lang.String[] communityPermissions,
                                                                          java.lang.String[] guestPermissions)
                                                                   throws com.liferay.portal.PortalException,
                                                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFileEntryResources

public void addFileEntryResources(long folderId,
                                  java.lang.String name,
                                  boolean addCommunityPermissions,
                                  boolean addGuestPermissions)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFileEntryResources

public void addFileEntryResources(com.liferay.portlet.documentlibrary.model.DLFolder folder,
                                  com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
                                  boolean addCommunityPermissions,
                                  boolean addGuestPermissions)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFileEntryResources

public void addFileEntryResources(long folderId,
                                  java.lang.String name,
                                  java.lang.String[] communityPermissions,
                                  java.lang.String[] guestPermissions)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFileEntryResources

public void addFileEntryResources(com.liferay.portlet.documentlibrary.model.DLFolder folder,
                                  com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
                                  java.lang.String[] communityPermissions,
                                  java.lang.String[] guestPermissions)
                           throws com.liferay.portal.PortalException,
                                  com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addOrOverwriteFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry addOrOverwriteFileEntry(long userId,
                                                                                     long folderId,
                                                                                     java.lang.String name,
                                                                                     java.lang.String sourceName,
                                                                                     java.lang.String title,
                                                                                     java.lang.String description,
                                                                                     java.lang.String[] tagsEntries,
                                                                                     java.lang.String extraSettings,
                                                                                     java.io.File file,
                                                                                     boolean addCommunityPermissions,
                                                                                     boolean addGuestPermissions)
                                                                              throws com.liferay.portal.PortalException,
                                                                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteFileEntries

public void deleteFileEntries(long folderId)
                       throws com.liferay.portal.PortalException,
                              com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteFileEntry

public void deleteFileEntry(long folderId,
                            java.lang.String name)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteFileEntry

public void deleteFileEntry(long folderId,
                            java.lang.String name,
                            double version)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteFileEntry

public void deleteFileEntry(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

getCompanyFileEntries

public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getCompanyFileEntries(long companyId,
                                                                                                   int start,
                                                                                                   int end)
                                                                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.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.SystemException
Throws:
com.liferay.portal.SystemException

getCompanyFileEntriesCount

public int getCompanyFileEntriesCount(long companyId)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFileAsStream

public java.io.InputStream getFileAsStream(long companyId,
                                           long userId,
                                           long folderId,
                                           java.lang.String name)
                                    throws com.liferay.portal.PortalException,
                                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFileAsStream

public java.io.InputStream getFileAsStream(long companyId,
                                           long userId,
                                           long folderId,
                                           java.lang.String name,
                                           double version)
                                    throws com.liferay.portal.PortalException,
                                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFileEntries

public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(long folderId)
                                                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFileEntries

public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(long folderId,
                                                                                            int start,
                                                                                            int end)
                                                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFileEntries

public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getFileEntries(long folderId,
                                                                                            int start,
                                                                                            int end,
                                                                                            com.liferay.portal.kernel.util.OrderByComparator obc)
                                                                                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFileEntriesCount

public int getFileEntriesCount(long folderId)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(long fileEntryId)
                                                                   throws com.liferay.portal.PortalException,
                                                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntry(long folderId,
                                                                          java.lang.String name)
                                                                   throws com.liferay.portal.PortalException,
                                                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFileEntryByUuidAndGroupId

public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByUuidAndGroupId(java.lang.String uuid,
                                                                                          long groupId)
                                                                                   throws com.liferay.portal.PortalException,
                                                                                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFileEntryByTitle

public com.liferay.portlet.documentlibrary.model.DLFileEntry getFileEntryByTitle(long folderId,
                                                                                 java.lang.String titleWithExtension)
                                                                          throws com.liferay.portal.PortalException,
                                                                                 com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFoldersFileEntriesCount

public int getFoldersFileEntriesCount(java.util.List<java.lang.Long> folderIds)
                               throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupFileEntries

public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getGroupFileEntries(long groupId,
                                                                                                 int start,
                                                                                                 int end)
                                                                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.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.SystemException
Throws:
com.liferay.portal.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.SystemException
Throws:
com.liferay.portal.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.SystemException
Throws:
com.liferay.portal.SystemException

getGroupFileEntriesCount

public int getGroupFileEntriesCount(long groupId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupFileEntriesCount

public int getGroupFileEntriesCount(long groupId,
                                    long userId)
                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getNoAssetFileEntries

public java.util.List<com.liferay.portlet.documentlibrary.model.DLFileEntry> getNoAssetFileEntries()
                                                                                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

reIndex

public void reIndex(long fileEntryId)
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(long userId,
                                                                             long folderId,
                                                                             long newFolderId,
                                                                             java.lang.String name,
                                                                             java.lang.String sourceFileName,
                                                                             java.lang.String title,
                                                                             java.lang.String description,
                                                                             java.lang.String[] tagsEntries,
                                                                             java.lang.String extraSettings,
                                                                             java.io.File file)
                                                                      throws com.liferay.portal.PortalException,
                                                                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(long userId,
                                                                             long folderId,
                                                                             long newFolderId,
                                                                             java.lang.String name,
                                                                             java.lang.String sourceFileName,
                                                                             java.lang.String title,
                                                                             java.lang.String description,
                                                                             java.lang.String[] tagsEntries,
                                                                             java.lang.String extraSettings,
                                                                             byte[] bytes)
                                                                      throws com.liferay.portal.PortalException,
                                                                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateFileEntry

public com.liferay.portlet.documentlibrary.model.DLFileEntry updateFileEntry(long userId,
                                                                             long folderId,
                                                                             long newFolderId,
                                                                             java.lang.String name,
                                                                             java.lang.String sourceFileName,
                                                                             java.lang.String title,
                                                                             java.lang.String description,
                                                                             java.lang.String[] tagsEntries,
                                                                             java.lang.String extraSettings,
                                                                             java.io.InputStream is,
                                                                             long size)
                                                                      throws com.liferay.portal.PortalException,
                                                                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

updateTagsAsset

public void updateTagsAsset(long userId,
                            com.liferay.portlet.documentlibrary.model.DLFileEntry fileEntry,
                            java.lang.String[] tagsEntries)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFolderId

protected long getFolderId(long companyId,
                           long folderId)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getName

protected java.lang.String getName(java.lang.String name)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

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.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

validate

protected void validate(long groupId,
                        long folderId,
                        java.lang.String name,
                        java.lang.String title,
                        java.io.InputStream is)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException