Liferay 7.0-ce-m3

com.liferay.portlet.journal.service
Class JournalFolderServiceUtil

java.lang.Object
  extended by com.liferay.portlet.journal.service.JournalFolderServiceUtil

@ProviderType
public class JournalFolderServiceUtil
extends Object

Provides the remote service utility for JournalFolder. This utility wraps com.liferay.portlet.journal.service.impl.JournalFolderServiceImpl 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:
JournalFolderService, com.liferay.portlet.journal.service.base.JournalFolderServiceBaseImpl, com.liferay.portlet.journal.service.impl.JournalFolderServiceImpl

Constructor Summary
JournalFolderServiceUtil()
           
 
Method Summary
static JournalFolder addFolder(long groupId, long parentFolderId, String name, String description, ServiceContext serviceContext)
           
static void deleteFolder(long folderId)
           
static void deleteFolder(long folderId, boolean includeTrashedEntries)
           
static JournalFolder fetchFolder(long folderId)
           
static String getBeanIdentifier()
          Returns the Spring bean ID for this bean.
static JournalFolder getFolder(long folderId)
           
static List<Long> getFolderIds(long groupId, long folderId)
           
static List<JournalFolder> getFolders(long groupId)
           
static List<JournalFolder> getFolders(long groupId, long parentFolderId)
           
static List<JournalFolder> getFolders(long groupId, long parentFolderId, int status)
           
static List<JournalFolder> getFolders(long groupId, long parentFolderId, int start, int end)
           
static List<JournalFolder> getFolders(long groupId, long parentFolderId, int status, int start, int end)
           
static List<Object> getFoldersAndArticles(long groupId, long folderId, int status, int start, int end, OrderByComparator<?> obc)
           
static List<Object> getFoldersAndArticles(long groupId, long folderId, int start, int end, OrderByComparator<?> obc)
           
static int getFoldersAndArticlesCount(long groupId, List<Long> folderIds, int status)
           
static int getFoldersAndArticlesCount(long groupId, long folderId)
           
static int getFoldersAndArticlesCount(long groupId, long folderId, int status)
           
static int getFoldersCount(long groupId, long parentFolderId)
           
static int getFoldersCount(long groupId, long parentFolderId, int status)
           
static JournalFolderService 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 JournalFolder moveFolder(long folderId, long parentFolderId, ServiceContext serviceContext)
           
static JournalFolder moveFolderFromTrash(long folderId, long parentFolderId, ServiceContext serviceContext)
           
static JournalFolder moveFolderToTrash(long folderId)
           
static void restoreFolderFromTrash(long folderId)
           
static void setBeanIdentifier(String beanIdentifier)
          Sets the Spring bean ID for this bean.
 void setService(JournalFolderService service)
          Deprecated. As of 6.2.0
static void subscribe(long groupId, long folderId)
           
static void unsubscribe(long groupId, long folderId)
           
static JournalFolder updateFolder(long folderId, long parentFolderId, String name, String description, boolean mergeWithParentFolder, ServiceContext serviceContext)
           
static JournalFolder updateFolder(long folderId, long parentFolderId, String name, String description, long[] ddmStructureIds, int restrictionType, boolean mergeWithParentFolder, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JournalFolderServiceUtil

public JournalFolderServiceUtil()
Method Detail

addFolder

public static JournalFolder addFolder(long groupId,
                                      long parentFolderId,
                                      String name,
                                      String description,
                                      ServiceContext serviceContext)
                               throws PortalException
Throws:
PortalException

deleteFolder

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

deleteFolder

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

fetchFolder

public static JournalFolder fetchFolder(long folderId)
                                 throws PortalException
Throws:
PortalException

getBeanIdentifier

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

Returns:
the Spring bean ID for this bean

getFolder

public static JournalFolder getFolder(long folderId)
                               throws PortalException
Throws:
PortalException

getFolderIds

public static List<Long> getFolderIds(long groupId,
                                      long folderId)
                               throws PortalException
Throws:
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 start,
                                             int end)

getFolders

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

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 start,
                                                 int end,
                                                 OrderByComparator<?> obc)

getFoldersAndArticles

public static List<Object> getFoldersAndArticles(long groupId,
                                                 long folderId,
                                                 int status,
                                                 int start,
                                                 int end,
                                                 OrderByComparator<?> obc)

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,
                                             List<Long> folderIds,
                                             int status)

getFoldersCount

public static int getFoldersCount(long groupId,
                                  long parentFolderId)

getFoldersCount

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

getSubfolderIds

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


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,
                                       ServiceContext serviceContext)
                                throws PortalException
Throws:
PortalException

moveFolderFromTrash

public static JournalFolder moveFolderFromTrash(long folderId,
                                                long parentFolderId,
                                                ServiceContext serviceContext)
                                         throws PortalException
Throws:
PortalException

moveFolderToTrash

public static JournalFolder moveFolderToTrash(long folderId)
                                       throws PortalException
Throws:
PortalException

restoreFolderFromTrash

public static void restoreFolderFromTrash(long folderId)
                                   throws PortalException
Throws:
PortalException

setBeanIdentifier

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

Parameters:
beanIdentifier - the Spring bean ID for this bean

subscribe

public static void subscribe(long groupId,
                             long folderId)
                      throws PortalException
Throws:
PortalException

unsubscribe

public static void unsubscribe(long groupId,
                               long folderId)
                        throws PortalException
Throws:
PortalException

updateFolder

public static JournalFolder updateFolder(long folderId,
                                         long parentFolderId,
                                         String name,
                                         String description,
                                         long[] ddmStructureIds,
                                         int restrictionType,
                                         boolean mergeWithParentFolder,
                                         ServiceContext serviceContext)
                                  throws PortalException
Throws:
PortalException

updateFolder

public static JournalFolder updateFolder(long folderId,
                                         long parentFolderId,
                                         String name,
                                         String description,
                                         boolean mergeWithParentFolder,
                                         ServiceContext serviceContext)
                                  throws PortalException
Throws:
PortalException

getService

public static JournalFolderService getService()

setService

@Deprecated
public void setService(JournalFolderService service)
Deprecated. As of 6.2.0


Liferay 7.0-ce-m3