com.liferay.portal.service
Interface GroupLocalService
@Transactional(rollbackFor={com.liferay.portal.PortalException.class,com.liferay.portal.SystemException.class})
public interface GroupLocalService
View Source
ServiceBuilder generated this class. Modifications in this class will be
overwritten the next time is generated.
This interface defines the service. The default implementation is
com.liferay.portal.service.impl.GroupLocalServiceImpl
.
Modify methods in that class and rerun ServiceBuilder to populate this class
and all other generated classes.
This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
- Author:
- Brian Wing Shun Chan
- See Also:
GroupLocalServiceUtil
Method Summary |
Group |
addGroup(Group group)
|
Group |
addGroup(long userId,
java.lang.String className,
long classPK,
long liveGroupId,
java.lang.String name,
java.lang.String description,
int type,
java.lang.String friendlyURL,
boolean active)
|
Group |
addGroup(long userId,
java.lang.String className,
long classPK,
java.lang.String name,
java.lang.String description,
int type,
java.lang.String friendlyURL,
boolean active)
|
void |
addRoleGroups(long roleId,
long[] groupIds)
|
void |
addUserGroups(long userId,
long[] groupIds)
|
void |
checkSystemGroups(long companyId)
|
Group |
createGroup(long groupId)
|
void |
deleteGroup(Group group)
|
void |
deleteGroup(long groupId)
|
java.util.List<java.lang.Object> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
|
java.util.List<java.lang.Object> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
|
Group |
getFriendlyURLGroup(long companyId,
java.lang.String friendlyURL)
|
Group |
getGroup(long groupId)
|
Group |
getGroup(long companyId,
java.lang.String name)
|
java.util.List<Group> |
getGroups(int start,
int end)
|
java.util.List<Group> |
getGroups(long[] groupIds)
|
int |
getGroupsCount()
|
Group |
getLayoutGroup(long companyId,
long plid)
|
java.util.List<Group> |
getManageableGroups(long userId)
|
java.util.List<Group> |
getNullFriendlyURLGroups()
|
Group |
getOrganizationGroup(long companyId,
long organizationId)
|
java.util.List<Group> |
getOrganizationsGroups(java.util.List<Organization> organizations)
|
java.util.List<Group> |
getRoleGroups(long roleId)
|
Group |
getStagingGroup(long liveGroupId)
|
Group |
getUserGroup(long companyId,
long userId)
|
Group |
getUserGroupGroup(long companyId,
long userGroupId)
|
java.util.List<Group> |
getUserGroups(long userId)
|
java.util.List<Group> |
getUserGroupsGroups(java.util.List<UserGroup> userGroups)
|
java.util.List<Group> |
getUserOrganizationsGroups(long userId,
int start,
int end)
|
boolean |
hasRoleGroup(long roleId,
long groupId)
|
boolean |
hasStagingGroup(long liveGroupId)
|
boolean |
hasUserGroup(long userId,
long groupId)
|
java.util.List<Group> |
search(long companyId,
java.lang.String name,
java.lang.String description,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int start,
int end)
|
java.util.List<Group> |
search(long companyId,
java.lang.String name,
java.lang.String description,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
|
int |
searchCount(long companyId,
java.lang.String name,
java.lang.String description,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
|
void |
setRoleGroups(long roleId,
long[] groupIds)
|
void |
unsetRoleGroups(long roleId,
long[] groupIds)
|
void |
unsetUserGroups(long userId,
long[] groupIds)
|
Group |
updateFriendlyURL(long groupId,
java.lang.String friendlyURL)
|
Group |
updateGroup(Group group)
|
Group |
updateGroup(long groupId,
java.lang.String typeSettings)
|
Group |
updateGroup(long groupId,
java.lang.String name,
java.lang.String description,
int type,
java.lang.String friendlyURL,
boolean active)
|
Group |
updateWorkflow(long groupId,
boolean workflowEnabled,
int workflowStages,
java.lang.String workflowRoleNames)
|
addGroup
Group addGroup(Group group)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
createGroup
Group createGroup(long groupId)
deleteGroup
void deleteGroup(long groupId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
deleteGroup
void deleteGroup(Group group)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
dynamicQuery
java.util.List<java.lang.Object> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroup
@Transactional(propagation=SUPPORTS,
readOnly=true)
Group getGroup(long groupId)
throws com.liferay.portal.SystemException,
com.liferay.portal.PortalException
- Throws:
com.liferay.portal.SystemException
com.liferay.portal.PortalException
getGroups
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Group> getGroups(int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getGroupsCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int getGroupsCount()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateGroup
Group updateGroup(Group group)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addGroup
Group addGroup(long userId,
java.lang.String className,
long classPK,
java.lang.String name,
java.lang.String description,
int 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
Group addGroup(long userId,
java.lang.String className,
long classPK,
long liveGroupId,
java.lang.String name,
java.lang.String description,
int 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
void addRoleGroups(long roleId,
long[] groupIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
addUserGroups
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
void checkSystemGroups(long companyId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getFriendlyURLGroup
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
getGroups
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Group> getGroups(long[] groupIds)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getLayoutGroup
@Transactional(propagation=SUPPORTS,
readOnly=true)
Group getLayoutGroup(long companyId,
long plid)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getManageableGroups
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Group> getManageableGroups(long userId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getNullFriendlyURLGroups
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Group> getNullFriendlyURLGroups()
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getOrganizationGroup
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Group> getOrganizationsGroups(java.util.List<Organization> organizations)
getRoleGroups
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Group> getRoleGroups(long roleId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getStagingGroup
@Transactional(propagation=SUPPORTS,
readOnly=true)
Group getStagingGroup(long liveGroupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getUserGroup
@Transactional(propagation=SUPPORTS,
readOnly=true)
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
@Transactional(propagation=SUPPORTS,
readOnly=true)
Group getUserGroupGroup(long companyId,
long userGroupId)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
getUserGroups
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Group> getUserGroups(long userId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
getUserGroupsGroups
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Group> getUserGroupsGroups(java.util.List<UserGroup> userGroups)
getUserOrganizationsGroups
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Group> getUserOrganizationsGroups(long userId,
int start,
int end)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
hasRoleGroup
boolean hasRoleGroup(long roleId,
long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
hasStagingGroup
boolean hasStagingGroup(long liveGroupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
hasUserGroup
boolean hasUserGroup(long userId,
long groupId)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
search
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Group> search(long companyId,
java.lang.String name,
java.lang.String description,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int start,
int end)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
search
@Transactional(propagation=SUPPORTS,
readOnly=true)
java.util.List<Group> search(long companyId,
java.lang.String name,
java.lang.String description,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator obc)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
searchCount
@Transactional(propagation=SUPPORTS,
readOnly=true)
int searchCount(long companyId,
java.lang.String name,
java.lang.String description,
java.util.LinkedHashMap<java.lang.String,java.lang.Object> params)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
setRoleGroups
void setRoleGroups(long roleId,
long[] groupIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
unsetRoleGroups
void unsetRoleGroups(long roleId,
long[] groupIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
unsetUserGroups
void unsetUserGroups(long userId,
long[] groupIds)
throws com.liferay.portal.SystemException
- Throws:
com.liferay.portal.SystemException
updateFriendlyURL
Group updateFriendlyURL(long groupId,
java.lang.String friendlyURL)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException
updateGroup
Group updateGroup(long groupId,
java.lang.String name,
java.lang.String description,
int 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
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
updateWorkflow
Group updateWorkflow(long groupId,
boolean workflowEnabled,
int workflowStages,
java.lang.String workflowRoleNames)
throws com.liferay.portal.PortalException,
com.liferay.portal.SystemException
- Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException