com.liferay.portal.service.impl
Class GroupLocalServiceImpl
java.lang.Object
com.liferay.portal.service.base.GroupLocalServiceBaseImpl
com.liferay.portal.service.impl.GroupLocalServiceImpl
- All Implemented Interfaces:
- com.liferay.portal.service.GroupLocalService
- public class GroupLocalServiceImpl
- extends GroupLocalServiceBaseImpl
View Source
- Author:
- Brian Wing Shun Chan, Alexander Chow
Method Summary |
protected void |
addDefaultLayouts(com.liferay.portal.model.Group group)
|
com.liferay.portal.model.Group |
addGroup(long userId,
java.lang.String className,
long classPK,
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(long userId,
java.lang.String className,
long classPK,
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 |
addUserGroups(long userId,
long[] groupIds)
|
void |
checkSystemGroups(long companyId)
|
void |
deleteGroup(long groupId)
|
protected java.lang.String |
getFriendlyURL(long classNameId,
java.lang.String friendlyURL)
|
com.liferay.portal.model.Group |
getFriendlyURLGroup(long companyId,
java.lang.String friendlyURL)
|
com.liferay.portal.model.Group |
getGroup(long groupId)
|
com.liferay.portal.model.Group |
getGroup(long companyId,
java.lang.String name)
|
com.liferay.portal.model.Group |
getOrganizationGroup(long companyId,
long organizationId)
|
java.util.List |
getOrganizationsGroups(java.util.List organizations)
|
java.util.List |
getRoleGroups(long roleId)
|
com.liferay.portal.model.Group |
getStagingGroup(long liveGroupId)
|
com.liferay.portal.model.Group |
getUserGroup(long companyId,
long userId)
|
com.liferay.portal.model.Group |
getUserGroupGroup(long companyId,
long userGroupId)
|
java.util.List |
getUserGroupsGroups(java.util.List userGroups)
|
boolean |
hasRoleGroup(long roleId,
long groupId)
|
boolean |
hasUserGroup(long userId,
long groupId)
|
java.util.List |
search(long companyId,
java.lang.String name,
java.lang.String description,
java.util.LinkedHashMap params,
int begin,
int end)
|
int |
searchCount(long companyId,
java.lang.String name,
java.lang.String description,
java.util.LinkedHashMap params)
|
void |
setRoleGroups(long roleId,
long[] groupIds)
|
void |
setUserGroups(long userId,
long[] groupIds)
|
void |
unsetRoleGroups(long roleId,
long[] groupIds)
|
void |
unsetUserGroups(long userId,
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)
|
protected void |
validateFriendlyURL(long groupId,
long companyId,
java.lang.String friendlyURL)
|
protected void |
validateName(long groupId,
long companyId,
java.lang.String name)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GroupLocalServiceImpl
public GroupLocalServiceImpl()
addGroup
public com.liferay.portal.model.Group addGroup(long userId,
java.lang.String className,
long classPK,
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
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addGroup
public com.liferay.portal.model.Group addGroup(long userId,
java.lang.String className,
long classPK,
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
- 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
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addUserGroups
public void addUserGroups(long userId,
long[] groupIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
checkSystemGroups
public void checkSystemGroups(long companyId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
deleteGroup
public void deleteGroup(long groupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getFriendlyURLGroup
public com.liferay.portal.model.Group getFriendlyURLGroup(long companyId,
java.lang.String friendlyURL)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- 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
- 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
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getOrganizationGroup
public com.liferay.portal.model.Group getOrganizationGroup(long companyId,
long organizationId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- 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
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getRoleGroups
public java.util.List getRoleGroups(long roleId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getStagingGroup
public com.liferay.portal.model.Group getStagingGroup(long liveGroupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getUserGroup
public com.liferay.portal.model.Group getUserGroup(long companyId,
long userId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getUserGroupGroup
public com.liferay.portal.model.Group getUserGroupGroup(long companyId,
long userGroupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- 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
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
hasRoleGroup
public boolean hasRoleGroup(long roleId,
long groupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
hasUserGroup
public boolean hasUserGroup(long userId,
long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
search
public java.util.List search(long companyId,
java.lang.String name,
java.lang.String description,
java.util.LinkedHashMap params,
int begin,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
searchCount
public int searchCount(long companyId,
java.lang.String name,
java.lang.String description,
java.util.LinkedHashMap params)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
setRoleGroups
public void setRoleGroups(long roleId,
long[] groupIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
setUserGroups
public void setUserGroups(long userId,
long[] groupIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- 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
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
unsetUserGroups
public void unsetUserGroups(long userId,
long[] groupIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- 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
- 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
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
addDefaultLayouts
protected void addDefaultLayouts(com.liferay.portal.model.Group group)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getFriendlyURL
protected java.lang.String getFriendlyURL(long classNameId,
java.lang.String friendlyURL)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
validateFriendlyURL
protected void validateFriendlyURL(long groupId,
long companyId,
java.lang.String friendlyURL)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
validateName
protected void validateName(long groupId,
long companyId,
java.lang.String name)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException