Liferay 6.2-ce-ga5

com.liferay.portal.service.http
Class OrganizationServiceHttp

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

public class OrganizationServiceHttp
extends Object

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

Constructor Summary
OrganizationServiceHttp()
           
 
Method Summary
static void addGroupOrganizations(HttpPrincipal httpPrincipal, long groupId, long[] organizationIds)
           
static Organization addOrganization(HttpPrincipal httpPrincipal, long parentOrganizationId, String name, String type, boolean recursable, long regionId, long countryId, int statusId, String comments, boolean site, List<Address> addresses, List<EmailAddress> emailAddresses, List<OrgLabor> orgLabors, List<Phone> phones, List<Website> websites, ServiceContext serviceContext)
           
static Organization addOrganization(HttpPrincipal httpPrincipal, long parentOrganizationId, String name, String type, boolean recursable, long regionId, long countryId, int statusId, String comments, boolean site, ServiceContext serviceContext)
           
static Organization addOrganization(HttpPrincipal httpPrincipal, long parentOrganizationId, String name, String type, long regionId, long countryId, int statusId, String comments, boolean site, List<Address> addresses, List<EmailAddress> emailAddresses, List<OrgLabor> orgLabors, List<Phone> phones, List<Website> websites, ServiceContext serviceContext)
           
static Organization addOrganization(HttpPrincipal httpPrincipal, long parentOrganizationId, String name, String type, long regionId, long countryId, int statusId, String comments, boolean site, ServiceContext serviceContext)
           
static void addPasswordPolicyOrganizations(HttpPrincipal httpPrincipal, long passwordPolicyId, long[] organizationIds)
           
static void deleteLogo(HttpPrincipal httpPrincipal, long organizationId)
           
static void deleteOrganization(HttpPrincipal httpPrincipal, long organizationId)
           
static List<Organization> getManageableOrganizations(HttpPrincipal httpPrincipal, String actionId, int max)
           
static Organization getOrganization(HttpPrincipal httpPrincipal, long organizationId)
           
static long getOrganizationId(HttpPrincipal httpPrincipal, long companyId, String name)
           
static List<Organization> getOrganizations(HttpPrincipal httpPrincipal, long companyId, long parentOrganizationId)
           
static List<Organization> getOrganizations(HttpPrincipal httpPrincipal, long companyId, long parentOrganizationId, int start, int end)
           
static int getOrganizationsCount(HttpPrincipal httpPrincipal, long companyId, long parentOrganizationId)
           
static List<Organization> getUserOrganizations(HttpPrincipal httpPrincipal, long userId)
           
static void setGroupOrganizations(HttpPrincipal httpPrincipal, long groupId, long[] organizationIds)
           
static void unsetGroupOrganizations(HttpPrincipal httpPrincipal, long groupId, long[] organizationIds)
           
static void unsetPasswordPolicyOrganizations(HttpPrincipal httpPrincipal, long passwordPolicyId, long[] organizationIds)
           
static Organization updateOrganization(HttpPrincipal httpPrincipal, long organizationId, long parentOrganizationId, String name, String type, boolean recursable, long regionId, long countryId, int statusId, String comments, boolean site, List<Address> addresses, List<EmailAddress> emailAddresses, List<OrgLabor> orgLabors, List<Phone> phones, List<Website> websites, ServiceContext serviceContext)
           
static Organization updateOrganization(HttpPrincipal httpPrincipal, long organizationId, long parentOrganizationId, String name, String type, boolean recursable, long regionId, long countryId, int statusId, String comments, boolean site, ServiceContext serviceContext)
           
static Organization updateOrganization(HttpPrincipal httpPrincipal, long organizationId, long parentOrganizationId, String name, String type, long regionId, long countryId, int statusId, String comments, boolean site, List<Address> addresses, List<EmailAddress> emailAddresses, List<OrgLabor> orgLabors, List<Phone> phones, List<Website> websites, ServiceContext serviceContext)
           
static Organization updateOrganization(HttpPrincipal httpPrincipal, long organizationId, long parentOrganizationId, String name, String type, long regionId, long countryId, int statusId, String comments, boolean site, ServiceContext serviceContext)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OrganizationServiceHttp

public OrganizationServiceHttp()
Method Detail

addGroupOrganizations

public static void addGroupOrganizations(HttpPrincipal httpPrincipal,
                                         long groupId,
                                         long[] organizationIds)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

addOrganization

public static Organization addOrganization(HttpPrincipal httpPrincipal,
                                           long parentOrganizationId,
                                           String name,
                                           String type,
                                           boolean recursable,
                                           long regionId,
                                           long countryId,
                                           int statusId,
                                           String comments,
                                           boolean site,
                                           List<Address> addresses,
                                           List<EmailAddress> emailAddresses,
                                           List<OrgLabor> orgLabors,
                                           List<Phone> phones,
                                           List<Website> websites,
                                           ServiceContext serviceContext)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

addOrganization

public static Organization addOrganization(HttpPrincipal httpPrincipal,
                                           long parentOrganizationId,
                                           String name,
                                           String type,
                                           boolean recursable,
                                           long regionId,
                                           long countryId,
                                           int statusId,
                                           String comments,
                                           boolean site,
                                           ServiceContext serviceContext)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

addOrganization

public static Organization addOrganization(HttpPrincipal httpPrincipal,
                                           long parentOrganizationId,
                                           String name,
                                           String type,
                                           long regionId,
                                           long countryId,
                                           int statusId,
                                           String comments,
                                           boolean site,
                                           List<Address> addresses,
                                           List<EmailAddress> emailAddresses,
                                           List<OrgLabor> orgLabors,
                                           List<Phone> phones,
                                           List<Website> websites,
                                           ServiceContext serviceContext)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

addOrganization

public static Organization addOrganization(HttpPrincipal httpPrincipal,
                                           long parentOrganizationId,
                                           String name,
                                           String type,
                                           long regionId,
                                           long countryId,
                                           int statusId,
                                           String comments,
                                           boolean site,
                                           ServiceContext serviceContext)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

addPasswordPolicyOrganizations

public static void addPasswordPolicyOrganizations(HttpPrincipal httpPrincipal,
                                                  long passwordPolicyId,
                                                  long[] organizationIds)
                                           throws PortalException,
                                                  SystemException
Throws:
PortalException
SystemException

deleteLogo

public static void deleteLogo(HttpPrincipal httpPrincipal,
                              long organizationId)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

deleteOrganization

public static void deleteOrganization(HttpPrincipal httpPrincipal,
                                      long organizationId)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

getManageableOrganizations

public static List<Organization> getManageableOrganizations(HttpPrincipal httpPrincipal,
                                                            String actionId,
                                                            int max)
                                                     throws PortalException,
                                                            SystemException
Throws:
PortalException
SystemException

getOrganization

public static Organization getOrganization(HttpPrincipal httpPrincipal,
                                           long organizationId)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

getOrganizationId

public static long getOrganizationId(HttpPrincipal httpPrincipal,
                                     long companyId,
                                     String name)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

getOrganizations

public static List<Organization> getOrganizations(HttpPrincipal httpPrincipal,
                                                  long companyId,
                                                  long parentOrganizationId)
                                           throws SystemException
Throws:
SystemException

getOrganizations

public static List<Organization> getOrganizations(HttpPrincipal httpPrincipal,
                                                  long companyId,
                                                  long parentOrganizationId,
                                                  int start,
                                                  int end)
                                           throws SystemException
Throws:
SystemException

getOrganizationsCount

public static int getOrganizationsCount(HttpPrincipal httpPrincipal,
                                        long companyId,
                                        long parentOrganizationId)
                                 throws SystemException
Throws:
SystemException

getUserOrganizations

public static List<Organization> getUserOrganizations(HttpPrincipal httpPrincipal,
                                                      long userId)
                                               throws PortalException,
                                                      SystemException
Throws:
PortalException
SystemException

setGroupOrganizations

public static void setGroupOrganizations(HttpPrincipal httpPrincipal,
                                         long groupId,
                                         long[] organizationIds)
                                  throws PortalException,
                                         SystemException
Throws:
PortalException
SystemException

unsetGroupOrganizations

public static void unsetGroupOrganizations(HttpPrincipal httpPrincipal,
                                           long groupId,
                                           long[] organizationIds)
                                    throws PortalException,
                                           SystemException
Throws:
PortalException
SystemException

unsetPasswordPolicyOrganizations

public static void unsetPasswordPolicyOrganizations(HttpPrincipal httpPrincipal,
                                                    long passwordPolicyId,
                                                    long[] organizationIds)
                                             throws PortalException,
                                                    SystemException
Throws:
PortalException
SystemException

updateOrganization

public static Organization updateOrganization(HttpPrincipal httpPrincipal,
                                              long organizationId,
                                              long parentOrganizationId,
                                              String name,
                                              String type,
                                              boolean recursable,
                                              long regionId,
                                              long countryId,
                                              int statusId,
                                              String comments,
                                              boolean site,
                                              List<Address> addresses,
                                              List<EmailAddress> emailAddresses,
                                              List<OrgLabor> orgLabors,
                                              List<Phone> phones,
                                              List<Website> websites,
                                              ServiceContext serviceContext)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

updateOrganization

public static Organization updateOrganization(HttpPrincipal httpPrincipal,
                                              long organizationId,
                                              long parentOrganizationId,
                                              String name,
                                              String type,
                                              boolean recursable,
                                              long regionId,
                                              long countryId,
                                              int statusId,
                                              String comments,
                                              boolean site,
                                              ServiceContext serviceContext)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

updateOrganization

public static Organization updateOrganization(HttpPrincipal httpPrincipal,
                                              long organizationId,
                                              long parentOrganizationId,
                                              String name,
                                              String type,
                                              long regionId,
                                              long countryId,
                                              int statusId,
                                              String comments,
                                              boolean site,
                                              List<Address> addresses,
                                              List<EmailAddress> emailAddresses,
                                              List<OrgLabor> orgLabors,
                                              List<Phone> phones,
                                              List<Website> websites,
                                              ServiceContext serviceContext)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

updateOrganization

public static Organization updateOrganization(HttpPrincipal httpPrincipal,
                                              long organizationId,
                                              long parentOrganizationId,
                                              String name,
                                              String type,
                                              long regionId,
                                              long countryId,
                                              int statusId,
                                              String comments,
                                              boolean site,
                                              ServiceContext serviceContext)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

Liferay 6.2-ce-ga5