@ProviderType
public class UserGroupServiceHttp
extends Object
UserGroupServiceUtil
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.
UserGroupServiceSoap
,
HttpPrincipal
,
UserGroupServiceUtil
Constructor and Description |
---|
UserGroupServiceHttp() |
Modifier and Type | Method and Description |
---|---|
static void |
addGroupUserGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long[] userGroupIds) |
static void |
addTeamUserGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long teamId,
long[] userGroupIds) |
static com.liferay.portal.kernel.model.UserGroup |
addUserGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
String name,
String description) |
static com.liferay.portal.kernel.model.UserGroup |
addUserGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
String name,
String description,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static void |
deleteUserGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long userGroupId) |
static com.liferay.portal.kernel.model.UserGroup |
fetchUserGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long userGroupId) |
static List<com.liferay.portal.kernel.model.UserGroup> |
getGtUserGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long gtUserGroupId,
long companyId,
long parentUserGroupId,
int size) |
static com.liferay.portal.kernel.model.UserGroup |
getUserGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long userGroupId) |
static com.liferay.portal.kernel.model.UserGroup |
getUserGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
String name) |
static List<com.liferay.portal.kernel.model.UserGroup> |
getUserGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId) |
static List<com.liferay.portal.kernel.model.UserGroup> |
getUserGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
String name,
int start,
int end) |
static int |
getUserGroupsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
String name) |
static List<com.liferay.portal.kernel.model.UserGroup> |
getUserUserGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long userId) |
static void |
unsetGroupUserGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long[] userGroupIds) |
static void |
unsetTeamUserGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long teamId,
long[] userGroupIds) |
static com.liferay.portal.kernel.model.UserGroup |
updateUserGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long userGroupId,
String name,
String description) |
static com.liferay.portal.kernel.model.UserGroup |
updateUserGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long userGroupId,
String name,
String description,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
public static void addGroupUserGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long[] userGroupIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void addTeamUserGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long teamId, long[] userGroupIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.UserGroup addUserGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String name, String description) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.UserGroup addUserGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String name, String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteUserGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long userGroupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.UserGroup fetchUserGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long userGroupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.portal.kernel.model.UserGroup> getGtUserGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long gtUserGroupId, long companyId, long parentUserGroupId, int size)
public static com.liferay.portal.kernel.model.UserGroup getUserGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long userGroupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.UserGroup getUserGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String name) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.portal.kernel.model.UserGroup> getUserGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.portal.kernel.model.UserGroup> getUserGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, String name, int start, int end)
public static int getUserGroupsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, String name)
public static List<com.liferay.portal.kernel.model.UserGroup> getUserUserGroups(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 unsetGroupUserGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long[] userGroupIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void unsetTeamUserGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long teamId, long[] userGroupIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.UserGroup updateUserGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long userGroupId, String name, String description) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.UserGroup updateUserGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long userGroupId, String name, String description, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException