com.liferay.portal.service.impl
Class GroupServiceImpl
java.lang.Object
com.liferay.portal.service.impl.PrincipalBean
com.liferay.portal.service.impl.GroupServiceImpl
- All Implemented Interfaces:
- com.liferay.portal.service.GroupService
- public class GroupServiceImpl
- extends PrincipalBean
- implements com.liferay.portal.service.GroupService
View Source
- Author:
- Brian Wing Shun Chan
Method Summary |
com.liferay.portal.model.Group |
addGroup(long liveGroupId,
java.lang.String name,
java.lang.String description,
java.lang.String type,
java.lang.String friendlyURL,
boolean active)
|
com.liferay.portal.model.Group |
addGroup(java.lang.String name,
java.lang.String description,
java.lang.String type,
java.lang.String friendlyURL,
boolean active)
|
void |
addRoleGroups(long roleId,
long[] groupIds)
|
void |
deleteGroup(long groupId)
|
com.liferay.portal.model.Group |
getGroup(long groupId)
|
com.liferay.portal.model.Group |
getGroup(long companyId,
java.lang.String name)
|
java.util.List |
getOrganizationsGroups(java.util.List organizations)
|
java.util.List |
getUserGroupsGroups(java.util.List userGroups)
|
boolean |
hasUserGroup(long userId,
long groupId)
|
java.util.List |
search(long companyId,
java.lang.String name,
java.lang.String description,
java.lang.String[] params,
int begin,
int end)
|
int |
searchCount(long companyId,
java.lang.String name,
java.lang.String description,
java.lang.String[] params)
|
void |
setRoleGroups(long roleId,
long[] groupIds)
|
void |
unsetRoleGroups(long roleId,
long[] groupIds)
|
com.liferay.portal.model.Group |
updateGroup(long groupId,
java.lang.String typeSettings)
|
com.liferay.portal.model.Group |
updateGroup(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 |
GroupServiceImpl
public GroupServiceImpl()
addGroup
public com.liferay.portal.model.Group addGroup(java.lang.String name,
java.lang.String description,
java.lang.String type,
java.lang.String friendlyURL,
boolean active)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
addGroup
in interface com.liferay.portal.service.GroupService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addGroup
public com.liferay.portal.model.Group addGroup(long liveGroupId,
java.lang.String name,
java.lang.String description,
java.lang.String type,
java.lang.String friendlyURL,
boolean active)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
addGroup
in interface com.liferay.portal.service.GroupService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addRoleGroups
public void addRoleGroups(long roleId,
long[] groupIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
addRoleGroups
in interface com.liferay.portal.service.GroupService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteGroup
public void deleteGroup(long groupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
deleteGroup
in interface com.liferay.portal.service.GroupService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getGroup
public com.liferay.portal.model.Group getGroup(long groupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getGroup
in interface com.liferay.portal.service.GroupService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getGroup
public com.liferay.portal.model.Group getGroup(long companyId,
java.lang.String name)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getGroup
in interface com.liferay.portal.service.GroupService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getOrganizationsGroups
public java.util.List getOrganizationsGroups(java.util.List organizations)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getOrganizationsGroups
in interface com.liferay.portal.service.GroupService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getUserGroupsGroups
public java.util.List getUserGroupsGroups(java.util.List userGroups)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
getUserGroupsGroups
in interface com.liferay.portal.service.GroupService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
hasUserGroup
public boolean hasUserGroup(long userId,
long groupId)
throws com.liferay.portal.SystemException
- Specified by:
hasUserGroup
in interface com.liferay.portal.service.GroupService
- Throws:
com.liferay.portal.SystemException
search
public java.util.List search(long companyId,
java.lang.String name,
java.lang.String description,
java.lang.String[] params,
int begin,
int end)
throws com.liferay.portal.SystemException
- Specified by:
search
in interface com.liferay.portal.service.GroupService
- Throws:
com.liferay.portal.SystemException
searchCount
public int searchCount(long companyId,
java.lang.String name,
java.lang.String description,
java.lang.String[] params)
throws com.liferay.portal.SystemException
- Specified by:
searchCount
in interface com.liferay.portal.service.GroupService
- Throws:
com.liferay.portal.SystemException
setRoleGroups
public void setRoleGroups(long roleId,
long[] groupIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
setRoleGroups
in interface com.liferay.portal.service.GroupService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
unsetRoleGroups
public void unsetRoleGroups(long roleId,
long[] groupIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
unsetRoleGroups
in interface com.liferay.portal.service.GroupService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateGroup
public com.liferay.portal.model.Group updateGroup(long groupId,
java.lang.String name,
java.lang.String description,
java.lang.String type,
java.lang.String friendlyURL,
boolean active)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
updateGroup
in interface com.liferay.portal.service.GroupService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateGroup
public com.liferay.portal.model.Group updateGroup(long groupId,
java.lang.String typeSettings)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Specified by:
updateGroup
in interface com.liferay.portal.service.GroupService
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException