Liferay 6.2-ce-ga5

com.liferay.portal.service.http
Class PortalServiceHttp

java.lang.Object
  extended by com.liferay.portal.service.http.PortalServiceHttp

public class PortalServiceHttp
extends Object

Provides the HTTP utility for the PortalServiceUtil 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:
PortalServiceSoap, HttpPrincipal, PortalServiceUtil
ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.

Constructor Summary
PortalServiceHttp()
           
 
Method Summary
static String getAutoDeployDirectory(HttpPrincipal httpPrincipal)
           
static int getBuildNumber(HttpPrincipal httpPrincipal)
           
static void testAddClassName_Rollback(HttpPrincipal httpPrincipal, String classNameValue)
           
static void testAddClassName_Success(HttpPrincipal httpPrincipal, String classNameValue)
           
static void testAddClassNameAndTestTransactionPortletBar_PortalRollback(HttpPrincipal httpPrincipal, String transactionPortletBarText)
           
static void testAddClassNameAndTestTransactionPortletBar_PortletRollback(HttpPrincipal httpPrincipal, String transactionPortletBarText)
           
static void testAddClassNameAndTestTransactionPortletBar_Success(HttpPrincipal httpPrincipal, String transactionPortletBarText)
           
static void testAutoSyncHibernateSessionStateOnTxCreation(HttpPrincipal httpPrincipal)
           
static void testDeleteClassName(HttpPrincipal httpPrincipal)
           
static int testGetBuildNumber(HttpPrincipal httpPrincipal)
           
static void testGetUserId(HttpPrincipal httpPrincipal)
           
static boolean testHasClassName(HttpPrincipal httpPrincipal)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortalServiceHttp

public PortalServiceHttp()
Method Detail

getAutoDeployDirectory

public static String getAutoDeployDirectory(HttpPrincipal httpPrincipal)
                                     throws SystemException
Throws:
SystemException

getBuildNumber

public static int getBuildNumber(HttpPrincipal httpPrincipal)
                          throws SystemException
Throws:
SystemException

testAddClassName_Rollback

public static void testAddClassName_Rollback(HttpPrincipal httpPrincipal,
                                             String classNameValue)
                                      throws SystemException
Throws:
SystemException

testAddClassName_Success

public static void testAddClassName_Success(HttpPrincipal httpPrincipal,
                                            String classNameValue)
                                     throws SystemException
Throws:
SystemException

testAddClassNameAndTestTransactionPortletBar_PortalRollback

public static void testAddClassNameAndTestTransactionPortletBar_PortalRollback(HttpPrincipal httpPrincipal,
                                                                               String transactionPortletBarText)
                                                                        throws SystemException
Throws:
SystemException

testAddClassNameAndTestTransactionPortletBar_PortletRollback

public static void testAddClassNameAndTestTransactionPortletBar_PortletRollback(HttpPrincipal httpPrincipal,
                                                                                String transactionPortletBarText)
                                                                         throws SystemException
Throws:
SystemException

testAddClassNameAndTestTransactionPortletBar_Success

public static void testAddClassNameAndTestTransactionPortletBar_Success(HttpPrincipal httpPrincipal,
                                                                        String transactionPortletBarText)
                                                                 throws SystemException
Throws:
SystemException

testAutoSyncHibernateSessionStateOnTxCreation

public static void testAutoSyncHibernateSessionStateOnTxCreation(HttpPrincipal httpPrincipal)
                                                          throws SystemException
Throws:
SystemException

testDeleteClassName

public static void testDeleteClassName(HttpPrincipal httpPrincipal)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

testGetBuildNumber

public static int testGetBuildNumber(HttpPrincipal httpPrincipal)
                              throws SystemException
Throws:
SystemException

testGetUserId

public static void testGetUserId(HttpPrincipal httpPrincipal)
                          throws SystemException
Throws:
SystemException

testHasClassName

public static boolean testHasClassName(HttpPrincipal httpPrincipal)
                                throws SystemException
Throws:
SystemException

Liferay 6.2-ce-ga5