Liferay 6.2-ce-ga5

com.liferay.portlet.documentlibrary.service
Class DLFolderServiceUtil

java.lang.Object
  extended by com.liferay.portlet.documentlibrary.service.DLFolderServiceUtil

@ProviderType
public class DLFolderServiceUtil
extends Object

Provides the remote service utility for DLFolder. This utility wraps com.liferay.portlet.documentlibrary.service.impl.DLFolderServiceImpl and is the primary access point for service operations in application layer code running on a remote server. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.

See Also:
DLFolderService, com.liferay.portlet.documentlibrary.service.base.DLFolderServiceBaseImpl, com.liferay.portlet.documentlibrary.service.impl.DLFolderServiceImpl

Constructor Summary
DLFolderServiceUtil()
           
 
Method Summary
static DLFolder addFolder(long groupId, long repositoryId, boolean mountPoint, long parentFolderId, String name, String description, ServiceContext serviceContext)
           
static void deleteFolder(long folderId)
           
static void deleteFolder(long folderId, boolean includeTrashedEntries)
           
static void deleteFolder(long groupId, long parentFolderId, String name)
           
static String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
static List<Object> getFileEntriesAndFileShortcuts(long groupId, long folderId, int status, int start, int end)
           
static int getFileEntriesAndFileShortcutsCount(long groupId, long folderId, int status)
           
static int getFileEntriesAndFileShortcutsCount(long groupId, long folderId, int status, String[] mimeTypes)
           
static DLFolder getFolder(long folderId)
           
static DLFolder getFolder(long groupId, long parentFolderId, String name)
           
static List<Long> getFolderIds(long groupId, long folderId)
           
static List<DLFolder> getFolders(long groupId, long parentFolderId, int status, boolean includeMountfolders, int start, int end, OrderByComparator obc)
           
static List<DLFolder> getFolders(long groupId, long parentFolderId, int start, int end, OrderByComparator obc)
           
static List<Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId, long folderId, int status, boolean includeMountFolders, int start, int end, OrderByComparator obc)
           
static List<Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId, long folderId, int status, String[] mimeTypes, boolean includeMountFolders, int start, int end, OrderByComparator obc)
           
static int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId, long folderId, int status, boolean includeMountFolders)
           
static int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId, long folderId, int status, String[] mimeTypes, boolean includeMountFolders)
           
static int getFoldersCount(long groupId, long parentFolderId)
           
static int getFoldersCount(long groupId, long parentFolderId, int status, boolean includeMountfolders)
           
static List<DLFolder> getMountFolders(long groupId, long parentFolderId, int start, int end, OrderByComparator obc)
           
static int getMountFoldersCount(long groupId, long parentFolderId)
           
static DLFolderService getService()
           
static void getSubfolderIds(List<Long> folderIds, long groupId, long folderId)
          Deprecated. As of 7.0.0, replaced by getSubfolderIds(List, long, long, boolean)
static void getSubfolderIds(List<Long> folderIds, long groupId, long folderId, boolean recurse)
           
static List<Long> getSubfolderIds(long groupId, long folderId, boolean recurse)
           
static boolean hasFolderLock(long folderId)
           
static boolean hasInheritableLock(long folderId)
           
static boolean isFolderLocked(long folderId)
           
static Lock lockFolder(long folderId)
           
static Lock lockFolder(long folderId, String owner, boolean inheritable, long expirationTime)
           
static DLFolder moveFolder(long folderId, long parentFolderId, ServiceContext serviceContext)
           
static Lock refreshFolderLock(String lockUuid, long companyId, long expirationTime)
           
static void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setService(DLFolderService service)
          Deprecated. As of 6.2.0
static void unlockFolder(long groupId, long parentFolderId, String name, String lockUuid)
           
static void unlockFolder(long folderId, String lockUuid)
           
static DLFolder updateFolder(long folderId, String name, String description, long defaultFileEntryTypeId, List<Long> fileEntryTypeIds, boolean overrideFileEntryTypes, ServiceContext serviceContext)
           
static boolean verifyInheritableLock(long folderId, String lockUuid)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DLFolderServiceUtil

public DLFolderServiceUtil()
Method Detail

getBeanIdentifier

public static String getBeanIdentifier()
Returns the Spring bean ID for this bean.

Returns:
the Spring bean ID for this bean

setBeanIdentifier

public static void setBeanIdentifier(String beanIdentifier)
Sets the Spring bean ID for this bean.

Parameters:
beanIdentifier - the Spring bean ID for this bean

addFolder

public static DLFolder addFolder(long groupId,
                                 long repositoryId,
                                 boolean mountPoint,
                                 long parentFolderId,
                                 String name,
                                 String description,
                                 ServiceContext serviceContext)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

deleteFolder

public static void deleteFolder(long folderId)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

deleteFolder

public static void deleteFolder(long folderId,
                                boolean includeTrashedEntries)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

deleteFolder

public static void deleteFolder(long groupId,
                                long parentFolderId,
                                String name)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

getFileEntriesAndFileShortcuts

public static List<Object> getFileEntriesAndFileShortcuts(long groupId,
                                                          long folderId,
                                                          int status,
                                                          int start,
                                                          int end)
                                                   throws PortalException,
                                                          SystemException
Throws:
PortalException
SystemException

getFileEntriesAndFileShortcutsCount

