public class GroupServiceHttp
extends Object
GroupServiceUtil
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 |
---|
GroupServiceHttp() |
Modifier and Type | Method and Description |
---|---|
static com.liferay.portal.kernel.model.Group |
addGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long parentGroupId,
long liveGroupId,
Map<Locale,String> nameMap,
Map<Locale,String> descriptionMap,
int type,
boolean manualMembership,
int membershipRestriction,
String friendlyURL,
boolean site,
boolean inheritContent,
boolean active,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.portal.kernel.model.Group |
addGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long parentGroupId,
long liveGroupId,
Map<Locale,String> nameMap,
Map<Locale,String> descriptionMap,
int type,
boolean manualMembership,
int membershipRestriction,
String friendlyURL,
boolean site,
boolean active,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static void |
addRoleGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long roleId,
long[] groupIds) |
static void |
checkRemoteStagingGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId) |
static void |
deleteGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId) |
static void |
disableStaging(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId) |
static void |
enableStaging(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId) |
static com.liferay.portal.kernel.model.Group |
getCompanyGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId) |
static com.liferay.portal.kernel.model.Group |
getGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId) |
static com.liferay.portal.kernel.model.Group |
getGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
String groupKey) |
static String |
getGroupDisplayURL(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
boolean privateLayout,
boolean secureConnection) |
static List<com.liferay.portal.kernel.model.Group> |
getGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
long parentGroupId,
boolean site) |
static List<com.liferay.portal.kernel.model.Group> |
getGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
long parentGroupId,
boolean site,
int start,
int end) |
static List<com.liferay.portal.kernel.model.Group> |
getGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
long parentGroupId,
String name,
boolean site,
int start,
int end) |
static int |
getGroupsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
long parentGroupId,
boolean site) |
static int |
getGroupsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
long parentGroupId,
String name,
boolean site) |
static int |
getGroupsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
String className,
long parentGroupId) |
static List<com.liferay.portal.kernel.model.Group> |
getGtGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long gtGroupId,
long companyId,
long parentGroupId,
boolean site,
int size) |
static List<com.liferay.portal.kernel.model.Group> |
getManageableSiteGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
Collection<com.liferay.portal.kernel.model.Portlet> portlets,
int max) |
static List<com.liferay.portal.kernel.model.Group> |
getOrganizationsGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
List<com.liferay.portal.kernel.model.Organization> organizations) |
static com.liferay.portal.kernel.model.Group |
getUserGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
long userId) |
static List<com.liferay.portal.kernel.model.Group> |
getUserGroupsGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
List<com.liferay.portal.kernel.model.UserGroup> userGroups) |
static List<com.liferay.portal.kernel.model.Group> |
getUserOrganizationsGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long userId,
int start,
int end) |
static List<com.liferay.portal.kernel.model.Group> |
getUserSitesGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal) |
static List<com.liferay.portal.kernel.model.Group> |
getUserSitesGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long userId,
int start,
int end) |
static List<com.liferay.portal.kernel.model.Group> |
getUserSitesGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long userId,
String[] classNames,
int max) |
static List<com.liferay.portal.kernel.model.Group> |
getUserSitesGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
String[] classNames,
int max) |
static int |
getUserSitesGroupsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal) |
static boolean |
hasUserGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long userId,
long groupId) |
static List<com.liferay.portal.kernel.model.Group> |
search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
long[] classNameIds,
String keywords,
LinkedHashMap<String,Object> params,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> orderByComparator) |
static List<com.liferay.portal.kernel.model.Group> |
search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
long[] classNameIds,
String name,
String description,
LinkedHashMap<String,Object> params,
boolean andOperator,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> orderByComparator) |
static List<com.liferay.portal.kernel.model.Group> |
search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
String name,
String description,
String[] params,
int start,
int end) |
static int |
searchCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
long[] classNameIds,
String keywords,
LinkedHashMap<String,Object> params) |
static int |
searchCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long companyId,
String name,
String description,
String[] params) |
static void |
setRoleGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long roleId,
long[] groupIds) |
static void |
unsetRoleGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long roleId,
long[] groupIds) |
static com.liferay.portal.kernel.model.Group |
updateFriendlyURL(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
String friendlyURL) |
static com.liferay.portal.kernel.model.Group |
updateGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
long parentGroupId,
Map<Locale,String> nameMap,
Map<Locale,String> descriptionMap,
int type,
boolean manualMembership,
int membershipRestriction,
String friendlyURL,
boolean inheritContent,
boolean active,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static com.liferay.portal.kernel.model.Group |
updateGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
String typeSettings) |
static void |
updateStagedPortlets(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal,
long groupId,
Map<String,String> stagedPortletIds) |
public static com.liferay.portal.kernel.model.Group addGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long parentGroupId, long liveGroupId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, int type, boolean manualMembership, int membershipRestriction, String friendlyURL, boolean site, boolean inheritContent, boolean active, 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.Group addGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long parentGroupId, long liveGroupId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, int type, boolean manualMembership, int membershipRestriction, String friendlyURL, boolean site, boolean active, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void addRoleGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long roleId, long[] groupIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void checkRemoteStagingGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void disableStaging(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void enableStaging(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.Group getCompanyGroup(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 com.liferay.portal.kernel.model.Group getGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.Group getGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, String groupKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static String getGroupDisplayURL(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, boolean privateLayout, boolean secureConnection) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.portal.kernel.model.Group> getGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long parentGroupId, boolean site) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.portal.kernel.model.Group> getGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long parentGroupId, boolean site, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.portal.kernel.model.Group> getGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long parentGroupId, String name, boolean site, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getGroupsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long parentGroupId, boolean site) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getGroupsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long parentGroupId, String name, boolean site) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getGroupsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, String className, long parentGroupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.portal.kernel.model.Group> getGtGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long gtGroupId, long companyId, long parentGroupId, boolean site, int size) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.portal.kernel.model.Group> getManageableSiteGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, Collection<com.liferay.portal.kernel.model.Portlet> portlets, int max) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.portal.kernel.model.Group> getOrganizationsGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, List<com.liferay.portal.kernel.model.Organization> organizations) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.Group getUserGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long userId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.portal.kernel.model.Group> getUserGroupsGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, List<com.liferay.portal.kernel.model.UserGroup> userGroups) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.portal.kernel.model.Group> getUserOrganizationsGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long userId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.portal.kernel.model.Group> getUserSitesGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.portal.kernel.model.Group> getUserSitesGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long userId, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.portal.kernel.model.Group> getUserSitesGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long userId, String[] classNames, int max) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.portal.kernel.model.Group> getUserSitesGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, String[] classNames, int max) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int getUserSitesGroupsCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static boolean hasUserGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long userId, long groupId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.portal.kernel.model.Group> search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long[] classNameIds, String keywords, LinkedHashMap<String,Object> params, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.portal.kernel.model.Group> search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long[] classNameIds, String name, String description, LinkedHashMap<String,Object> params, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.kernel.model.Group> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static List<com.liferay.portal.kernel.model.Group> search(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, String name, String description, String[] params, int start, int end) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int searchCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, long[] classNameIds, String keywords, LinkedHashMap<String,Object> params)
public static int searchCount(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long companyId, String name, String description, String[] params)
public static void setRoleGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long roleId, long[] groupIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void unsetRoleGroups(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long roleId, long[] groupIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.Group updateFriendlyURL(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String friendlyURL) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static com.liferay.portal.kernel.model.Group updateGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, long parentGroupId, Map<Locale,String> nameMap, Map<Locale,String> descriptionMap, int type, boolean manualMembership, int membershipRestriction, String friendlyURL, boolean inheritContent, boolean active, 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.Group updateGroup(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, String typeSettings) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void updateStagedPortlets(com.liferay.portal.kernel.security.auth.HttpPrincipal httpPrincipal, long groupId, Map<String,String> stagedPortletIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException