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.
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 statusListTypeId,
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 statusListTypeId,
String comments,
boolean site,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.portal.kernel.model.User |
addOrganizationUserByEmailAddress(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
String emailAddress,
long organizationId,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.portal.kernel.model.Organization |
addOrUpdateOrganization(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
String externalReferenceCode,
long parentOrganizationId,
String name,
String type,
long regionId,
long countryId,
long statusListTypeId,
String comments,
boolean hasLogo,
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 void |
addPasswordPolicyOrganizations(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long passwordPolicyId,
long[] organizationIds) |
static void |
addUserOrganizationByEmailAddress(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
String emailAddress,
long organizationId) |
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 void |
deleteUserOrganizationByEmailAddress(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
String emailAddress,
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 com.liferay.portal.kernel.model.Organization |
getOrganizationByExternalReferenceCode(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
String externalReferenceCode) |
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 |
updateLogo(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long organizationId,
byte[] logoBytes) |
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 statusListTypeId,
String comments,
boolean hasLogo,
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 statusListTypeId,
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 statusListTypeId, 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 statusListTypeId, 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 com.liferay.portal.kernel.model.User addOrganizationUserByEmailAddress(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String emailAddress, long organizationId, 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 addOrUpdateOrganization(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String externalReferenceCode, long parentOrganizationId, String name, String type, long regionId, long countryId, long statusListTypeId, String comments, boolean hasLogo, 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 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 addUserOrganizationByEmailAddress(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String emailAddress, long organizationId) 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 void deleteUserOrganizationByEmailAddress(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String emailAddress, 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 com.liferay.portal.kernel.model.Organization getOrganizationByExternalReferenceCode(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, String externalReferenceCode) 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 updateLogo(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long organizationId, byte[] logoBytes) 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 statusListTypeId, String comments, boolean hasLogo, 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 statusListTypeId, String comments, boolean site, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException