com.liferay.portlet.documentlibrary.service
Interface DLFolderLocalService


public interface DLFolderLocalService

View Source

ServiceBuilder generated this class. Modifications in this class will be overwritten the next time is generated.

This interface defines the service. The default implementation is com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl. Modify methods in that class and rerun ServiceBuilder to populate this class and all other generated classes.

This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.

Author:
Brian Wing Shun Chan
See Also:
DLFolderServiceFactory, DLFolderServiceUtil

Method Summary
 DLFolder addDLFolder(DLFolder model)
           
 DLFolder addFolder(long userId, long plid, long parentFolderId, java.lang.String name, java.lang.String description, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 DLFolder addFolder(long userId, long plid, 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)
           
 DLFolder addFolder(long userId, long plid, long parentFolderId, java.lang.String name, java.lang.String description, java.lang.String[] communityPermissions, java.lang.String[] guestPermissions)
           
 void addFolderResources(DLFolder folder, boolean addCommunityPermissions, boolean addGuestPermissions)
           
 void addFolderResources(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)
           
 DLFolder addFolderToGroup(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 deleteFolder(DLFolder folder)
           
 void deleteFolder(long folderId)
           
 void deleteFolders(long groupId)
           
 java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
           
 java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer, int begin, int end)
           
 DLFolder getFolder(long folderId)
           
 DLFolder getFolder(long parentFolderId, java.lang.String name)
           
 java.util.List getFolders(long companyId)
           
 java.util.List getFolders(long groupId, long parentFolderId)
           
 java.util.List getFolders(long groupId, long parentFolderId, int begin, int end)
           
 int getFoldersCount(long groupId, long parentFolderId)
           
 void getSubfolderIds(java.util.List folderIds, long groupId, long folderId)
           
 void reIndex(java.lang.String[] ids)
           
 com.liferay.portal.kernel.search.Hits search(long companyId, long groupId, long[] folderIds, java.lang.String keywords)
           
 DLFolder updateDLFolder(DLFolder model)
           
 DLFolder updateFolder(long folderId, long parentFolderId, java.lang.String name, java.lang.String description)
           
 

Method Detail

addDLFolder

public DLFolder addDLFolder(DLFolder model)
                     throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

dynamicQuery

public java.util.List dynamicQuery(com.liferay.portal.kernel.dao.DynamicQueryInitializer queryInitializer,
                                   int begin,
                                   int end)
                            throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

updateDLFolder

public DLFolder updateDLFolder(DLFolder model)
                        throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

addFolder

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

addFolder

public DLFolder addFolder(long userId,
                          long plid,
                          long parentFolderId,
                          java.lang.String name,
                          java.lang.String description,
                          java.lang.String[] communityPermissions,
                          java.lang.String[] guestPermissions)
                   throws com.liferay.portal.SystemException,
                          com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

addFolder

public DLFolder addFolder(long userId,
                          long plid,
                          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.SystemException,
                          com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

addFolderToGroup

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

addFolderResources

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

addFolderResources

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

addFolderResources

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

addFolderResources

public void addFolderResources(DLFolder folder,
                               java.lang.String[] communityPermissions,
                               java.lang.String[] guestPermissions)
                        throws com.liferay.portal.SystemException,
                               com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

deleteFolder

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

deleteFolder

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

deleteFolders

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

getFolder

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

getFolder

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

getFolders

public java.util.List getFolders(long companyId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFolders

public java.util.List getFolders(long groupId,
                                 long parentFolderId)
                          throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

getFolders

public java.util.List getFolders(long groupId,
                                 long parentFolderId,
                                 int begin,
                                 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 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)
                                             throws com.liferay.portal.SystemException,
                                                    com.liferay.portal.PortalException
Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException

updateFolder

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