Liferay 6.2-ce-ga5

com.liferay.portlet.journal.service.http
Class JournalFolderServiceHttp

java.lang.Object
  extended by com.liferay.portlet.journal.service.http.JournalFolderServiceHttp

public class JournalFolderServiceHttp
extends Object

Provides the HTTP utility for the JournalFolderServiceUtil service utility. The static methods of this class calls the same methods of the service utility. However, the signatures are different because it requires an additional HttpPrincipal parameter.

The benefits of using the HTTP utility is that it is fast and allows for tunneling without the cost of serializing to text. The drawback is that it only works with Java.

Set the property tunnel.servlet.hosts.allowed in portal.properties to configure security.

The HTTP utility is only generated for remote services.

See Also:
JournalFolderServiceSoap, HttpPrincipal, JournalFolderServiceUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
JournalFolderServiceHttp()
           
 
Method Summary
static JournalFolder addFolder(HttpPrincipal httpPrincipal, long groupId, long parentFolderId, String name, String description, ServiceContext serviceContext)
           
static void deleteFolder(HttpPrincipal httpPrincipal, long folderId)
           
static void deleteFolder(HttpPrincipal httpPrincipal, long folderId, boolean includeTrashedEntries)
           
static JournalFolder fetchFolder(HttpPrincipal httpPrincipal, long folderId)
           
static JournalFolder getFolder(HttpPrincipal httpPrincipal, long folderId)
           
static List<Long> getFolderIds(HttpPrincipal httpPrincipal, long groupId, long folderId)
           
static List<JournalFolder> getFolders(HttpPrincipal httpPrincipal, long groupId)
           
static List<JournalFolder> getFolders(HttpPrincipal httpPrincipal, long groupId, long parentFolderId)
           
static List<JournalFolder> getFolders(HttpPrincipal httpPrincipal, long groupId, long parentFolderId, int status)
           
static List<JournalFolder> getFolders(HttpPrincipal httpPrincipal, long groupId, long parentFolderId, int start, int end)
           
static List<JournalFolder> getFolders(HttpPrincipal httpPrincipal, long groupId, long parentFolderId, int status, int start, int end)
           
static List<Object> getFoldersAndArticles(HttpPrincipal httpPrincipal, long groupId, long folderId, int status, int start, int end, OrderByComparator obc)
           
static List<Object> getFoldersAndArticles(HttpPrincipal httpPrincipal, long groupId, long folderId, int start, int end, OrderByComparator obc)
           
static List<Object> getFoldersAndArticles(HttpPrincipal httpPrincipal, long groupId, long userId, long folderId, int status, int start, int end, OrderByComparator obc)
           
static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal, long groupId, List<Long> folderIds, int status)
           
static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal, long groupId, long folderId)
           
static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal, long groupId, long folderId, int status)
           
static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal, long groupId, long userId, long folderId, int status)
           
static int getFoldersCount(HttpPrincipal httpPrincipal, long groupId, long parentFolderId)
           
static int getFoldersCount(HttpPrincipal httpPrincipal, long groupId, long parentFolderId, int status)
           
static void getSubfolderIds(HttpPrincipal httpPrincipal, List<Long> folderIds, long groupId, long folderId)
           
static void getSubfolderIds(HttpPrincipal httpPrincipal, List<Long> folderIds, long groupId, long folderId, boolean recurse)
           
static List<Long> getSubfolderIds(HttpPrincipal httpPrincipal, long groupId, long folderId, boolean recurse)
           
static JournalFolder moveFolder(HttpPrincipal httpPrincipal, long folderId, long parentFolderId, ServiceContext serviceContext)
           
static JournalFolder moveFolderFromTrash(HttpPrincipal httpPrincipal, long folderId, long parentFolderId, ServiceContext serviceContext)
           
static JournalFolder moveFolderToTrash(HttpPrincipal httpPrincipal, long folderId)
           
static void restoreFolderFromTrash(HttpPrincipal httpPrincipal, long folderId)
           
