Class JournalFolderServiceUtil

java.lang.Object
com.liferay.journal.service.JournalFolderServiceUtil

public class JournalFolderServiceUtil extends Object
Provides the remote service utility for JournalFolder. This utility wraps com.liferay.journal.service.impl.JournalFolderServiceImpl and is an 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:
Generated:
  • Constructor Details

    • JournalFolderServiceUtil

      public JournalFolderServiceUtil()
  • Method Details

    • addFolder

      public static JournalFolder addFolder(String externalReferenceCode, long groupId, long parentFolderId, String name, String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteFolder

      public static void deleteFolder(long folderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteFolder

      public static void deleteFolder(long folderId, boolean includeTrashedEntries) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchFolder

      public static JournalFolder fetchFolder(long folderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getDDMStructures

      public static List<com.liferay.dynamic.data.mapping.model.DDMStructure> getDDMStructures(long[] groupIds, long folderId, int restrictionType) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getDDMStructures

      public static List<com.liferay.dynamic.data.mapping.model.DDMStructure> getDDMStructures(long[] groupIds, long folderId, int restrictionType, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.dynamic.data.mapping.model.DDMStructure> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFolder

      public static JournalFolder getFolder(long folderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFolderByExternalReferenceCode

      public static JournalFolder getFolderByExternalReferenceCode(long groupId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFolderIds

      public static List<Long> getFolderIds(long groupId, long folderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getFolders

      public static List<JournalFolder> getFolders(long groupId)
    • getFolders

      public static List<JournalFolder> getFolders(long groupId, long parentFolderId)
    • getFolders

      public static List<JournalFolder> getFolders(long groupId, long parentFolderId, int status)
    • getFolders

      public static List<JournalFolder> getFolders(long groupId, long parentFolderId, int start, int end)
    • getFolders

      public static List<JournalFolder> getFolders(long groupId, long parentFolderId, int status, int start, int end)
    • getFoldersAndArticles

      public static List<Object> getFoldersAndArticles(long groupId, long folderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator)
    • getFoldersAndArticles

      public static List<Object> getFoldersAndArticles(long groupId, long folderId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator)
    • getFoldersAndArticles

      public static List<Object> getFoldersAndArticles(long groupId, long userId, long folderId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator)
    • getFoldersAndArticles

      public static List<Object> getFoldersAndArticles(long groupId, long userId, long folderId, int status, Locale locale, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator)
    • getFoldersAndArticles

      public static List<Object> getFoldersAndArticles(long groupId, long userId, long folderId, long ddmStructureId, int status, Locale locale, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator)
    • getFoldersAndArticles

      public static List<Object> getFoldersAndArticles(long groupId, long userId, long folderId, long ddmStructureId, int status, Locale locale, int[] excludedStatuses, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<?> orderByComparator)
    • getFoldersAndArticlesCount

      public static int getFoldersAndArticlesCount(long groupId, List<Long> folderIds, int status)
    • getFoldersAndArticlesCount

      public static int getFoldersAndArticlesCount(long groupId, long folderId)
    • getFoldersAndArticlesCount

      public static int getFoldersAndArticlesCount(long groupId, long folderId, int status)
    • getFoldersAndArticlesCount

      public static int getFoldersAndArticlesCount(long groupId, long userId, long folderId, int status)
    • getFoldersAndArticlesCount

      public static int getFoldersAndArticlesCount(long groupId, long userId, long folderId, long ddmStructureId, int status)
    • getFoldersAndArticlesCount

      public static int getFoldersAndArticlesCount(long groupId, long userId, long folderId, long ddmStructureId, int[] excludedStatuses, int status)
    • getFoldersCount

      public static int getFoldersCount(long groupId, long parentFolderId)
    • getFoldersCount

      public static int getFoldersCount(long groupId, long parentFolderId, int status)
    • getOSGiServiceIdentifier

      public static String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Returns:
      the OSGi service identifier
    • getSubfolderIds

      public static void getSubfolderIds(List<Long> folderIds, long groupId, long folderId, boolean recurse)
    • getSubfolderIds

      public static List<Long> getSubfolderIds(long groupId, long folderId, boolean recurse)
    • moveFolder

      public static JournalFolder moveFolder(long folderId, long parentFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveFolderFromTrash

      public static JournalFolder moveFolderFromTrash(long folderId, long parentFolderId, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveFolderToTrash

      public static JournalFolder moveFolderToTrash(long folderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • restoreFolderFromTrash

      public static void restoreFolderFromTrash(long folderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchDDMStructures

      public static List<com.liferay.dynamic.data.mapping.model.DDMStructure> searchDDMStructures(long companyId, long[] groupIds, long folderId, int restrictionType, String keywords, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.dynamic.data.mapping.model.DDMStructure> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • searchDDMStructuresCount

      public static int searchDDMStructuresCount(long companyId, long[] groupIds, long folderId, int restrictionType, String keywords) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • subscribe

      public static void subscribe(long groupId, long folderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • unsubscribe

      public static void unsubscribe(long groupId, long folderId) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateFolder

      public static JournalFolder updateFolder(long groupId, long folderId, long parentFolderId, String name, String description, boolean mergeWithParentFolder, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateFolder

      public static JournalFolder updateFolder(long groupId, long folderId, long parentFolderId, String name, String description, long[] ddmStructureIds, int restrictionType, boolean mergeWithParentFolder, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getService

      public static JournalFolderService getService()