com.liferay.portlet.imagegallery.service.impl
Class IGFolderLocalServiceImpl

java.lang.Object
  extended by com.liferay.portlet.imagegallery.service.base.IGFolderLocalServiceBaseImpl
      extended by com.liferay.portlet.imagegallery.service.impl.IGFolderLocalServiceImpl
All Implemented Interfaces:
com.liferay.portlet.imagegallery.service.IGFolderLocalService

public class IGFolderLocalServiceImpl
extends IGFolderLocalServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan

Field Summary
 
Fields inherited from class com.liferay.portlet.imagegallery.service.base.IGFolderLocalServiceBaseImpl
counterLocalService, counterService, expandoValueLocalService, expandoValuePersistence, expandoValueService, igFolderLocalService, igFolderPersistence, igFolderService, igImageFinder, igImageLocalService, igImagePersistence, igImageService, imageLocalService, imagePersistence, layoutFinder, layoutLocalService, layoutPersistence, layoutService, resourceFinder, resourceLocalService, resourcePersistence, resourceService, userFinder, userLocalService, userPersistence, userService
 
Constructor Summary
IGFolderLocalServiceImpl()
           
 
Method Summary
 com.liferay.portlet.imagegallery.model.IGFolder addFolder(long userId, long parentFolderId, java.lang.String name, java.lang.String description, com.liferay.portal.service.ServiceContext serviceContext)
           
 com.liferay.portlet.imagegallery.model.IGFolder 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.imagegallery.model.IGFolder folder, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addFolderResources(com.liferay.portlet.imagegallery.model.IGFolder 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.imagegallery.model.IGFolder folder)
           
 void deleteFolder(long folderId)
           
 void deleteFolders(long groupId)
           
 com.liferay.portlet.imagegallery.model.IGFolder getFolder(long folderId)
           
 com.liferay.portlet.imagegallery.model.IGFolder getFolder(long groupId, long parentFolderId, java.lang.String name)
           
 java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(long groupId)
           
 java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(long groupId, long parentFolderId)
           
 java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(long groupId, long parentFolderId, int start, int end)
           
 int getFoldersCount(long groupId, long parentFolderId)
           
protected  long getParentFolderId(com.liferay.portlet.imagegallery.model.IGFolder 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.imagegallery.model.IGFolder fromFolder, long toFolderId)
           
 void reIndex(java.lang.String[] ids)
           
protected  void reIndexFolders(long companyId)
           
protected  void reIndexFolders(long companyId, int folderStart, int folderEnd)
           
protected  void reIndexImages(long folderId, int entryStart, int entryEnd)
           
 com.liferay.portal.kernel.search.Hits search(long companyId, long groupId, long[] folderIds, java.lang.String keywords, int start, int end)
           
 com.liferay.portlet.imagegallery.model.IGFolder updateFolder(long folderId, long parentFolderId, java.lang.String name, java.lang.String description, boolean mergeWithParentFolder, com.liferay.portal.service.ServiceContext serviceContext)
           
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.imagegallery.service.base.IGFolderLocalServiceBaseImpl
addIGFolder, createIGFolder, deleteIGFolder, deleteIGFolder, dynamicQuery, dynamicQuery, getCounterLocalService, getCounterService, getExpandoValueLocalService, getExpandoValuePersistence, getExpandoValueService, getIGFolder, getIGFolderLocalService, getIGFolderPersistence, getIGFolders, getIGFoldersCount, getIGFolderService, getIGImageFinder, getIGImageLocalService, getIGImagePersistence, getIGImageService, getImageLocalService, getImagePersistence, getLayoutFinder, getLayoutLocalService, getLayoutPersistence, getLayoutService, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getUserFinder, getUserLocalService, getUserPersistence, getUserService, runSQL, setCounterLocalService, setCounterService, setExpandoValueLocalService, setExpandoValuePersistence, setExpandoValueService, setIGFolderLocalService, setIGFolderPersistence, setIGFolderService, setIGImageFinder, setIGImageLocalService, setIGImagePersistence, setIGImageService, setImageLocalService, setImagePersistence, setLayoutFinder, setLayoutLocalService, setLayoutPersistence, setLayoutService, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setUserFinder, setUserLocalService, setUserPersistence, setUserService, updateIGFolder, updateIGFolder
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IGFolderLocalServiceImpl

public IGFolderLocalServiceImpl()
Method Detail

addFolder

public com.liferay.portlet.imagegallery.model.IGFolder 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.imagegallery.model.IGFolder 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.imagegallery.model.IGFolder 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.imagegallery.model.IGFolder 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.imagegallery.model.IGFolder 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.imagegallery.model.IGFolder 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.imagegallery.model.IGFolder 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

getFolders

public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> getFolders(long groupId)
                                                                           throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFolders

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

getFolders

public java.util.List<com.liferay.portlet.imagegallery.model.IGFolder> 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[] folderIds,
                                                    java.lang.String keywords,
                                                    int start,
                                                    int end)
                                             throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateFolder

public com.liferay.portlet.imagegallery.model.IGFolder updateFolder(long folderId,
                                                                    long parentFolderId,
                                                                    java.lang.String name,
                                                                    java.lang.String description,
                                                                    boolean mergeWithParentFolder,
                                                                    com.liferay.portal.service.ServiceContext serviceContext)
                                                             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.imagegallery.model.IGFolder folder,
                                 long parentFolderId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

mergeFolders

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

reIndexFolders

protected void reIndexFolders(long companyId)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

reIndexFolders

protected void reIndexFolders(long companyId,
                              int folderStart,
                              int folderEnd)
                       throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

reIndexImages

protected void reIndexImages(long folderId,
                             int entryStart,
                             int entryEnd)
                      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