@ProviderType
public class OrganizationServiceHttp
extends Object
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.
OrganizationServiceSoap
,
HttpPrincipal
,
OrganizationServiceUtil
Constructor and Description |
---|
OrganizationServiceHttp() |
Modifier and Type | Method and Description |
---|---|
static void |
addGroupOrganizations(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long[] organizationIds) |
static com.liferay.portal.kernel.model.Organization |
addOrganization(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long parentOrganizationId,
String name,
String type,
long regionId,
long countryId,
long statusId,
String comments,
boolean site,
List<com.liferay.portal.kernel.model.Address> addresses,
List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses,
List<com.liferay.portal.kernel.model.OrgLabor> orgLabors,
List<com.liferay.portal.kernel.model.Phone> phones,
List<com.liferay.portal.kernel.model.Website> websites,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.portal.kernel.model.Organization |
addOrganization(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long parentOrganizationId,
String name,
String type,
long regionId,
long countryId,
long statusId,
String comments,
boolean site,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static void |
addPasswordPolicyOrganizations(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long passwordPolicyId,
long[] organizationIds) |
static void |
deleteLogo(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long organizationId) |
static void |
deleteOrganization(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long organizationId) |
static com.liferay.portal.kernel.model.Organization |
fetchOrganization(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long organizationId) |
static List<com.liferay.portal.kernel.model.Organization> |
getGtOrganizations(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long gtOrganizationId,
long companyId,
long parentOrganizationId,
int size) |
static com.liferay.portal.kernel.model.Organization |
getOrganization(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long organizationId) |
static long |
getOrganizationId(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
String name) |
static List<com.liferay.portal.kernel.model.Organization> |
getOrganizations(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
long parentOrganizationId) |
static List<com.liferay.portal.kernel.model.Organization> |
getOrganizations(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
long parentOrganizationId,
int start,
int end) |
static List<com.liferay.portal.kernel.model.Organization> |
getOrganizations(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
long parentOrganizationId,
String name,
int start,
int end) |
static int |
getOrganizationsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
long parentOrganizationId) |
static int |
getOrganizationsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
long parentOrganizationId,
String name) |
static List<com.liferay.portal.kernel.model.Organization> |
getUserOrganizations(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long userId) |
static void |
setGroupOrganizations(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long[] organizationIds) |
static void |
unsetGroupOrganizations(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long[] organizationIds) |
static void |
unsetPasswordPolicyOrganizations(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long passwordPolicyId,
long[] organizationIds) |
static com.liferay.portal.kernel.model.Organization |
updateOrganization(com.liferay.portal.kernel.security.auth.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<com.liferay.portal.kernel.model.Address> addresses,
List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses,
List<com.liferay.portal.kernel.model.OrgLabor> orgLabors,
List<com.liferay.portal.kernel.model.Phone> phones,
List<com.liferay.portal.kernel.model.Website> websites,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.portal.kernel.model.Organization |
updateOrganization(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long organizationId,
long parentOrganizationId,
String name,
String type,
long regionId,
long countryId,
long statusId,
String comments,
boolean site,
List<com.liferay.portal.kernel.model.Address> addresses,
List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses,
List<com.liferay.portal.kernel.model.OrgLabor> orgLabors,
List<com.liferay.portal.kernel.model.Phone> phones,
List<com.liferay.portal.kernel.model.Website> websites,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.portal.kernel.model.Organization |
updateOrganization(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long organizationId,
long parentOrganizationId,
String name,
String type,
long regionId,
long countryId,
long statusId,
String comments,
boolean site,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
public static void addGroupOrganizations(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long[] organizationIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.Organization addOrganization(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long parentOrganizationId, String name, String type, long regionId, long countryId, long statusId, String comments, boolean site, List<com.liferay.portal.kernel.model.Address> addresses, List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses, List<com.liferay.portal.kernel.model.OrgLabor> orgLabors, List<com.liferay.portal.kernel.model.Phone> phones, List<com.liferay.portal.kernel.model.Website> websites, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.Organization addOrganization(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long parentOrganizationId, String name, String type, long regionId, long countryId, long statusId, String comments, boolean site, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void addPasswordPolicyOrganizations(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long passwordPolicyId, long[] organizationIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteLogo(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long organizationId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteOrganization(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long organizationId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.Organization fetchOrganization(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long organizationId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.portal.kernel.model.Organization> getGtOrganizations(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long gtOrganizationId, long companyId, long parentOrganizationId, int size)
public static com.liferay.portal.kernel.model.Organization getOrganization(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long organizationId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static long getOrganizationId(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, String name) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.portal.kernel.model.Organization> getOrganizations(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long parentOrganizationId)
public static List<com.liferay.portal.kernel.model.Organization> getOrganizations(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long parentOrganizationId, int start, int end)
public static List<com.liferay.portal.kernel.model.Organization> getOrganizations(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long parentOrganizationId, String name, int start, int end)
public static int getOrganizationsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long parentOrganizationId)
public static int getOrganizationsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long parentOrganizationId, String name) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.portal.kernel.model.Organization> getUserOrganizations(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long userId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void setGroupOrganizations(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long[] organizationIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void unsetGroupOrganizations(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long[] organizationIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void unsetPasswordPolicyOrganizations(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long passwordPolicyId, long[] organizationIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.Organization updateOrganization(com.liferay.portal.kernel.security.auth.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<com.liferay.portal.kernel.model.Address> addresses, List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses, List<com.liferay.portal.kernel.model.OrgLabor> orgLabors, List<com.liferay.portal.kernel.model.Phone> phones, List<com.liferay.portal.kernel.model.Website> websites, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.Organization updateOrganization(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long organizationId, long parentOrganizationId, String name, String type, long regionId, long countryId, long statusId, String comments, boolean site, List<com.liferay.portal.kernel.model.Address> addresses, List<com.liferay.portal.kernel.model.EmailAddress> emailAddresses, List<com.liferay.portal.kernel.model.OrgLabor> orgLabors, List<com.liferay.portal.kernel.model.Phone> phones, List<com.liferay.portal.kernel.model.Website> websites, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.Organization updateOrganization(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long organizationId, long parentOrganizationId, String name, String type, long regionId, long countryId, long statusId, String comments, boolean site, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException