com.liferay.portal.service.impl
Class GroupLocalServiceImpl

java.lang.Object
  extended by com.liferay.portal.service.base.GroupLocalServiceBaseImpl
      extended by com.liferay.portal.service.impl.GroupLocalServiceImpl
All Implemented Interfaces:
com.liferay.portal.service.GroupLocalService, org.springframework.beans.factory.InitializingBean

public class GroupLocalServiceImpl
extends GroupLocalServiceBaseImpl

View Source

Author:
Brian Wing Shun Chan, Alexander Chow

Field Summary
 
Fields inherited from class com.liferay.portal.service.base.GroupLocalServiceBaseImpl
accountLocalService, accountPersistence, accountService, addressLocalService, addressPersistence, addressService, blogsEntryFinder, blogsEntryLocalService, blogsEntryPersistence, blogsEntryService, blogsStatsUserFinder, blogsStatsUserLocalService, blogsStatsUserPersistence, bookmarksFolderLocalService, bookmarksFolderPersistence, bookmarksFolderService, calEventFinder, calEventLocalService, calEventPersistence, calEventService, classNameLocalService, classNamePersistence, classNameService, companyLocalService, companyPersistence, companyService, contactLocalService, contactPersistence, contactService, counterLocalService, counterService, countryPersistence, countryService, dlFolderLocalService, dlFolderPersistence, dlFolderService, emailAddressLocalService, emailAddressPersistence, emailAddressService, groupFinder, groupPersistence, igFolderLocalService, igFolderPersistence, igFolderService, imageLocalService, imagePersistence, journalArticleFinder, journalArticleLocalService, journalArticlePersistence, journalArticleService, journalStructureFinder, journalStructureLocalService, journalStructurePersistence, journalStructureService, journalTemplateFinder, journalTemplateLocalService, journalTemplatePersistence, journalTemplateService, layoutFinder, layoutLocalService, layoutPersistence, layoutService, layoutSetLocalService, layoutSetPersistence, layoutSetService, listTypePersistence, listTypeService, mbBanLocalService, mbBanPersistence, mbBanService, mbCategoryFinder, mbCategoryLocalService, mbCategoryPersistence, mbCategoryService, mbStatsUserLocalService, mbStatsUserPersistence, membershipRequestLocalService, membershipRequestPersistence, membershipRequestService, organizationFinder, organizationLocalService, organizationPersistence, organizationService, orgGroupPermissionFinder, orgGroupPermissionPersistence, orgGroupRolePersistence, orgLaborLocalService, orgLaborPersistence, orgLaborService, passwordPolicyFinder, passwordPolicyLocalService, passwordPolicyPersistence, passwordPolicyRelLocalService, passwordPolicyRelPersistence, passwordPolicyService, passwordTrackerLocalService, passwordTrackerPersistence, permissionFinder, permissionLocalService, permissionPersistence, permissionService, permissionUserFinder, phoneLocalService, phonePersistence, phoneService, pluginSettingLocalService, pluginSettingPersistence, pluginSettingService, pollsQuestionLocalService, pollsQuestionPersistence, pollsQuestionService, portalService, portletItemLocalService, portletItemPersistence, portletLocalService, portletPersistence, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, portletService, regionPersistence, regionService, releaseLocalService, releasePersistence, resourceCodeLocalService, resourceCodePersistence, resourceFinder, resourceLocalService, resourcePersistence, resourceService, roleFinder, roleLocalService, rolePersistence, roleService, scFrameworkVersionLocalService, scFrameworkVersionPersistence, scFrameworkVersionService, scProductEntryLocalService, scProductEntryPersistence, scProductEntryService, serviceComponentLocalService, serviceComponentPersistence, shoppingCartLocalService, shoppingCartPersistence, shoppingCategoryLocalService, shoppingCategoryPersistence, shoppingCategoryService, shoppingCouponFinder, shoppingCouponLocalService, shoppingCouponPersistence, shoppingCouponService, shoppingOrderFinder, shoppingOrderLocalService, shoppingOrderPersistence, shoppingOrderService, subscriptionLocalService, subscriptionPersistence, tasksProposalFinder, tasksProposalLocalService, tasksProposalPersistence, tasksProposalService, userFinder, userGroupFinder, userGroupLocalService, userGroupPersistence, userGroupRoleLocalService, userGroupRolePersistence, userGroupRoleService, userGroupService, userIdMapperLocalService, userIdMapperPersistence, userLocalService, userPersistence, userService, userTrackerLocalService, userTrackerPathLocalService, userTrackerPathPersistence, userTrackerPersistence, webDAVPropsLocalService, webDAVPropsPersistence, websiteLocalService, websitePersistence, websiteService, wikiNodeLocalService, wikiNodePersistence, wikiNodeService
 
