Liferay 7.0-ce-b4

com.liferay.portal.service.http
Class OrganizationServiceHttp

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

@ProviderType
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, long 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, long statusId, String comments, boolean site, ServiceContext serviceContext)
           
static Organization addOrganization(HttpPrincipal httpPrincipal, long parentOrganizationId, String name, String type, long regionId, long countryId, long 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, long 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 Organization fetchOrganization(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, long 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, long statusId, String comments, boolean site, ServiceContext serviceContext)
           
static Organization updateOrganization(HttpPrincipal httpPrincipal, long organizationId, long parentOrganizationId, String name, String type, long regionId, long countryId, long statusId, String comments, boolean logo, byte[] logoBytes, 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, long 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, long 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
Throws:
PortalException

addOrganization

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

addOrganization

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

addOrganization

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

addOrganization

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

addPasswordPolicyOrganizations

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

deleteLogo

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

deleteOrganization

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

fetchOrganization

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

getManageableOrganizations

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

getOrganization

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

getOrganizationId

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

getOrganizations

public static List<Organization> getOrganizations(HttpPrincipal httpPrincipal,
                                                  long companyId,
                                                  long parentOrganizationId)

getOrganizations

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

getOrganizationsCount

public static int getOrganizationsCount(HttpPrincipal httpPrincipal,
                                        long companyId,
                                        long parentOrganizationId)

getUserOrganizations

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

setGroupOrganizations

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

unsetGroupOrganizations

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

unsetPasswordPolicyOrganizations

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

updateOrganization

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

updateOrganization

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

updateOrganization

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

updateOrganization

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

updateOrganization

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

Liferay 7.0-ce-b4