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

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.service.base.DLFolderLocalServiceBaseImpl
      extended by com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl
All Implemented Interfaces:
com.liferay.portlet.documentlibrary.service.DLFolderLocalService

public class DLFolderLocalServiceImpl
extends DLFolderLocalServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan

Field Summary
 
Fields inherited from class com.liferay.portlet.documentlibrary.service.base.DLFolderLocalServiceBaseImpl
counterLocalService, counterService, dlFileEntryFinder, dlFileEntryLocalService, dlFileEntryPersistence, dlFileEntryService, dlFileRankFinder, dlFileRankLocalService, dlFileRankPersistence, dlFileShortcutFinder, dlFileShortcutLocalService, dlFileShortcutPersistence, dlFileShortcutService, dlFileVersionLocalService, dlFileVersionPersistence, dlFolderFinder, dlFolderLocalService, dlFolderPersistence, dlFolderService, dlLocalService, dlService, layoutFinder, layoutLocalService, layoutPersistence, layoutService, lockService, resourceFinder, resourceLocalService, resourcePersistence, resourceService, userFinder, userLocalService, userPersistence, userService, webDAVPropsLocalService, webDAVPropsPersistence
 
Constructor Summary
DLFolderLocalServiceImpl()
           
 
Method Summary
 com.liferay.portlet.documentlibrary.model.DLFolder addFolder(long userId, long groupId, long parentFolderId, java.lang.String name, java.lang.String description, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 com.liferay.portlet.documentlibrary.model.DLFolder addFolder(long userId, long groupId, long parentFolderId, java.lang.String name, java.lang.String description, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 com.liferay.portlet.documentlibrary.model.DLFolder addFolder(java.lang.String uuid, long userId, long groupId, long parentFolderId, java.lang.String name, java.lang.String description, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 com.liferay.portlet.documentlibrary.model.DLFolder addFolder(java.lang.String uuid, long userId, long groupId, long parentFolderId, java.lang.String name, java.lang.String description, java.lang.Boolean addCommunityPermissions, java.lang.Boolean addGuestPermissions, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addFolderResources(com.liferay.portlet.documentlibrary.model.DLFolder folder, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addFolderResources(com.liferay.portlet.documentlibrary.model.DLFolder folder, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addFolderResources(long folderId, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addFolderResources(long folderId, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void deleteFolder(com.liferay.portlet.documentlibrary.model.DLFolder folder)
           
 void deleteFolder(long folderId)
           
 void deleteFolders(long groupId)
           
 java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(java.util.List<java.lang.Long> folderIds, int start, int end)
           
 java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(long folderId, int start, int end)
           
 int getFileEntriesAndFileShortcutsCount(java.util.List<java.lang.Long> folderIds)
           
 int getFileEntriesAndFileShortcutsCount(long folderId)
           
 com.liferay.portlet.documentlibrary.model.DLFolder getFolder(long folderId)
           
 com.liferay.portlet.documentlibrary.model.DLFolder getFolder(long groupId, long parentFolderId, java.lang.String name)
           
 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(long companyId)
           
 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(long groupId, long parentFolderId)
           
 java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(long groupId, long parentFolderId, int start, int end)
           
 java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(java.util.List<java.lang.Long> folderIds, int start, int end)
           
 java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(long folderId, int start, int end)
           
 int getFoldersAndFileEntriesAndFileShortcutsCount(java.util.List<java.lang.Long> folderIds)
           
 int getFoldersAndFileEntriesAndFileShortcutsCount(long folderId)
           
 int getFoldersCount(long groupId, long parentFolderId)
           
protected  long getParentFolderId(com.liferay.portlet.documentlibrary.model.DLFolder folder, long parentFolderId)
           
protected  long getParentFolderId(long groupId, long parentFolderId)
           
 void getSubfolderIds(java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
           
 void reIndex(java.lang.String[] ids)
           
 com.liferay.portal.kernel.search.Hits search(long companyId, long groupId, long userId, long[] folderIds, java.lang.String keywords, int start, int end)
           
 com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(long folderId, long parentFolderId, java.lang.String name, java.lang.String description)
           
protected  void validate(long folderId, long groupId, long parentFolderId, java.lang.String name)
           
protected  void validate(long groupId, long parentFolderId, java.lang.String name)
           
 
Methods inherited from class com.liferay.portlet.documentlibrary.service.base.DLFolderLocalServiceBaseImpl
addDLFolder, createDLFolder, deleteDLFolder, deleteDLFolder, dynamicQuery, dynamicQuery, getCounterLocalService, getCounterService, getDLFileEntryFinder, getDLFileEntryLocalService, getDLFileEntryPersistence, getDLFileEntryService, getDLFileRankFinder, getDLFileRankLocalService, getDLFileRankPersistence, getDLFileShortcutFinder, getDLFileShortcutLocalService, getDLFileShortcutPersistence, getDLFileShortcutService, getDLFileVersionLocalService, getDLFileVersionPersistence, getDLFolder, getDLFolderFinder, getDLFolderLocalService, getDLFolderPersistence, getDLFolders, getDLFoldersCount, getDLFolderService, getDLLocalService, getDLService, getLayoutFinder, getLayoutLocalService, getLayoutPersistence, getLayoutService, getLockService, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, 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, setLayoutFinder, setLayoutLocalService, setLayoutPersistence, setLayoutService, setLockService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, setWebDAVPropsLocalService, setWebDAVPropsPersistence, updateDLFolder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLFolderLocalServiceImpl

public DLFolderLocalServiceImpl()
Method Detail

addFolder

public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(long userId,
                                                                    long groupId,
                                                                    long parentFolderId,
                                                                    java.lang.String name,
                                                                    java.lang.String description,
                                                                    boolean addCommunityPermissions,
                                                                    boolean addGuestPermissions)
                                                             throws com.liferay.portal.PortalException,
                                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFolder

public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(java.lang.String uuid,
                                                                    long userId,
                                                                    long groupId,
                                                                    long parentFolderId,
                                                                    java.lang.String name,
                                                                    java.lang.String description,
                                                                    boolean addCommunityPermissions,
                                                                    boolean addGuestPermissions)
                                                             throws com.liferay.portal.PortalException,
                                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFolder

public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(long userId,
                                                                    long groupId,
                                                                    long parentFolderId,
                                                                    java.lang.String name,
                                                                    java.lang.String description,
                                                                    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

addFolder

public com.liferay.portlet.documentlibrary.model.DLFolder addFolder(java.lang.String uuid,
                                                                    long userId,
                                                                    long groupId,
                                                                    long parentFolderId,
                                                                    java.lang.String name,
                                                                    java.lang.String description,
                                                                    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

addFolderResources

public void addFolderResources(long folderId,
                               boolean addCommunityPermissions,
                               boolean addGuestPermissions)
                        throws com.liferay.portal.PortalException,
                               com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFolderResources

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

addFolderResources

public void addFolderResources(long folderId,
                               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

addFolderResources

public void addFolderResources(com.liferay.portlet.documentlibrary.model.DLFolder folder,
                               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

deleteFolder

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

deleteFolder

public void deleteFolder(com.liferay.portlet.documentlibrary.model.DLFolder folder)
                  throws com.liferay.portal.PortalException,
                         com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

deleteFolders

public void deleteFolders(long groupId)
                   throws com.liferay.portal.PortalException,
                          com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFileEntriesAndFileShortcuts

public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(long folderId,
                                                                       int start,
                                                                       int end)
                                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFileEntriesAndFileShortcuts

public java.util.List<java.lang.Object> getFileEntriesAndFileShortcuts(java.util.List<java.lang.Long> folderIds,
                                                                       int start,
                                                                       int end)
                                                                throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFileEntriesAndFileShortcutsCount

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

getFileEntriesAndFileShortcutsCount

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

getFolder

public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(long folderId)
                                                             throws com.liferay.portal.PortalException,
                                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFolder

public com.liferay.portlet.documentlibrary.model.DLFolder getFolder(long groupId,
                                                                    long parentFolderId,
                                                                    java.lang.String name)
                                                             throws com.liferay.portal.PortalException,
                                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getFoldersAndFileEntriesAndFileShortcuts

public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(long folderId,
                                                                                 int start,
                                                                                 int end)
                                                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFoldersAndFileEntriesAndFileShortcuts

public java.util.List<java.lang.Object> getFoldersAndFileEntriesAndFileShortcuts(java.util.List<java.lang.Long> folderIds,
                                                                                 int start,
                                                                                 int end)
                                                                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFoldersAndFileEntriesAndFileShortcutsCount

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

getFoldersAndFileEntriesAndFileShortcutsCount

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

getFolders

public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(long companyId)
                                                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFolders

public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(long groupId,
                                                                                     long parentFolderId)
                                                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFolders

public java.util.List<com.liferay.portlet.documentlibrary.model.DLFolder> getFolders(long groupId,
                                                                                     long parentFolderId,
                                                                                     int start,
                                                                                     int end)
                                                                              throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFoldersCount

public int getFoldersCount(long groupId,
                           long parentFolderId)
                    throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getSubfolderIds

public void getSubfolderIds(java.util.List<java.lang.Long> folderIds,
                            long groupId,
                            long folderId)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

reIndex

public void reIndex(java.lang.String[] ids)
             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

search

public com.liferay.portal.kernel.search.Hits search(long companyId,
                                                    long groupId,
                                                    long userId,
                                                    long[] folderIds,
                                                    java.lang.String keywords,
                                                    int start,
                                                    int end)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateFolder

public com.liferay.portlet.documentlibrary.model.DLFolder updateFolder(long folderId,
                                                                       long parentFolderId,
                                                                       java.lang.String name,
                                                                       java.lang.String description)
                                                                throws com.liferay.portal.PortalException,
                                                                       com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getParentFolderId

protected long getParentFolderId(long groupId,
                                 long parentFolderId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getParentFolderId

protected long getParentFolderId(com.liferay.portlet.documentlibrary.model.DLFolder folder,
                                 long parentFolderId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

validate

protected void validate(long groupId,
                        long parentFolderId,
                        java.lang.String name)
                 throws com.liferay.portal.PortalException,
                        com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

validate

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