com.liferay.portal.service.http
Class GroupServiceHttp
java.lang.Object
com.liferay.portal.service.http.GroupServiceHttp
- public class GroupServiceHttp
- extends java.lang.Object
View Source
ServiceBuilder generated this class. Modifications in this class will be overwritten
the next time is generated.
This class provides a HTTP utility for the com.liferay.portal.service.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 com.liferay.portal.security.auth.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.
- Author:
- Brian Wing Shun Chan
- See Also:
HttpPrincipal
,
GroupServiceUtil
,
GroupServiceSoap
Method Summary |
static com.liferay.portal.model.Group |
addGroup(HttpPrincipal httpPrincipal,
long liveGroupId,
java.lang.String name,
java.lang.String description,
java.lang.String type,
java.lang.String friendlyURL,
boolean active)
|
static com.liferay.portal.model.Group |
addGroup(HttpPrincipal httpPrincipal,
java.lang.String name,
java.lang.String description,
java.lang.String type,
java.lang.String friendlyURL,
boolean active)
|
static void |
addRoleGroups(HttpPrincipal httpPrincipal,
long roleId,
long[] groupIds)
|
static void |
deleteGroup(HttpPrincipal httpPrincipal,
long groupId)
|
static com.liferay.portal.model.Group |
getGroup(HttpPrincipal httpPrincipal,
long groupId)
|
static com.liferay.portal.model.Group |
getGroup(HttpPrincipal httpPrincipal,
long companyId,
java.lang.String name)
|
static java.util.List |
getOrganizationsGroups(HttpPrincipal httpPrincipal,
java.util.List organizations)
|
static java.util.List |
getUserGroupsGroups(HttpPrincipal httpPrincipal,
java.util.List userGroups)
|
static boolean |
hasUserGroup(HttpPrincipal httpPrincipal,
long userId,
long groupId)
|
static java.util.List |
search(HttpPrincipal httpPrincipal,
long companyId,
java.lang.String name,
java.lang.String description,
java.lang.String[] params,
int begin,
int end)
|
static int |
searchCount(HttpPrincipal httpPrincipal,
long companyId,
java.lang.String name,
java.lang.String description,
java.lang.String[] params)
|
static void |
setRoleGroups(HttpPrincipal httpPrincipal,
long roleId,
long[] groupIds)
|
static void |
unsetRoleGroups(HttpPrincipal httpPrincipal,
long roleId,
long[] groupIds)
|
static com.liferay.portal.model.Group |
updateGroup(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String typeSettings)
|
static com.liferay.portal.model.Group |
updateGroup(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String name,
java.lang.String description,
java.lang.String type,
java.lang.String friendlyURL,
boolean active)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroupServiceHttp
public GroupServiceHttp()
addGroup
public static com.liferay.portal.model.Group addGroup(HttpPrincipal httpPrincipal,
java.lang.String name,
java.lang.String description,
java.lang.String type,
java.lang.String friendlyURL,
boolean active)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
addGroup
public static com.liferay.portal.model.Group addGroup(HttpPrincipal httpPrincipal,
long liveGroupId,
java.lang.String name,
java.lang.String description,
java.lang.String type,
java.lang.String friendlyURL,
boolean active)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
addRoleGroups
public static void addRoleGroups(HttpPrincipal httpPrincipal,
long roleId,
long[] groupIds)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
deleteGroup
public static void deleteGroup(HttpPrincipal httpPrincipal,
long groupId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getGroup
public static com.liferay.portal.model.Group getGroup(HttpPrincipal httpPrincipal,
long groupId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getGroup
public static com.liferay.portal.model.Group getGroup(HttpPrincipal httpPrincipal,
long companyId,
java.lang.String name)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getOrganizationsGroups
public static java.util.List getOrganizationsGroups(HttpPrincipal httpPrincipal,
java.util.List organizations)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getUserGroupsGroups
public static java.util.List getUserGroupsGroups(HttpPrincipal httpPrincipal,
java.util.List userGroups)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
hasUserGroup
public static boolean hasUserGroup(HttpPrincipal httpPrincipal,
long userId,
long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
search
public static java.util.List search(HttpPrincipal httpPrincipal,
long companyId,
java.lang.String name,
java.lang.String description,
java.lang.String[] params,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
searchCount
public static int searchCount(HttpPrincipal httpPrincipal,
long companyId,
java.lang.String name,
java.lang.String description,
java.lang.String[] params)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
setRoleGroups
public static void setRoleGroups(HttpPrincipal httpPrincipal,
long roleId,
long[] groupIds)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
unsetRoleGroups
public static void unsetRoleGroups(HttpPrincipal httpPrincipal,
long roleId,
long[] groupIds)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
updateGroup
public static com.liferay.portal.model.Group updateGroup(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String name,
java.lang.String description,
java.lang.String type,
java.lang.String friendlyURL,
boolean active)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
updateGroup
public static com.liferay.portal.model.Group updateGroup(HttpPrincipal httpPrincipal,
long groupId,
java.lang.String typeSettings)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException