com.liferay.portal.service.GroupServiceWrapper Maven / Gradle / Ivy
Show all versions of portal-service Show documentation
/**
* Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portal.service;
/**
* Provides a wrapper for {@link GroupService}.
*
* @author Brian Wing Shun Chan
* @see GroupService
* @generated
*/
public class GroupServiceWrapper implements GroupService,
ServiceWrapper {
public GroupServiceWrapper(GroupService groupService) {
_groupService = groupService;
}
/**
* Returns the Spring bean ID for this bean.
*
* @return the Spring bean ID for this bean
*/
@Override
public java.lang.String getBeanIdentifier() {
return _groupService.getBeanIdentifier();
}
/**
* Sets the Spring bean ID for this bean.
*
* @param beanIdentifier the Spring bean ID for this bean
*/
@Override
public void setBeanIdentifier(java.lang.String beanIdentifier) {
_groupService.setBeanIdentifier(beanIdentifier);
}
/**
* Adds a group.
*
* @param parentGroupId the primary key of the parent group
* @param liveGroupId the primary key of the live group
* @param name the entity's name
* @param description the group's description (optionally
null
)
* @param type the group's type. For more information see {@link
com.liferay.portal.model.GroupConstants}
* @param friendlyURL the group's friendlyURL (optionally
null
)
* @param site whether the group is to be associated with a main site
* @param active whether the group is active
* @param serviceContext the service context to be applied (optionally
null
). Can set the asset category IDs and asset tag
names for the group, and can set whether the group is for staging
* @return the group
* @throws PortalException if the user did not have permission to add the
group, if a creator could not be found, if the group's
information was invalid, if a layout could not be found, or if a
valid friendly URL could not be created for the group
* @throws SystemException if a system exception occurred
*/
@Override
public com.liferay.portal.model.Group addGroup(long parentGroupId,
long liveGroupId, java.lang.String name, java.lang.String description,
int type, boolean manualMembership, int membershipRestriction,
java.lang.String friendlyURL, boolean site, boolean active,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.addGroup(parentGroupId, liveGroupId, name,
description, type, manualMembership, membershipRestriction,
friendlyURL, site, active, serviceContext);
}
/**
* Adds the group using the group default live group ID.
*
* @param parentGroupId the primary key of the parent group
* @param name the entity's name
* @param description the group's description (optionally
null
)
* @param type the group's type. For more information see {@link
com.liferay.portal.model.GroupConstants}
* @param friendlyURL the group's friendlyURL
* @param site whether the group is to be associated with a main site
* @param active whether the group is active
* @param serviceContext the service context to be applied (optionally
null
). Can set asset category IDs and asset tag
names for the group, and can set whether the group is for
staging
* @return the group
* @throws PortalException if the user did not have permission to add
the group, if a creator could not be found, if the group's
information was invalid, if a layout could not be found, or
if a valid friendly URL could not be created for the group
* @throws SystemException if a system exception occurred
* @deprecated As of 6.2.0, replaced by {@link #addGroup(long, long, String,
String, int, boolean, int, String, boolean, boolean,
ServiceContext)}
*/
@Override
public com.liferay.portal.model.Group addGroup(long parentGroupId,
java.lang.String name, java.lang.String description, int type,
java.lang.String friendlyURL, boolean site, boolean active,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.addGroup(parentGroupId, name, description, type,
friendlyURL, site, active, serviceContext);
}
/**
* @deprecated As of 6.2.0, replaced by {@link #addGroup(long, String,
String, int, String, boolean, boolean, ServiceContext)}
*/
@Override
public com.liferay.portal.model.Group addGroup(java.lang.String name,
java.lang.String description, int type, java.lang.String friendlyURL,
boolean site, boolean active,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.addGroup(name, description, type, friendlyURL,
site, active, serviceContext);
}
/**
* Adds the groups to the role.
*
* @param roleId the primary key of the role
* @param groupIds the primary keys of the groups
* @throws PortalException if the user did not have permission to update the
role
* @throws SystemException if a system exception occurred
*/
@Override
public void addRoleGroups(long roleId, long[] groupIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
_groupService.addRoleGroups(roleId, groupIds);
}
/**
* Checks that the current user is permitted to use the group for Remote
* Staging.
*
* @param groupId the primary key of the group
* @throws PortalException if a group with the primary key could not be
found, if the current user did not have permission to view the
group, or if the group's company was different from the current
user's company
* @throws SystemException if a system exception occurred
*/
@Override
public void checkRemoteStagingGroup(long groupId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
_groupService.checkRemoteStagingGroup(groupId);
}
/**
* Deletes the group.
*
*
* The group is unstaged and its assets and resources including layouts,
* membership requests, subscriptions, teams, blogs, bookmarks, calendar
* events, image gallery, journals, message boards, polls, shopping related
* entities, software catalog, and wikis are also deleted.
*
*
* @param groupId the primary key of the group
* @throws PortalException if the user did not have permission to delete the
group or its assets or resources, if a group with the primary key
could not be found, or if the group was a system group
* @throws SystemException if a system exception occurred
*/
@Override
public void deleteGroup(long groupId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
_groupService.deleteGroup(groupId);
}
@Override
public void disableStaging(long groupId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
_groupService.disableStaging(groupId);
}
@Override
public void enableStaging(long groupId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
_groupService.enableStaging(groupId);
}
/**
* Returns the company group.
*
* @param companyId the primary key of the company
* @return the group associated with the company
* @throws PortalException if a matching group could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public com.liferay.portal.model.Group getCompanyGroup(long companyId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.getCompanyGroup(companyId);
}
/**
* Returns the group with the primary key.
*
* @param groupId the primary key of the group
* @return the group with the primary key
* @throws PortalException if a group with the primary key could not be
found or if the current user did not have permission to view the
group
* @throws SystemException if a system exception occurred
*/
@Override
public com.liferay.portal.model.Group getGroup(long groupId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.getGroup(groupId);
}
/**
* Returns the group with the name.
*
* @param companyId the primary key of the company
* @param name the group's name
* @return the group with the name
* @throws PortalException if a matching group could not be found or if the
current user did not have permission to view the group
* @throws SystemException if a system exception occurred
*/
@Override
public com.liferay.portal.model.Group getGroup(long companyId,
java.lang.String name)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.getGroup(companyId, name);
}
/**
* Returns all the groups that are direct children of the parent group.
*
* @param companyId the primary key of the company
* @param parentGroupId the primary key of the parent group
* @param site whether the group is to be associated with a main site
* @return the matching groups, or null
if no matches were
found
* @throws PortalException if the user did not have permission to view the
group or if a portal exception occurred
* @throws SystemException if a system exception occurred
*/
@Override
public java.util.List getGroups(
long companyId, long parentGroupId, boolean site)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.getGroups(companyId, parentGroupId, site);
}
/**
* Returns a range of all the site groups for which the user has control
* panel access.
*
* @param portlets the portlets to manage
* @param max the upper bound of the range of groups to consider (not
inclusive)
* @return the range of site groups for which the user has Control Panel
access
* @throws PortalException if a portal exception occurred
* @throws SystemException if a system exception occurred
*/
@Override
public java.util.List getManageableSiteGroups(
java.util.Collection portlets, int max)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.getManageableSiteGroups(portlets, max);
}
/**
* Returns a range of all the site groups for which the user has control
* panel access.
*
* @param portlets the portlets to manage
* @param max the upper bound of the range of groups to consider (not
inclusive)
* @return the range of site groups for which the user has Control Panel
access
* @throws PortalException if a portal exception occurred
* @throws SystemException if a system exception occurred
* @deprecated As of 6.2.0, replaced by {@link
#getManageableSiteGroups(Collection, int)}
*/
@Override
public java.util.List getManageableSites(
java.util.Collection portlets, int max)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.getManageableSites(portlets, max);
}
/**
* Returns the groups associated with the organizations.
*
* @param organizations the organizations
* @return the groups associated with the organizations
* @throws PortalException if a portal exception occurred
* @throws SystemException if a system exception occurred
*/
@Override
public java.util.List getOrganizationsGroups(
java.util.List organizations)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.getOrganizationsGroups(organizations);
}
/**
* Returns the group associated with the user.
*
* @param companyId the primary key of the company
* @param userId the primary key of the user
* @return the group associated with the user
* @throws PortalException if a matching group could not be found or if the
current user did not have permission to view the group
* @throws SystemException if a system exception occurred
*/
@Override
public com.liferay.portal.model.Group getUserGroup(long companyId,
long userId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.getUserGroup(companyId, userId);
}
/**
* Returns the groups associated with the user groups.
*
* @param userGroups the user groups
* @return the groups associated with the user groups
* @throws PortalException if any one of the user group's group could not be
found
* @throws SystemException if a system exception occurred
*/
@Override
public java.util.List getUserGroupsGroups(
java.util.List userGroups)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.getUserGroupsGroups(userGroups);
}
/**
* Returns the range of all groups associated with the user's organization
* groups, including the ancestors of the organization groups, unless portal
* property organizations.membership.strict
is set to
* true
.
*
*
* Useful when paginating results. Returns a maximum of end -
* start
instances. start
and end
are not
* primary keys, they are indexes in the result set. Thus, 0
* refers to the first result in the set. Setting both start
* and end
to {@link
* com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
* result set.
*
*
* @param userId the primary key of the user
* @param start the lower bound of the range of groups to consider
* @param end the upper bound of the range of groups to consider (not
inclusive)
* @return the range of groups associated with the user's organizations
* @throws PortalException if a user with the primary key could not be found
or if another portal exception occurred
* @throws SystemException if a system exception occurred
*/
@Override
public java.util.List getUserOrganizationsGroups(
long userId, int start, int end)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.getUserOrganizationsGroups(userId, start, end);
}
/**
* @deprecated As of 6.2.0, replaced by {@link #getUserSitesGroups(long,
String[], boolean, int)}
*/
@Override
public java.util.List getUserPlaces(
long userId, java.lang.String[] classNames,
boolean includeControlPanel, int max)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.getUserPlaces(userId, classNames,
includeControlPanel, max);
}
/**
* Returns the user's groups "sites" associated with the group
* entity class names, including the Control Panel group if the user is
* permitted to view the Control Panel.
*
*
* -
* Class name "User" includes the user's layout set
* group.
*
* -
* Class name "Organization" includes the user's
* immediate organization groups and inherited organization groups.
*
* -
* Class name "Group" includes the user's immediate
* organization groups and site groups.
*
* -
* A
classNames
* value of null
includes the user's layout set group,
* organization groups, inherited organization groups, and site groups.
*
*
*
* @param userId the primary key of the user
* @param classNames the group entity class names (optionally
null
). For more information see {@link
#getUserSitesGroups(long, String[], int)}
* @param max the maximum number of groups to return
* @return the user's groups "sites"
* @throws PortalException if a portal exception occurred
* @throws SystemException if a system exception occurred
* @deprecated As of 6.2.0, replaced by {@link #getUserSitesGroups(long,
String[], int)}
*/
@Override
public java.util.List getUserPlaces(
long userId, java.lang.String[] classNames, int max)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.getUserPlaces(userId, classNames, max);
}
/**
* @deprecated As of 6.2.0, replaced by {@link #getUserSitesGroups(long,
String[], String, boolean, boolean, int, int)}
*/
@Override
public java.util.List getUserPlaces(
long userId, java.lang.String[] classNames, java.lang.String name,
boolean active, boolean includeControlPanel, int start, int end)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.getUserPlaces(userId, classNames, name, active,
includeControlPanel, start, end);
}
/**
* Returns the guest or current user's groups "sites" associated
* with the group entity class names, including the Control Panel group if
* the user is permitted to view the Control Panel.
*
*
* -
* Class name "User" includes the user's layout set
* group.
*
* -
* Class name "Organization" includes the user's
* immediate organization groups and inherited organization groups.
*
* -
* Class name "Group" includes the user's immediate
* organization groups and site groups.
*
* -
* A
classNames
* value of null
includes the user's layout set group,
* organization groups, inherited organization groups, and site groups.
*
*
*
* @param classNames the group entity class names (optionally
null
). For more information see {@link
#getUserSitesGroups(String[], int)}
* @param max the maximum number of groups to return
* @return the user's groups "sites"
* @throws PortalException if a portal exception occurred
* @throws SystemException if a system exception occurred
* @deprecated As of 6.2.0, replaced by {@link #getUserSitesGroups(
String[], int)}
*/
@Override
public java.util.List getUserPlaces(
java.lang.String[] classNames, int max)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.getUserPlaces(classNames, max);
}
/**
* Returns the number of the guest or current user's groups
* "sites" associated with the group entity class names, including
* the Control Panel group if the user is permitted to view the Control
* Panel.
*
* @return the number of user's groups "sites"
* @throws PortalException if a portal exception occurred
* @throws SystemException if a system exception occurred
* @deprecated As of 6.2.0, replaced by {@link #getUserSitesGroupsCount()}
*/
@Override
public int getUserPlacesCount()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.getUserPlacesCount();
}
/**
* Returns the guest or current user's layout set group, organization
* groups, inherited organization groups, and site groups.
*
* @return the user's layout set group, organization groups, and
inherited organization groups, and site groups
* @throws PortalException if a portal exception occurred
* @throws SystemException if a system exception occurred
* @deprecated As of 6.2.0, replaced by {@link #getUserSitesGroups}
*/
@Override
public java.util.List getUserSites()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.getUserSites();
}
@Override
public java.util.List getUserSitesGroups()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.getUserSitesGroups();
}
@Override
public java.util.List getUserSitesGroups(
long userId, java.lang.String[] classNames,
boolean includeControlPanel, int max)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.getUserSitesGroups(userId, classNames,
includeControlPanel, max);
}
/**
* Returns the user's groups "sites" associated with the group
* entity class names, including the Control Panel group if the user is
* permitted to view the Control Panel.
*
*
* -
* Class name "User" includes the user's layout set
* group.
*
* -
* Class name "Organization" includes the user's
* immediate organization groups and inherited organization groups.
*
* -
* Class name "Group" includes the user's immediate
* organization groups and site groups.
*
* -
* A
classNames
* value of null
includes the user's layout set group,
* organization groups, inherited organization groups, and site groups.
*
*
*
* @param userId the primary key of the user
* @param classNames the group entity class names (optionally
null
). For more information see {@link
#getUserSitesGroups(long, String[], boolean, int)}
* @param max the maximum number of groups to return
* @return the user's groups "sites"
* @throws PortalException if a portal exception occurred
* @throws SystemException if a system exception occurred
*/
@Override
public java.util.List getUserSitesGroups(
long userId, java.lang.String[] classNames, int max)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.getUserSitesGroups(userId, classNames, max);
}
@Override
public java.util.List getUserSitesGroups(
long userId, java.lang.String[] classNames, java.lang.String name,
boolean active, boolean includeControlPanel, int start, int end)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.getUserSitesGroups(userId, classNames, name,
active, includeControlPanel, start, end);
}
/**
* Returns the guest or current user's groups "sites" associated
* with the group entity class names, including the Control Panel group if
* the user is permitted to view the Control Panel.
*
*
* -
* Class name "User" includes the user's layout set
* group.
*
* -
* Class name "Organization" includes the user's
* immediate organization groups and inherited organization groups.
*
* -
* Class name "Group" includes the user's immediate
* organization groups and site groups.
*
* -
* A
classNames
* value of null
includes the user's layout set group,
* organization groups, inherited organization groups, and site groups.
*
*
*
* @param classNames the group entity class names (optionally
null
). For more information see {@link
#getUserSitesGroups(long, String[], boolean, int)}
* @param max the maximum number of groups to return
* @return the user's groups "sites"
* @throws PortalException if a portal exception occurred
* @throws SystemException if a system exception occurred
*/
@Override
public java.util.List getUserSitesGroups(
java.lang.String[] classNames, int max)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.getUserSitesGroups(classNames, max);
}
/**
* Returns the number of the guest or current user's groups
* "sites" associated with the group entity class names, including
* the Control Panel group if the user is permitted to view the Control
* Panel.
*
* @return the number of user's groups "sites"
* @throws PortalException if a portal exception occurred
* @throws SystemException if a system exception occurred
*/
@Override
public int getUserSitesGroupsCount()
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.getUserSitesGroupsCount();
}
/**
* Returns true
if the user is associated with the group,
* including the user's inherited organizations and user groups. System and
* staged groups are not included.
*
* @param userId the primary key of the user
* @param groupId the primary key of the group
* @return true
if the user is associated with the group;
false
otherwise
* @throws PortalException if the current user did not have permission to
view the user or group members
* @throws SystemException if a system exception occurred
*/
@Override
public boolean hasUserGroup(long userId, long groupId)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.hasUserGroup(userId, groupId);
}
/**
* Returns an ordered range of all the site groups and organization groups
* that match the name and description, optionally including the user's
* inherited organization groups and user groups. System and staged groups
* are not included.
*
*
* Useful when paginating results. Returns a maximum of end -
* start
instances. start
and end
are not
* primary keys, they are indexes in the result set. Thus, 0
* refers to the first result in the set. Setting both start
* and end
to {@link
* com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
* result set.
*
*
* @param companyId the primary key of the company
* @param name the group's name (optionally null
)
* @param description the group's description (optionally
null
)
* @param params the finder params (optionally null
). To
include the user's inherited organizations and user groups in the
search, add entries having "usersGroups" and
"inherit" as keys mapped to the the user's ID. For more
information see {@link
com.liferay.portal.service.persistence.GroupFinder}
* @param start the lower bound of the range of groups to return
* @param end the upper bound of the range of groups to return (not
inclusive)
* @return the matching groups ordered by name
* @throws PortalException if a portal exception occurred
* @throws SystemException if a system exception occurred
*/
@Override
public java.util.List search(
long companyId, java.lang.String name, java.lang.String description,
java.lang.String[] params, int start, int end)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.search(companyId, name, description, params,
start, end);
}
/**
* Returns the number of groups and organization groups that match the name
* and description, optionally including the user's inherited organizations
* and user groups. System and staged groups are not included.
*
* @param companyId the primary key of the company
* @param name the group's name (optionally null
)
* @param description the group's description (optionally
null
)
* @param params the finder params (optionally null
). To
include the user's inherited organizations and user groups in the
search, add entries having "usersGroups" and
"inherit" as keys mapped to the the user's ID. For more
information see {@link
com.liferay.portal.service.persistence.GroupFinder}
* @return the number of matching groups
* @throws SystemException if a system exception occurred
*/
@Override
public int searchCount(long companyId, java.lang.String name,
java.lang.String description, java.lang.String[] params)
throws com.liferay.portal.kernel.exception.SystemException {
return _groupService.searchCount(companyId, name, description, params);
}
/**
* Sets the groups associated with the role, removing and adding
* associations as necessary.
*
* @param roleId the primary key of the role
* @param groupIds the primary keys of the groups
* @throws PortalException if the user did not have permission to update
update the role
* @throws SystemException if a system exception occurred
*/
@Override
public void setRoleGroups(long roleId, long[] groupIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
_groupService.setRoleGroups(roleId, groupIds);
}
/**
* Removes the groups from the role.
*
* @param roleId the primary key of the role
* @param groupIds the primary keys of the groups
* @throws PortalException if the user did not have permission to update the
role
* @throws SystemException if a system exception occurred
*/
@Override
public void unsetRoleGroups(long roleId, long[] groupIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
_groupService.unsetRoleGroups(roleId, groupIds);
}
/**
* Updates the group's friendly URL.
*
* @param groupId the primary key of the group
* @param friendlyURL the group's new friendlyURL (optionally
null
)
* @return the group
* @throws PortalException if the user did not have permission to update the
group, if a group with the primary key could not be found, or if
a valid friendly URL could not be created for the group
* @throws SystemException if a system exception occurred
*/
@Override
public com.liferay.portal.model.Group updateFriendlyURL(long groupId,
java.lang.String friendlyURL)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.updateFriendlyURL(groupId, friendlyURL);
}
/**
* Updates the group.
*
* @param groupId the primary key of the group
* @param parentGroupId the primary key of the parent group
* @param name the group's new name
* @param description the group's new description (optionally
null
)
* @param type the group's new type. For more information see {@link
com.liferay.portal.model.GroupConstants}
* @param friendlyURL the group's new friendlyURL (optionally
null
)
* @param active whether the group is active
* @param serviceContext the service context to be applied (optionally
null
). Can set the asset category IDs and asset tag
names for the group.
* @return the group
* @throws PortalException if the user did not have permission to update the
group, if a group with the primary key could not be found, if the
friendly URL was invalid or could one not be created
* @throws SystemException if a system exception occurred
*/
@Override
public com.liferay.portal.model.Group updateGroup(long groupId,
long parentGroupId, java.lang.String name,
java.lang.String description, int type, boolean manualMembership,
int membershipRestriction, java.lang.String friendlyURL,
boolean active, com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.updateGroup(groupId, parentGroupId, name,
description, type, manualMembership, membershipRestriction,
friendlyURL, active, serviceContext);
}
/**
* Updates the group's type settings.
*
* @param groupId the primary key of the group
* @param typeSettings the group's new type settings (optionally
null
)
* @return the group
* @throws PortalException if the user did not have permission to update the
group or if a group with the primary key could not be found
* @throws SystemException if a system exception occurred
*/
@Override
public com.liferay.portal.model.Group updateGroup(long groupId,
java.lang.String typeSettings)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _groupService.updateGroup(groupId, typeSettings);
}
@Override
public void updateStagedPortlets(long groupId,
java.util.Map stagedPortletIds)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
_groupService.updateStagedPortlets(groupId, stagedPortletIds);
}
/**
* @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
*/
public GroupService getWrappedGroupService() {
return _groupService;
}
/**
* @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
*/
public void setWrappedGroupService(GroupService groupService) {
_groupService = groupService;
}
@Override
public GroupService getWrappedService() {
return _groupService;
}
@Override
public void setWrappedService(GroupService groupService) {
_groupService = groupService;
}
private GroupService _groupService;
}