Constructor Summary
GroupLocalServiceImpl()
           
 
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, int 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, int 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 groupId, long classPK, java.lang.String friendlyURL)
           
protected  java.lang.String getFriendlyURL(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)
           
 java.util.List<com.liferay.portal.model.Group> getNullFriendlyURLGroups()
           
 com.liferay.portal.model.Group getOrganizationGroup(long companyId, long organizationId)
           
 java.util.List<com.liferay.portal.model.Group> getOrganizationsGroups(java.util.List<com.liferay.portal.model.Organization> organizations)
           
 java.util.List<com.liferay.portal.model.Group> 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<com.liferay.portal.model.Group> getUserGroups(long userId)
           
 java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(java.util.List<com.liferay.portal.model.UserGroup> userGroups)
           
 boolean hasRoleGroup(long roleId, long groupId)
           
 boolean hasUserGroup(long userId, long groupId)
           
 java.util.List<com.liferay.portal.model.Group> search(long companyId, java.lang.String name, java.lang.String description, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, int begin, int end)
           
 java.util.List<com.liferay.portal.model.Group> search(long companyId, java.lang.String name, java.lang.String description, java.util.LinkedHashMap<java.lang.String,java.lang.Object> params, int begin, 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)
           
 com.liferay.portal.model.Group updateFriendlyURL(long groupId, java.lang.String friendlyURL)
           
 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, int type, java.lang.String friendlyURL, boolean active)
           
 com.liferay.portal.model.Group updateWorkflow(long groupId, boolean workflowEnabled, int workflowStages, java.lang.String workflowRoleNames)
           
protected  void validateFriendlyURL(long groupId, long companyId, long classNameId, long classPK, java.lang.String friendlyURL)
           
protected  void validateName(long groupId, long companyId, java.lang.String name)
           
 
Methods inherited from class com.liferay.portal.service.base.GroupLocalServiceBaseImpl
addGroup, afterPropertiesSet, deleteGroup, dynamicQuery, dynamicQuery, getAccountLocalService, getAccountPersistence, getAccountService, getAddressLocalService, getAddressPersistence, getAddressService, getBlogsEntryFinder, getBlogsEntryLocalService, getBlogsEntryPersistence, getBlogsEntryService, getBlogsStatsUserFinder, getBlogsStatsUserLocalService, getBlogsStatsUserPersistence, getBookmarksFolderLocalService, getBookmarksFolderPersistence, getBookmarksFolderService, getCalEventFinder, getCalEventLocalService, getCalEventPersistence, getCalEventService, getClassNameLocalService, getClassNamePersistence, getClassNameService, getCompanyLocalService, getCompanyPersistence, getCompanyService, getContactLocalService, getContactPersistence, getContactService, getCounterLocalService, getCounterService, getCountryPersistence, getCountryService, getDLFolderLocalService, getDLFolderPersistence, getDLFolderService, getEmailAddressLocalService, getEmailAddressPersistence, getEmailAddressService, getGroupFinder, getGroupPersistence, getIGFolderLocalService, getIGFolderPersistence, getIGFolderService, getImageLocalService, getImagePersistence, getJournalArticleFinder, getJournalArticleLocalService, getJournalArticlePersistence, getJournalArticleService, getJournalStructureFinder, getJournalStructureLocalService, getJournalStructurePersistence, getJournalStructureService, getJournalTemplateFinder, getJournalTemplateLocalService, getJournalTemplatePersistence, getJournalTemplateService, getLayoutFinder, getLayoutLocalService, getLayoutPersistence, getLayoutService, getLayoutSetLocalService, getLayoutSetPersistence, getLayoutSetService, getListTypePersistence, getListTypeService, getMBBanLocalService, getMBBanPersistence, getMBBanService, getMBCategoryFinder, getMBCategoryLocalService, getMBCategoryPersistence, getMBCategoryService, getMBStatsUserLocalService, getMBStatsUserPersistence, getMembershipRequestLocalService, getMembershipRequestPersistence, getMembershipRequestService, getOrganizationFinder, getOrganizationLocalService, getOrganizationPersistence, getOrganizationService, getOrgGroupPermissionFinder, getOrgGroupPermissionPersistence, getOrgGroupRolePersistence, getOrgLaborLocalService, getOrgLaborPersistence, getOrgLaborService, getPasswordPolicyFinder, getPasswordPolicyLocalService, getPasswordPolicyPersistence, getPasswordPolicyRelLocalService, getPasswordPolicyRelPersistence, getPasswordPolicyService, getPasswordTrackerLocalService, getPasswordTrackerPersistence, getPermissionFinder, getPermissionLocalService, getPermissionPersistence, getPermissionService, getPermissionUserFinder, getPhoneLocalService, getPhonePersistence, getPhoneService, getPluginSettingLocalService, getPluginSettingPersistence, getPluginSettingService, getPollsQuestionLocalService, getPollsQuestionPersistence, getPollsQuestionService, getPortalService, getPortletItemLocalService, getPortletItemPersistence, getPortletLocalService, getPortletPersistence, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getPortletService, getRegionPersistence, getRegionService, getReleaseLocalService, getReleasePersistence, getResourceCodeLocalService, getResourceCodePersistence, getResourceFinder, getResourceLocalService, getResourcePersistence, getResourceService, getRoleFinder, getRoleLocalService, getRolePersistence, getRoleService, getSCFrameworkVersionLocalService, getSCFrameworkVersionPersistence, getSCFrameworkVersionService, getSCProductEntryLocalService, getSCProductEntryPersistence, getSCProductEntryService, getServiceComponentLocalService, getServiceComponentPersistence, getShoppingCartLocalService, getShoppingCartPersistence, getShoppingCategoryLocalService, getShoppingCategoryPersistence, getShoppingCategoryService, getShoppingCouponFinder, getShoppingCouponLocalService, getShoppingCouponPersistence, getShoppingCouponService, getShoppingOrderFinder, getShoppingOrderLocalService, getShoppingOrderPersistence, getShoppingOrderService, getSubscriptionLocalService, getSubscriptionPersistence, getTasksProposalFinder, getTasksProposalLocalService, getTasksProposalPersistence, getTasksProposalService, getUserFinder, getUserGroupFinder, getUserGroupLocalService, getUserGroupPersistence, getUserGroupRoleLocalService, getUserGroupRolePersistence, getUserGroupRoleService, getUserGroupService, getUserIdMapperLocalService, getUserIdMapperPersistence, getUserLocalService, getUserPersistence, getUserService, getUserTrackerLocalService, getUserTrackerPathLocalService, getUserTrackerPathPersistence, getUserTrackerPersistence, getWebDAVPropsLocalService, getWebDAVPropsPersistence, getWebsiteLocalService, getWebsitePersistence, getWebsiteService, getWikiNodeLocalService, getWikiNodePersistence, getWikiNodeService, setAccountLocalService, setAccountPersistence, setAccountService, setAddressLocalService, setAddressPersistence, setAddressService, setBlogsEntryFinder, setBlogsEntryLocalService, setBlogsEntryPersistence, setBlogsEntryService, setBlogsStatsUserFinder, setBlogsStatsUserLocalService, setBlogsStatsUserPersistence, setBookmarksFolderLocalService, setBookmarksFolderPersistence, setBookmarksFolderService, setCalEventFinder, setCalEventLocalService, setCalEventPersistence, setCalEventService, setClassNameLocalService, setClassNamePersistence, setClassNameService, setCompanyLocalService, setCompanyPersistence, setCompanyService, setContactLocalService, setContactPersistence, setContactService, setCounterLocalService, setCounterService, setCountryPersistence, setCountryService, setDLFolderLocalService, setDLFolderPersistence, setDLFolderService, setEmailAddressLocalService, setEmailAddressPersistence, setEmailAddressService, setGroupFinder, setGroupPersistence, setIGFolderLocalService, setIGFolderPersistence, setIGFolderService, setImageLocalService, setImagePersistence, setJournalArticleFinder, setJournalArticleLocalService, setJournalArticlePersistence, setJournalArticleService, setJournalStructureFinder, setJournalStructureLocalService, setJournalStructurePersistence, setJournalStructureService, setJournalTemplateFinder, setJournalTemplateLocalService, setJournalTemplatePersistence, setJournalTemplateService, setLayoutFinder, setLayoutLocalService, setLayoutPersistence, setLayoutService, setLayoutSetLocalService, setLayoutSetPersistence, setLayoutSetService, setListTypePersistence, setListTypeService, setMBBanLocalService, setMBBanPersistence, setMBBanService, setMBCategoryFinder, setMBCategoryLocalService, setMBCategoryPersistence, setMBCategoryService, setMBStatsUserLocalService, setMBStatsUserPersistence, setMembershipRequestLocalService, setMembershipRequestPersistence, setMembershipRequestService, setOrganizationFinder, setOrganizationLocalService, setOrganizationPersistence, setOrganizationService, setOrgGroupPermissionFinder, setOrgGroupPermissionPersistence, setOrgGroupRolePersistence, setOrgLaborLocalService, setOrgLaborPersistence, setOrgLaborService, setPasswordPolicyFinder, setPasswordPolicyLocalService, setPasswordPolicyPersistence, setPasswordPolicyRelLocalService, setPasswordPolicyRelPersistence, setPasswordPolicyService, setPasswordTrackerLocalService, setPasswordTrackerPersistence, setPermissionFinder, setPermissionLocalService, setPermissionPersistence, setPermissionService, setPermissionUserFinder, setPhoneLocalService, setPhonePersistence, setPhoneService, setPluginSettingLocalService, setPluginSettingPersistence, setPluginSettingService, setPollsQuestionLocalService, setPollsQuestionPersistence, setPollsQuestionService, setPortalService, setPortletItemLocalService, setPortletItemPersistence, setPortletLocalService, setPortletPersistence, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setPortletService, setRegionPersistence, setRegionService, setReleaseLocalService, setReleasePersistence, setResourceCodeLocalService, setResourceCodePersistence, setResourceFinder, setResourceLocalService, setResourcePersistence, setResourceService, setRoleFinder, setRoleLocalService, setRolePersistence, setRoleService, setSCFrameworkVersionLocalService, setSCFrameworkVersionPersistence, setSCFrameworkVersionService, setSCProductEntryLocalService, setSCProductEntryPersistence, setSCProductEntryService, setServiceComponentLocalService, setServiceComponentPersistence, setShoppingCartLocalService, setShoppingCartPersistence, setShoppingCategoryLocalService, setShoppingCategoryPersistence, setShoppingCategoryService, setShoppingCouponFinder, setShoppingCouponLocalService, setShoppingCouponPersistence, setShoppingCouponService, setShoppingOrderFinder, setShoppingOrderLocalService, setShoppingOrderPersistence, setShoppingOrderService, setSubscriptionLocalService, setSubscriptionPersistence, setTasksProposalFinder, setTasksProposalLocalService, setTasksProposalPersistence, setTasksProposalService, setUserFinder, setUserGroupFinder, setUserGroupLocalService, setUserGroupPersistence, setUserGroupRoleLocalService, setUserGroupRolePersistence, setUserGroupRoleService, setUserGroupService, setUserIdMapperLocalService, setUserIdMapperPersistence, setUserLocalService, setUserPersistence, setUserService, setUserTrackerLocalService, setUserTrackerPathLocalService, setUserTrackerPathPersistence, setUserTrackerPersistence, setWebDAVPropsLocalService, setWebDAVPropsPersistence, setWebsiteLocalService, setWebsitePersistence, setWebsiteService, setWikiNodeLocalService, setWikiNodePersistence, setWikiNodeService, updateGroup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GroupLocalServiceImpl

