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

java.lang.Object
  extended bycom.liferay.portlet.documentlibrary.service.base.DLFileEntryLocalServiceBaseImpl
      extended bycom.liferay.portlet.documentlibrary.service.impl.DLFileEntryLocalServiceImpl
All Implemented Interfaces:
com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService

public class DLFileEntryLocalServiceImpl
extends DLFileEntryLocalServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan, Harry Mark

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[] byteArray, 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[] byteArray, 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, byte[] byteArray, 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(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)
           
 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.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 getFileEntries(long folderId)
           
 java.util.List getFileEntries(long folderId, int begin, int end)
           
 java.util.List getFileEntries(long folderId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List getFileEntriesAndShortcuts(java.util.List folderIds, int begin, int end)
           
 java.util.List getFileEntriesAndShortcuts(long folderId, int begin, int end)
           
 int getFileEntriesAndShortcutsCount(java.util.List folderIds)
           
 int getFileEntriesAndShortcutsCount(long folderId)
           
 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)
           
protected  long getFolderId(long companyId, long folderId)
           
 int getFoldersFileEntriesCount(java.util.List folderIds)
           
 java.util.List getGroupFileEntries(long groupId, int begin, int end)
           
 java.util.List getGroupFileEntries(long groupId, int begin, int end, com.liferay.portal.kernel.util.OrderByComparator obc)
           
 java.util.List getGroupFileEntries(long groupId, long userId, int begin, int end)
           
 java.util.List getGroupFileEntries(long groupId, long userId, int begin, 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 getNoAssetFileEntries()
           
 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[] byteArray)
           
 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)
           
 
Methods inherited from class com.liferay.portlet.documentlibrary.service.base.DLFileEntryLocalServiceBaseImpl
addDLFileEntry, dynamicQuery, dynamicQuery, 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[] byteArray,
                                                                          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[] byteArray,
                                                                          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(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[] byteArray,
                                                                          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(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

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

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

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

getFileEntries

public java.util.List getFileEntries(long folderId)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFileEntries

public java.util.List getFileEntries(long folderId,
                                     int begin,
                                     int end)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFileEntries

public java.util.List getFileEntries(long folderId,
                                     int begin,
                                     int end,
                                     com.liferay.portal.kernel.util.OrderByComparator obc)
                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFileEntriesAndShortcuts

public java.util.List getFileEntriesAndShortcuts(long folderId,
                                                 int begin,
                                                 int end)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFileEntriesAndShortcuts

public java.util.List getFileEntriesAndShortcuts(java.util.List folderIds,
                                                 int begin,
                                                 int end)
                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFileEntriesAndShortcutsCount

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

getFileEntriesAndShortcutsCount

public int getFileEntriesAndShortcutsCount(java.util.List folderIds)
                                    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

getFoldersFileEntriesCount

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

getGroupFileEntries

public java.util.List getGroupFileEntries(long groupId,
                                          int begin,
                                          int end)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupFileEntries

public java.util.List getGroupFileEntries(long groupId,
                                          int begin,
                                          int end,
                                          com.liferay.portal.kernel.util.OrderByComparator obc)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupFileEntries

public java.util.List getGroupFileEntries(long groupId,
                                          long userId,
                                          int begin,
                                          int end)
                                   throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getGroupFileEntries

public java.util.List getGroupFileEntries(long groupId,
                                          long userId,
                                          int begin,
                                          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 getNoAssetFileEntries()
                                     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[] byteArray)
                                                                      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.PortalException,
                           com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getName

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