com.liferay.portlet.bookmarks.service.impl
Class BookmarksFolderLocalServiceImpl

java.lang.Object
  extended by com.liferay.portlet.bookmarks.service.base.BookmarksFolderLocalServiceBaseImpl
      extended by com.liferay.portlet.bookmarks.service.impl.BookmarksFolderLocalServiceImpl
All Implemented Interfaces:
com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService

public class BookmarksFolderLocalServiceImpl
extends BookmarksFolderLocalServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan

Field Summary
 
Fields inherited from class com.liferay.portlet.bookmarks.service.base.BookmarksFolderLocalServiceBaseImpl
bookmarksEntryFinder, bookmarksEntryLocalService, bookmarksEntryPersistence, bookmarksEntryService, bookmarksFolderLocalService, bookmarksFolderPersistence, bookmarksFolderService, counterLocalService, counterService, resourceFinder, resourceLocalService, resourcePersistence, resourceService, tagsEntryFinder, tagsEntryLocalService, tagsEntryPersistence, tagsEntryService, userFinder, userLocalService, userPersistence, userService
 
Constructor Summary
BookmarksFolderLocalServiceImpl()
           
 
Method Summary
 com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(long userId, long parentFolderId, java.lang.String name, java.lang.String description, com.liferay.portal.service.ServiceContext serviceContext)
           
 com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(java.lang.String uuid, long userId, long parentFolderId, java.lang.String name, java.lang.String description, com.liferay.portal.service.ServiceContext serviceContext)
           
 void addFolderResources(com.liferay.portlet.bookmarks.model.BookmarksFolder folder, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addFolderResources(com.liferay.portlet.bookmarks.model.BookmarksFolder 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.bookmarks.model.BookmarksFolder folder)
           
 void deleteFolder(long folderId)
           
 void deleteFolders(long groupId)
           
 com.liferay.portlet.bookmarks.model.BookmarksFolder getFolder(long folderId)
           
 java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> getFolders(long groupId, long parentFolderId, int start, int end)
           
 int getFoldersCount(long groupId, long parentFolderId)
           
protected  long getParentFolderId(com.liferay.portlet.bookmarks.model.BookmarksFolder folder, long parentFolderId)
           
protected  long getParentFolderId(long groupId, long parentFolderId)
           
 void getSubfolderIds(java.util.List<java.lang.Long> folderIds, long groupId, long folderId)
           
protected  void mergeFolders(com.liferay.portlet.bookmarks.model.BookmarksFolder fromFolder, long toFolderId)
           
 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.bookmarks.model.BookmarksFolder updateFolder(long folderId, long parentFolderId, java.lang.String name, java.lang.String description, boolean mergeWithParentFolder)
           
protected  void validate(java.lang.String name)
           
 
Methods inherited from class com.liferay.portlet.bookmarks.service.base.BookmarksFolderLocalServiceBaseImpl
addBookmarksFolder, createBookmarksFolder, deleteBookmarksFolder, deleteBookmarksFolder, dynamicQuery, dynamicQuery, getBookmarksEntryFinder, getBookmarksEntryLocalService, getBookmarksEntryPersistence, getBookmarksEntryService, getBookmarksFolder, getBookmarksFolderLocalService, getBookmarksFolderPersistence, getBookmarksFolders, getBookmarksFoldersCount, getBookmarksFolderService, getCounterLocalService, getCounterService, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getTagsEntryFinder, getTagsEntryLocalService, getTagsEntryPersistence, getTagsEntryService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, setBookmarksEntryFinder, setBookmarksEntryLocalService, setBookmarksEntryPersistence, setBookmarksEntryService, setBookmarksFolderLocalService, setBookmarksFolderPersistence, setBookmarksFolderService, setCounterLocalService, setCounterService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setTagsEntryFinder, setTagsEntryLocalService, setTagsEntryPersistence, setTagsEntryService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateBookmarksFolder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BookmarksFolderLocalServiceImpl

public BookmarksFolderLocalServiceImpl()
Method Detail

addFolder

public com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(long userId,
                                                                     long parentFolderId,
                                                                     java.lang.String name,
                                                                     java.lang.String description,
                                                                     com.liferay.portal.service.ServiceContext serviceContext)
                                                              throws com.liferay.portal.PortalException,
                                                                     com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

addFolder

public com.liferay.portlet.bookmarks.model.BookmarksFolder addFolder(java.lang.String uuid,
                                                                     long userId,
                                                                     long parentFolderId,
                                                                     java.lang.String name,
                                                                     java.lang.String description,
                                                                     com.liferay.portal.service.ServiceContext serviceContext)
                                                              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.bookmarks.model.BookmarksFolder 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.bookmarks.model.BookmarksFolder 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.bookmarks.model.BookmarksFolder 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

getFolder

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

getFolders

public java.util.List<com.liferay.portlet.bookmarks.model.BookmarksFolder> 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.bookmarks.model.BookmarksFolder updateFolder(long folderId,
                                                                        long parentFolderId,
                                                                        java.lang.String name,
                                                                        java.lang.String description,
                                                                        boolean mergeWithParentFolder)
                                                                 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.bookmarks.model.BookmarksFolder folder,
                                 long parentFolderId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

mergeFolders

protected void mergeFolders(com.liferay.portlet.bookmarks.model.BookmarksFolder fromFolder,
                            long toFolderId)
                     throws com.liferay.portal.PortalException,
                            com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

validate

protected void validate(java.lang.String name)
                 throws com.liferay.portal.PortalException
Throws:
com.liferay.portal.PortalException