public GroupLocalServiceImpl()
Method Detail

addGroup

public com.liferay.portal.model.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

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,
                                               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

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
Specified by:
deleteGroup in interface com.liferay.portal.service.GroupLocalService
Overrides:
deleteGroup in class GroupLocalServiceBaseImpl
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

getNullFriendlyURLGroups

public java.util.List<com.liferay.portal.model.Group> getNullFriendlyURLGroups()
                                                                        throws com.liferay.portal.SystemException
Throws:
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<com.liferay.portal.model.Group> getOrganizationsGroups(java.util.List<com.liferay.portal.model.Organization> organizations)
                                                                      throws com.liferay.portal.PortalException,
                                                                             com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getRoleGroups

public java.util.List<com.liferay.portal.model.Group> 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

getUserGroups

public java.util.List<com.liferay.portal.model.Group> getUserGroups(long userId)
                                                             throws com.liferay.portal.PortalException,
                                                                    com.liferay.portal.SystemException
Throws:
com.liferay.portal.PortalException
com.liferay.portal.SystemException

getUserGroupsGroups

public java.util.List<com.liferay.portal.model.Group> getUserGroupsGroups(java.util.List<com.liferay.portal.model.UserGroup> 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<com.liferay.portal.model.Group> search(long companyId,
                                                             java.lang.String name,
                                                             java.lang.String description,
                                                             java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
                                                             int begin,
                                                             int end)
                                                      throws com.liferay.portal.SystemException
Throws:
com.liferay.portal.SystemException

search

public java.util.List<com.liferay.portal.model.Group> search(long companyId,
                                                             java.lang.String name,
                                                             java.lang.String description,
                                                             java.util.LinkedHashMap<java.lang.String,java.lang.Object> params,
                                                             int begin,
                                                             int end,
                                                             com.liferay.portal.kernel.util.OrderByComparator obc)
                                                      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<java.lang.String,java.lang.Object> 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

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

updateFriendlyURL

public com.liferay.portal.model.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

public com.liferay.portal.model.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

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

updateWorkflow

public com.liferay.portal.model.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

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(java.lang.String friendlyURL)

getFriendlyURL

protected java.lang.String getFriendlyURL(long groupId,
                                          long classPK,
                                          java.lang.String friendlyURL)

validateFriendlyURL

protected void validateFriendlyURL(long groupId,
                                   long companyId,
                                   long classNameId,
                                   long classPK,
                                   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