public static int getFileEntriesAndFileShortcutsCount(long groupId,
                                                      long folderId,
                                                      int status)
                                               throws PortalException,
                                                      SystemException
Throws:
PortalException
SystemException

getFileEntriesAndFileShortcutsCount

public static int getFileEntriesAndFileShortcutsCount(long groupId,
                                                      long folderId,
                                                      int status,
                                                      String[] mimeTypes)
                                               throws PortalException,
                                                      SystemException
Throws:
PortalException
SystemException

getFolder

public static DLFolder getFolder(long folderId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getFolder

public static DLFolder getFolder(long groupId,
                                 long parentFolderId,
                                 String name)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getFolderIds

public static List<Long> getFolderIds(long groupId,
                                      long folderId)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getFolders

public static List<DLFolder> getFolders(long groupId,
                                        long parentFolderId,
                                        int status,
                                        boolean includeMountfolders,
                                        int start,
                                        int end,
                                        OrderByComparator obc)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

getFolders

public static List<DLFolder> getFolders(long groupId,
                                        long parentFolderId,
                                        int start,
                                        int end,
                                        OrderByComparator obc)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

getFoldersAndFileEntriesAndFileShortcuts

public static List<Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId,
                                                                    long folderId,
                                                                    int status,
                                                                    boolean includeMountFolders,
                                                                    int start,
                                                                    int end,
                                                                    OrderByComparator obc)
                                                             throws PortalException,
                                                                    SystemException
Throws:
PortalException
SystemException

getFoldersAndFileEntriesAndFileShortcuts

public static List<Object> getFoldersAndFileEntriesAndFileShortcuts(long groupId,
                                                                    long folderId,
                                                                    int status,
                                                                    String[] mimeTypes,
                                                                    boolean includeMountFolders,
                                                                    int start,
                                                                    int end,
                                                                    OrderByComparator obc)
                                                             throws PortalException,
                                                                    SystemException
Throws:
PortalException
SystemException

getFoldersAndFileEntriesAndFileShortcutsCount

public static int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
                                                                long folderId,
                                                                int status,
                                                                boolean includeMountFolders)
                                                         throws PortalException,
                                                                SystemException
Throws:
PortalException
SystemException

getFoldersAndFileEntriesAndFileShortcutsCount

public static int getFoldersAndFileEntriesAndFileShortcutsCount(long groupId,
                                                                long folderId,
                                                                int status,
                                                                String[] mimeTypes,
                                                                boolean includeMountFolders)
                                                         throws PortalException,
                                                                SystemException
Throws:
PortalException
SystemException

getFoldersCount

public static int getFoldersCount(long groupId,
                                  long parentFolderId)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

getFoldersCount

public static int getFoldersCount(long groupId,
                                  long parentFolderId,
                                  int status,
                                  boolean includeMountfolders)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

getMountFolders

public static List<DLFolder> getMountFolders(long groupId,
                                             long parentFolderId,
                                             int start,
                                             int end,
                                             OrderByComparator obc)
                                      throws PortalException,
                                             SystemException
Throws:
PortalException
SystemException

getMountFoldersCount

public static int getMountFoldersCount(long groupId,
                                       long parentFolderId)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getSubfolderIds

@Deprecated
public static void getSubfolderIds(List<Long> folderIds,
                                              long groupId,
                                              long folderId)
                            throws PortalException,
                                   SystemException
Deprecated. As of 7.0.0, replaced by getSubfolderIds(List, long, long, boolean)

Throws:
PortalException
SystemException

getSubfolderIds

public static void getSubfolderIds(List<Long> folderIds,
                                   long groupId,
                                   long folderId,
                                   boolean recurse)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

getSubfolderIds

public static List<Long> getSubfolderIds(long groupId,
                                         long folderId,
                                         boolean recurse)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

hasFolderLock

public static boolean hasFolderLock(long folderId)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

hasInheritableLock

public static boolean hasInheritableLock(long folderId)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

isFolderLocked

public static boolean isFolderLocked(long folderId)
                              throws SystemException
Throws:
SystemException

lockFolder

public static Lock lockFolder(long folderId)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

lockFolder

public static Lock lockFolder(long folderId,
                              String owner,
                              boolean inheritable,
                              long expirationTime)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

moveFolder

public static DLFolder moveFolder(long folderId,
                                  long parentFolderId,
                                  ServiceContext serviceContext)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

refreshFolderLock

public static Lock refreshFolderLock(String lockUuid,
                                     long companyId,
                                     long expirationTime)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

unlockFolder

public static void unlockFolder(long groupId,
                                long parentFolderId,
                                String name,
                                String lockUuid)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

unlockFolder

public static void unlockFolder(long folderId,
                                String lockUuid)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

updateFolder

public static DLFolder updateFolder(long folderId,
                                    String name,
                                    String description,
                                    long defaultFileEntryTypeId,
                                    List<Long> fileEntryTypeIds,
                                    boolean overrideFileEntryTypes,
                                    ServiceContext serviceContext)
                             throws PortalException,
                                    SystemException
Throws:
PortalException
SystemException

verifyInheritableLock

public static boolean verifyInheritableLock(long folderId,
                                            String lockUuid)
                                     throws PortalException,
                                            SystemException
Throws:
PortalException
SystemException

getService

public static DLFolderService getService()

setService

public void setService(DLFolderService service)
Deprecated. As of 6.2.0


Liferay 6.2-ce-ga5