Liferay 7.0-ce-m6

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

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

@ProviderType
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 List<DDMStructure> getDDMStructures(HttpPrincipal httpPrincipal, long[] groupIds, long folderId, int restrictionType)
           
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 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 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 void subscribe(HttpPrincipal httpPrincipal, long groupId, long folderId)
           
static void unsubscribe(HttpPrincipal httpPrincipal, long groupId, long folderId)
           
static JournalFolder updateFolder(HttpPrincipal httpPrincipal, long groupId, long folderId, long parentFolderId, String name, String description, boolean mergeWithParentFolder, ServiceContext serviceContext)
           
static JournalFolder updateFolder(HttpPrincipal httpPrincipal, long groupId, 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

JournalFolderServiceHttp

public JournalFolderServiceHttp()
Method Detail

addFolder

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

deleteFolder

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

deleteFolder

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

fetchFolder

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

getDDMStructures

public static List<DDMStructure> getDDMStructures(HttpPrincipal httpPrincipal,
                                                  long[] groupIds,
                                                  long folderId,
                                                  int restrictionType)
                                           throws PortalException
Throws:
PortalException

getFolder

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

getFolderIds

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

getFolders

public static List<JournalFolder> getFolders(HttpPrincipal httpPrincipal,
                                             long groupId)

getFolders

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

getFolders

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

getFolders

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

getFolders

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

getFoldersAndArticles

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

getFoldersAndArticles

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

getFoldersAndArticlesCount

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

getFoldersAndArticlesCount

public static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
                                             long groupId,
                                             long folderId)

getFoldersAndArticlesCount

public static int getFoldersAndArticlesCount(HttpPrincipal httpPrincipal,
                                             long groupId,
                                             long folderId,
                                             int status)

getFoldersCount

public static int getFoldersCount(HttpPrincipal httpPrincipal,
                                  long groupId,
                                  long parentFolderId)

getFoldersCount

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

getSubfolderIds

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

getSubfolderIds

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

getSubfolderIds

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

moveFolder

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

moveFolderFromTrash

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

moveFolderToTrash

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

restoreFolderFromTrash

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

subscribe

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

unsubscribe

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

updateFolder

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

updateFolder

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

Liferay 7.0-ce-m6