static JournalFolder updateFolder(HttpPrincipal httpPrincipal, long folderId, long parentFolderId, String name, String description, boolean mergeWithParentFolder, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JournalFolderServiceHttp

public JournalFolderServiceHttp()
Method Detail

addFolder

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

deleteFolder

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

deleteFolder

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

fetchFolder

public static JournalFolder fetchFolder(HttpPrincipal httpPrincipal,
                                        long folderId)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

getFolder

public static JournalFolder getFolder(HttpPrincipal httpPrincipal,
                                      long folderId)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getFolderIds

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

getFolders

public static List<JournalFolder> getFolders(HttpPrincipal httpPrincipal,
                                             long groupId)
                                      throws SystemException
Throws:
SystemException

getFolders

public static List<JournalFolder> getFolders(HttpPrincipal httpPrincipal,
                                             long groupId,
                                             long parentFolderId)
                                      throws SystemException
Throws:
SystemException

getFolders

public static List<JournalFolder> getFolders(HttpPrincipal httpPrincipal,
                                             long groupId,
                                             long parentFolderId,
                                             int status)
                                      throws SystemException
Throws:
SystemException

getFolders

public static List<JournalFolder> getFolders(HttpPrincipal httpPrincipal,
                                             long groupId,
                                             long parentFolderId,
                                             int start,
                                             int end)
                                      throws SystemException
Throws:
SystemException

getFolders

public static List<JournalFolder> getFolders(HttpPrincipal httpPrincipal,
                                             long groupId,
                                             long parentFolderId,
                                             int status,
                                             int start,
                                             int end)
                                      throws SystemException
Throws:
SystemException

getFoldersAndArticles

public static List<Object> getFoldersAndArticles(HttpPrincipal httpPrincipal,
                                                 long groupId,
                                                 long folderId,
                                                 int status,
                                                 int start,
                                                 int end,
                                                 OrderByComparator obc)
                                          throws SystemException
Throws:
SystemException

getFoldersAndArticles

public static List<Object> getFoldersAndArticles(HttpPrincipal httpPrincipal,
                                                 long groupId,
                                                 long folderId,
                                                 int start,
                                                 int end,
                                                 OrderByComparator obc)
                                          throws SystemException
Throws:
SystemException

getFoldersAndArticles

public static List<Object> getFoldersAndArticles(HttpPrincipal httpPrincipal,
                                                 long groupId,
                                                 long userId,
                                                 long folderId,
                                                 int status,
                                                 int start,
                                                 int end,
                                                 OrderByComparator obc)
                                          throws SystemException
Throws:
SystemException

getFoldersAndArticlesCount

public static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
                                             long groupId,
                                             List<Long> folderIds,
                                             int status)
                                      throws SystemException
Throws:
SystemException

getFoldersAndArticlesCount

public static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
                                             long groupId,
                                             long folderId)
                                      throws SystemException
Throws:
SystemException

getFoldersAndArticlesCount

public static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
                                             long groupId,
                                             long folderId,
                                             int status)
                                      throws SystemException
Throws:
SystemException

getFoldersAndArticlesCount

public static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
                                             long groupId,
                                             long userId,
                                             long folderId,
                                             int status)
                                      throws SystemException
Throws:
SystemException

getFoldersCount

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

getFoldersCount

public static int getFoldersCount(HttpPrincipal httpPrincipal,
                                  long groupId,
                                  long parentFolderId,
                                  int status)
                           throws SystemException
Throws:
SystemException

getSubfolderIds

public static void getSubfolderIds(HttpPrincipal httpPrincipal,
                                   List<Long> folderIds,
                                   long groupId,
                                   long folderId)
                            throws SystemException
Throws:
SystemException

getSubfolderIds

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

getSubfolderIds

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

moveFolder

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

moveFolderFromTrash

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

moveFolderToTrash

public static JournalFolder moveFolderToTrash(HttpPrincipal httpPrincipal,
                                              long folderId)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

restoreFolderFromTrash

public static void restoreFolderFromTrash(HttpPrincipal httpPrincipal,
                                          long folderId)
                                   throws PortalException,
                                          SystemException
Throws:
PortalException
SystemException

updateFolder

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

Liferay 6.2-ce-ga5