com.liferay.portal.service.http
Class GroupServiceHttp
java.lang.Object
com.liferay.portal.service.http.GroupServiceHttp
public class GroupServiceHttp
- extends Object
This class provides a HTTP utility for the
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.
- See Also:
GroupServiceSoap
,
HttpPrincipal
,
GroupServiceUtil
- ServiceBuilder generated this class. Modifications in this class will be overwritten the next time it is generated.
Method Summary |
static Group |
addGroup(HttpPrincipal httpPrincipal,
long liveGroupId,
String name,
String description,
int type,
String friendlyURL,
boolean site,
boolean active,
ServiceContext serviceContext)
|
static Group |
addGroup(HttpPrincipal httpPrincipal,
String name,
String description,
int type,
String friendlyURL,
boolean site,
boolean active,
ServiceContext serviceContext)
|
static void |
addRoleGroups(HttpPrincipal httpPrincipal,
long roleId,
long[] groupIds)
|
static void |
deleteGroup(HttpPrincipal httpPrincipal,
long groupId)
|
static Group |
getGroup(HttpPrincipal httpPrincipal,
long groupId)
|
static Group |
getGroup(HttpPrincipal httpPrincipal,
long companyId,
String name)
|
static List<Group> |
getManageableSites(HttpPrincipal httpPrincipal,
Collection<Portlet> portlets,
int max)
|
static List<Group> |
getOrganizationsGroups(HttpPrincipal httpPrincipal,
List<Organization> organizations)
|
static Group |
getUserGroup(HttpPrincipal httpPrincipal,
long companyId,
long userId)
|
static List<Group> |
getUserGroupsGroups(HttpPrincipal httpPrincipal,
List<UserGroup> userGroups)
|
static List<Group> |
getUserOrganizationsGroups(HttpPrincipal httpPrincipal,
long userId,
int start,
int end)
|
static List<Group> |
getUserPlaces(HttpPrincipal httpPrincipal,
long userId,
String[] classNames,
boolean includeControlPanel,
int max)
|
static List<Group> |
getUserPlaces(HttpPrincipal httpPrincipal,
long userId,
String[] classNames,
int max)
|
static List<Group> |
getUserPlaces(HttpPrincipal httpPrincipal,
String[] classNames,
int max)
|
static List<Group> |
getUserSites(HttpPrincipal httpPrincipal)
|
static boolean |
hasUserGroup(HttpPrincipal httpPrincipal,
long userId,
long groupId)
|
static List<Group> |
search(HttpPrincipal httpPrincipal,
long companyId,
String name,
String description,
String[] params,
int start,
int end)
|
static int |
searchCount(HttpPrincipal httpPrincipal,
long companyId,
String name,
String description,
String[] params)
|
static void |
setRoleGroups(HttpPrincipal httpPrincipal,
long roleId,
long[] groupIds)
|
static void |
unsetRoleGroups(HttpPrincipal httpPrincipal,
long roleId,
long[] groupIds)
|
static Group |
updateFriendlyURL(HttpPrincipal httpPrincipal,
long groupId,
String friendlyURL)
|
static Group |
updateGroup(HttpPrincipal httpPrincipal,
long groupId,
String typeSettings)
|
static Group |
updateGroup(HttpPrincipal httpPrincipal,
long groupId,
String name,
String description,
int type,
String friendlyURL,
boolean active,
ServiceContext serviceContext)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroupServiceHttp
public GroupServiceHttp()
addGroup
public static Group addGroup(HttpPrincipal httpPrincipal,
long liveGroupId,
String name,
String description,
int type,
String friendlyURL,
boolean site,
boolean active,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addGroup
public static Group addGroup(HttpPrincipal httpPrincipal,
String name,
String description,
int type,
String friendlyURL,
boolean site,
boolean active,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
addRoleGroups
public static void addRoleGroups(HttpPrincipal httpPrincipal,
long roleId,
long[] groupIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
deleteGroup
public static void deleteGroup(HttpPrincipal httpPrincipal,
long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getGroup
public static Group getGroup(HttpPrincipal httpPrincipal,
long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getGroup
public static Group getGroup(HttpPrincipal httpPrincipal,
long companyId,
String name)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getManageableSites
public static List<Group> getManageableSites(HttpPrincipal httpPrincipal,
Collection<Portlet> portlets,
int max)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getOrganizationsGroups
public static List<Group> getOrganizationsGroups(HttpPrincipal httpPrincipal,
List<Organization> organizations)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getUserGroup
public static Group getUserGroup(HttpPrincipal httpPrincipal,
long companyId,
long userId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getUserGroupsGroups
public static List<Group> getUserGroupsGroups(HttpPrincipal httpPrincipal,
List<UserGroup> userGroups)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getUserOrganizationsGroups
public static List<Group> getUserOrganizationsGroups(HttpPrincipal httpPrincipal,
long userId,
int start,
int end)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getUserPlaces
public static List<Group> getUserPlaces(HttpPrincipal httpPrincipal,
long userId,
String[] classNames,
boolean includeControlPanel,
int max)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getUserPlaces
public static List<Group> getUserPlaces(HttpPrincipal httpPrincipal,
long userId,
String[] classNames,
int max)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getUserPlaces
public static List<Group> getUserPlaces(HttpPrincipal httpPrincipal,
String[] classNames,
int max)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
getUserSites
public static List<Group> getUserSites(HttpPrincipal httpPrincipal)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
hasUserGroup
public static boolean hasUserGroup(HttpPrincipal httpPrincipal,
long userId,
long groupId)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
search
public static List<Group> search(HttpPrincipal httpPrincipal,
long companyId,
String name,
String description,
String[] params,
int start,
int end)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
searchCount
public static int searchCount(HttpPrincipal httpPrincipal,
long companyId,
String name,
String description,
String[] params)
throws SystemException
- Throws:
SystemException
setRoleGroups
public static void setRoleGroups(HttpPrincipal httpPrincipal,
long roleId,
long[] groupIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
unsetRoleGroups
public static void unsetRoleGroups(HttpPrincipal httpPrincipal,
long roleId,
long[] groupIds)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateFriendlyURL
public static Group updateFriendlyURL(HttpPrincipal httpPrincipal,
long groupId,
String friendlyURL)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateGroup
public static Group updateGroup(HttpPrincipal httpPrincipal,
long groupId,
String typeSettings)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException
updateGroup
public static Group updateGroup(HttpPrincipal httpPrincipal,
long groupId,
String name,
String description,
int type,
String friendlyURL,
boolean active,
ServiceContext serviceContext)
throws PortalException,
SystemException
- Throws:
PortalException
SystemException