Liferay 6.0-ee

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:
GroupLocalService

public class GroupLocalServiceImpl
extends GroupLocalServiceBaseImpl


Field Summary
protected  File publicLARFile
           
 
Fields inherited from class com.liferay.portal.service.base.GroupLocalServiceBaseImpl
accountLocalService, accountPersistence, accountService, addressLocalService, addressPersistence, addressService, assetEntryFinder, assetEntryLocalService, assetEntryPersistence, assetEntryService, blogsEntryFinder, blogsEntryLocalService, blogsEntryPersistence, blogsEntryService, blogsStatsUserFinder, blogsStatsUserLocalService, blogsStatsUserPersistence, bookmarksFolderLocalService, bookmarksFolderPersistence, bookmarksFolderService, browserTrackerLocalService, browserTrackerPersistence, calEventFinder, calEventLocalService, calEventPersistence, calEventService, classNameLocalService, classNamePersistence, classNameService, clusterGroupLocalService, clusterGroupPersistence, companyLocalService, companyPersistence, companyService, contactLocalService, contactPersistence, contactService, counterLocalService, countryPersistence, countryService, dlFolderFinder, dlFolderLocalService, dlFolderPersistence, dlFolderService, emailAddressLocalService, emailAddressPersistence, emailAddressService, groupFinder, groupLocalService, groupPersistence, groupService, igFolderLocalService, igFolderPersistence, igFolderService, imageLocalService, imagePersistence, imageService, journalArticleFinder, journalArticleLocalService, journalArticlePersistence, journalArticleService, journalStructureFinder, journalStructureLocalService, journalStructurePersistence, journalStructureService, journalTemplateFinder, journalTemplateLocalService, journalTemplatePersistence, journalTemplateService, layoutFinder, layoutLocalService, layoutPersistence, layoutPrototypeLocalService, layoutPrototypePersistence, layoutPrototypeService, layoutService, layoutSetLocalService, layoutSetPersistence, layoutSetPrototypeLocalService, layoutSetPrototypePersistence, layoutSetPrototypeService, layoutSetService, layoutTemplateLocalService, listTypePersistence, listTypeService, lockLocalService, lockPersistence, 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, phoneLocalService, phonePersistence, phoneService, pluginSettingLocalService, pluginSettingPersistence, pluginSettingService, pollsQuestionLocalService, pollsQuestionPersistence, pollsQuestionService, portalLocalService, portalService, portletItemLocalService, portletItemPersistence, portletLocalService, portletPersistence, portletPreferencesFinder, portletPreferencesLocalService, portletPreferencesPersistence, portletPreferencesService, portletService, quartzLocalService, regionPersistence, regionService, releaseLocalService, releasePersistence, resourceActionLocalService, resourceActionPersistence, resourceCodeLocalService, resourceCodePersistence, resourceFinder, resourceLocalService, resourcePermissionFinder, resourcePermissionLocalService, resourcePermissionPersistence, resourcePermissionService, resourcePersistence, resourceService, roleFinder, roleLocalService, rolePersistence, roleService, scFrameworkVersionLocalService, scFrameworkVersionPersistence, scFrameworkVersionService, scProductEntryLocalService, scProductEntryPersistence, scProductEntryService, serviceComponentLocalService, serviceComponentPersistence, shardLocalService, shardPersistence, shoppingCartLocalService, shoppingCartPersistence, shoppingCategoryLocalService, shoppingCategoryPersistence, shoppingCategoryService, shoppingCouponFinder, shoppingCouponLocalService, shoppingCouponPersistence, shoppingCouponService, shoppingOrderFinder, shoppingOrderLocalService, shoppingOrderPersistence, shoppingOrderService, subscriptionLocalService, subscriptionPersistence, tasksProposalFinder, tasksProposalLocalService, tasksProposalPersistence, tasksProposalService, teamFinder, teamLocalService, teamPersistence, teamService, themeLocalService, themeService, ticketLocalService, ticketPersistence, userFinder, userGroupFinder, userGroupGroupRoleLocalService, userGroupGroupRolePersistence, userGroupGroupRoleService, userGroupLocalService, userGroupPersistence, userGroupRoleFinder, userGroupRoleLocalService, userGroupRolePersistence, userGroupRoleService, userGroupService, userIdMapperLocalService, userIdMapperPersistence, userLocalService, userPersistence, userService, userTrackerLocalService, userTrackerPathLocalService, userTrackerPathPersistence, userTrackerPersistence, webDAVPropsLocalService, webDAVPropsPersistence, websiteLocalService, websitePersistence, websiteService, wikiNodeLocalService, wikiNodePersistence, wikiNodeService, workflowDefinitionLinkLocalService, workflowDefinitionLinkPersistence, workflowInstanceLinkLocalService, workflowInstanceLinkPersistence
 
Constructor Summary
GroupLocalServiceImpl()
           
 
Method Summary
protected  void addControlPanelLayouts(Group group)
           
protected  void addDefaultGuestPublicLayoutByProperties(Group group)
           
protected  void addDefaultGuestPublicLayouts(Group group)
           
protected  void addDefaultGuestPublicLayoutsByLAR(Group group, File larFile)
           
 Group addGroup(long userId, String className, long classPK, long liveGroupId, String name, String description, int type, String friendlyURL, boolean active, ServiceContext serviceContext)
           
 Group addGroup(long userId, String className, long classPK, String name, String description, int type, String friendlyURL, boolean active, ServiceContext serviceContext)
           
 void addRoleGroups(long roleId, long[] groupIds)
           
 void addUserGroups(long userId, long[] groupIds)
           
 void checkCompanyGroup(long companyId)
           
 void checkSystemGroups(long companyId)
           
 void deleteGroup(long groupId)
          Deletes the group with the primary key from the database.
 Group getCompanyGroup(long companyId)
           
 List<Group> getCompanyGroups(long companyId, int start, int end)
           
 int getCompanyGroupsCount(long companyId)
           
protected  String getFriendlyURL(long companyId, long groupId, long classNameId, long classPK, String friendlyName, String friendlyURL)
           
protected  String getFriendlyURL(String friendlyURL)
           
 Group getFriendlyURLGroup(long companyId, String friendlyURL)
           
 Group getGroup(long groupId)
          Gets the group with the primary key.
 Group getGroup(long companyId, String name)
           
 List<Group> getGroups(long[] groupIds)
           
 Group getLayoutGroup(long companyId, long plid)
           
 Group getLayoutPrototypeGroup(long companyId, long layoutPrototypeId)
           
 Group getLayoutSetPrototypeGroup(long companyId, long layoutSetPrototypeId)
           
 List<Group> getLiveGroups()
           
 List<Group> getNoLayoutsGroups(String className, boolean privateLayout, int start, int end)
           
 List<Group> getNullFriendlyURLGroups()
           
 Group getOrganizationGroup(long companyId, long organizationId)
           
 List<Group> getOrganizationsGroups(List<Organization> organizations)
           
 List<Group> getOrganizationsRelatedGroups(List<Organization> organizations)
           
protected  String getRealName(long companyId, String name)
           
 List<Group> getRoleGroups(long roleId)
           
 Group getStagingGroup(long liveGroupId)
           
 Group getUserGroup(long companyId, long userId)
           
 Group getUserGroupGroup(long companyId, long userGroupId)
           
 List<Group> getUserGroups(long userId)
           
 List<Group> getUserGroups(long userId, boolean inherit)
           
 List<Group> getUserGroups(long userId, boolean inherit, int start, int end)
           
 List<Group> getUserGroups(long userId, int start, int end)
           
 List<Group> getUserGroupsGroups(List<UserGroup> userGroups)
           
 List<Group> getUserGroupsRelatedGroups(List<UserGroup> userGroups)
           
 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)
           
protected  void initImportLARFile()
           
protected  boolean isStaging(ServiceContext serviceContext)
           
 List<Group> search(long companyId, String name, String description, LinkedHashMap<String,Object> params, int start, int end)
           
 List<Group> search(long companyId, String name, String description, LinkedHashMap<String,Object> params, int start, int end, OrderByComparator obc)
           
 int searchCount(long companyId, String name, String description, LinkedHashMap<String,Object> params)
           
 void setRoleGroups(long roleId, long[] groupIds)
           
protected  void unscheduleStaging(Group group)
           
 void unsetRoleGroups(long roleId, long[] groupIds)
           
 void unsetUserGroups(long userId, long[] groupIds)
           
 void updateAsset(long userId, Group group, long[] assetCategoryIds, String[] assetTagNames)
           
 Group updateFriendlyURL(long groupId, String friendlyURL)
           
 Group updateGroup(long groupId, String typeSettings)
           
 Group updateGroup(long groupId, String name, String description, int type, String friendlyURL, boolean active, ServiceContext serviceContext)
           
 Group updateWorkflow(long groupId, boolean workflowEnabled, int workflowStages, String workflowRoleNames)
           
protected  void validateFriendlyURL(long companyId, long groupId, long classNameId, long classPK, String friendlyURL)
           
protected  void validateName(long groupId, long companyId, String name)
           
 
Methods inherited from class com.liferay.portal.service.base.GroupLocalServiceBaseImpl
addGroup, createGroup, deleteGroup, dynamicQuery, dynamicQuery, dynamicQuery, dynamicQueryCount, getAccountLocalService, getAccountPersistence, getAccountService, getAddressLocalService, getAddressPersistence, getAddressService, getAssetEntryFinder, getAssetEntryLocalService, getAssetEntryPersistence, getAssetEntryService, getBlogsEntryFinder, getBlogsEntryLocalService, getBlogsEntryPersistence, getBlogsEntryService, getBlogsStatsUserFinder, getBlogsStatsUserLocalService, getBlogsStatsUserPersistence, getBookmarksFolderLocalService, getBookmarksFolderPersistence, getBookmarksFolderService, getBrowserTrackerLocalService, getBrowserTrackerPersistence, getCalEventFinder, getCalEventLocalService, getCalEventPersistence, getCalEventService, getClassNameLocalService, getClassNamePersistence, getClassNameService, getClusterGroupLocalService, getClusterGroupPersistence, getCompanyLocalService, getCompanyPersistence, getCompanyService, getContactLocalService, getContactPersistence, getContactService, getCounterLocalService, getCountryPersistence, getCountryService, getDLFolderFinder, getDLFolderLocalService, getDLFolderPersistence, getDLFolderService, getEmailAddressLocalService, getEmailAddressPersistence, getEmailAddressService, getGroupFinder, getGroupLocalService, getGroupPersistence, getGroups, getGroupsCount, getGroupService, getIGFolderLocalService, getIGFolderPersistence, getIGFolderService, getImageLocalService, getImagePersistence, getImageService, getJournalArticleFinder, getJournalArticleLocalService, getJournalArticlePersistence, getJournalArticleService, getJournalStructureFinder, getJournalStructureLocalService, getJournalStructurePersistence, getJournalStructureService, getJournalTemplateFinder, getJournalTemplateLocalService, getJournalTemplatePersistence, getJournalTemplateService, getLayoutFinder, getLayoutLocalService, getLayoutPersistence, getLayoutPrototypeLocalService, getLayoutPrototypePersistence, getLayoutPrototypeService, getLayoutService, getLayoutSetLocalService, getLayoutSetPersistence, getLayoutSetPrototypeLocalService, getLayoutSetPrototypePersistence, getLayoutSetPrototypeService, getLayoutSetService, getLayoutTemplateLocalService, getListTypePersistence, getListTypeService, getLockLocalService, getLockPersistence, 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, getPhoneLocalService, getPhonePersistence, getPhoneService, getPluginSettingLocalService, getPluginSettingPersistence, getPluginSettingService, getPollsQuestionLocalService, getPollsQuestionPersistence, getPollsQuestionService, getPortalLocalService, getPortalService, getPortletItemLocalService, getPortletItemPersistence, getPortletLocalService, getPortletPersistence, getPortletPreferencesFinder, getPortletPreferencesLocalService, getPortletPreferencesPersistence, getPortletPreferencesService, getPortletService, getQuartzLocalService, getRegionPersistence, getRegionService, getReleaseLocalService, getReleasePersistence, getResourceActionLocalService, getResourceActionPersistence, getResourceCodeLocalService, getResourceCodePersistence, getResourceFinder, getResourceLocalService, getResourcePermissionFinder, getResourcePermissionLocalService, getResourcePermissionPersistence, getResourcePermissionService, getResourcePersistence, getResourceService, getRoleFinder, getRoleLocalService, getRolePersistence, getRoleService, getSCFrameworkVersionLocalService, getSCFrameworkVersionPersistence, getSCFrameworkVersionService, getSCProductEntryLocalService, getSCProductEntryPersistence, getSCProductEntryService, getServiceComponentLocalService, getServiceComponentPersistence, getShardLocalService, getShardPersistence, getShoppingCartLocalService, getShoppingCartPersistence, getShoppingCategoryLocalService, getShoppingCategoryPersistence, getShoppingCategoryService, getShoppingCouponFinder, getShoppingCouponLocalService, getShoppingCouponPersistence, getShoppingCouponService, getShoppingOrderFinder, getShoppingOrderLocalService, getShoppingOrderPersistence, getShoppingOrderService, getSubscriptionLocalService, getSubscriptionPersistence, getTasksProposalFinder, getTasksProposalLocalService, getTasksProposalPersistence, getTasksProposalService, getTeamFinder, getTeamLocalService, getTeamPersistence, getTeamService, getThemeLocalService, getThemeService, getTicketLocalService, getTicketPersistence, getUserFinder, getUserGroupFinder, getUserGroupGroupRoleLocalService, getUserGroupGroupRolePersistence, getUserGroupGroupRoleService, getUserGroupLocalService, getUserGroupPersistence, getUserGroupRoleFinder, getUserGroupRoleLocalService, getUserGroupRolePersistence, getUserGroupRoleService, getUserGroupService, getUserIdMapperLocalService, getUserIdMapperPersistence, getUserLocalService, getUserPersistence, getUserService, getUserTrackerLocalService, getUserTrackerPathLocalService, getUserTrackerPathPersistence, getUserTrackerPersistence, getWebDAVPropsLocalService, getWebDAVPropsPersistence, getWebsiteLocalService, getWebsitePersistence, getWebsiteService, getWikiNodeLocalService, getWikiNodePersistence, getWikiNodeService, getWorkflowDefinitionLinkLocalService, getWorkflowDefinitionLinkPersistence, getWorkflowInstanceLinkLocalService, getWorkflowInstanceLinkPersistence, runSQL, setAccountLocalService, setAccountPersistence, setAccountService, setAddressLocalService, setAddressPersistence, setAddressService, setAssetEntryFinder, setAssetEntryLocalService, setAssetEntryPersistence, setAssetEntryService, setBlogsEntryFinder, setBlogsEntryLocalService, setBlogsEntryPersistence, setBlogsEntryService, setBlogsStatsUserFinder, setBlogsStatsUserLocalService, setBlogsStatsUserPersistence, setBookmarksFolderLocalService, setBookmarksFolderPersistence, setBookmarksFolderService, setBrowserTrackerLocalService, setBrowserTrackerPersistence, setCalEventFinder, setCalEventLocalService, setCalEventPersistence, setCalEventService, setClassNameLocalService, setClassNamePersistence, setClassNameService, setClusterGroupLocalService, setClusterGroupPersistence, setCompanyLocalService, setCompanyPersistence, setCompanyService, setContactLocalService, setContactPersistence, setContactService, setCounterLocalService, setCountryPersistence, setCountryService, setDLFolderFinder, setDLFolderLocalService, setDLFolderPersistence, setDLFolderService, setEmailAddressLocalService, setEmailAddressPersistence, setEmailAddressService, setGroupFinder, setGroupLocalService, setGroupPersistence, setGroupService, setIGFolderLocalService, setIGFolderPersistence, setIGFolderService, setImageLocalService, setImagePersistence, setImageService, setJournalArticleFinder, setJournalArticleLocalService, setJournalArticlePersistence, setJournalArticleService, setJournalStructureFinder, setJournalStructureLocalService, setJournalStructurePersistence, setJournalStructureService, setJournalTemplateFinder, setJournalTemplateLocalService, setJournalTemplatePersistence, setJournalTemplateService, setLayoutFinder, setLayoutLocalService, setLayoutPersistence, setLayoutPrototypeLocalService, setLayoutPrototypePersistence, setLayoutPrototypeService, setLayoutService, setLayoutSetLocalService, setLayoutSetPersistence, setLayoutSetPrototypeLocalService, setLayoutSetPrototypePersistence, setLayoutSetPrototypeService, setLayoutSetService, setLayoutTemplateLocalService, setListTypePersistence, setListTypeService, setLockLocalService, setLockPersistence, 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, setPhoneLocalService, setPhonePersistence, setPhoneService, setPluginSettingLocalService, setPluginSettingPersistence, setPluginSettingService, setPollsQuestionLocalService, setPollsQuestionPersistence, setPollsQuestionService, setPortalLocalService, setPortalService, setPortletItemLocalService, setPortletItemPersistence, setPortletLocalService, setPortletPersistence, setPortletPreferencesFinder, setPortletPreferencesLocalService, setPortletPreferencesPersistence, setPortletPreferencesService, setPortletService, setQuartzLocalService, setRegionPersistence, setRegionService, setReleaseLocalService, setReleasePersistence, setResourceActionLocalService, setResourceActionPersistence, setResourceCodeLocalService, setResourceCodePersistence, setResourceFinder, setResourceLocalService, setResourcePermissionFinder, setResourcePermissionLocalService, setResourcePermissionPersistence, setResourcePermissionService, setResourcePersistence, setResourceService, setRoleFinder, setRoleLocalService, setRolePersistence, setRoleService, setSCFrameworkVersionLocalService, setSCFrameworkVersionPersistence, setSCFrameworkVersionService, setSCProductEntryLocalService, setSCProductEntryPersistence, setSCProductEntryService, setServiceComponentLocalService, setServiceComponentPersistence, setShardLocalService, setShardPersistence, setShoppingCartLocalService, setShoppingCartPersistence, setShoppingCategoryLocalService, setShoppingCategoryPersistence, setShoppingCategoryService, setShoppingCouponFinder, setShoppingCouponLocalService, setShoppingCouponPersistence, setShoppingCouponService, setShoppingOrderFinder, setShoppingOrderLocalService, setShoppingOrderPersistence, setShoppingOrderService, setSubscriptionLocalService, setSubscriptionPersistence, setTasksProposalFinder, setTasksProposalLocalService, setTasksProposalPersistence, setTasksProposalService, setTeamFinder, setTeamLocalService, setTeamPersistence, setTeamService, setThemeLocalService, setThemeService, setTicketLocalService, setTicketPersistence, setUserFinder, setUserGroupFinder, setUserGroupGroupRoleLocalService, setUserGroupGroupRolePersistence, setUserGroupGroupRoleService, setUserGroupLocalService, setUserGroupPersistence, setUserGroupRoleFinder, setUserGroupRoleLocalService, setUserGroupRolePersistence, setUserGroupRoleService, setUserGroupService, setUserIdMapperLocalService, setUserIdMapperPersistence, setUserLocalService, setUserPersistence, setUserService, setUserTrackerLocalService, setUserTrackerPathLocalService, setUserTrackerPathPersistence, setUserTrackerPersistence, setWebDAVPropsLocalService, setWebDAVPropsPersistence, setWebsiteLocalService, setWebsitePersistence, setWebsiteService, setWikiNodeLocalService, setWikiNodePersistence, setWikiNodeService, setWorkflowDefinitionLinkLocalService, setWorkflowDefinitionLinkPersistence, setWorkflowInstanceLinkLocalService, setWorkflowInstanceLinkPersistence, updateGroup, updateGroup
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

publicLARFile

protected File publicLARFile
Constructor Detail

GroupLocalServiceImpl

public GroupLocalServiceImpl()
Method Detail

addGroup

public Group addGroup(long userId,
                      String className,
                      long classPK,
                      String name,
                      String description,
                      int type,
                      String friendlyURL,
                      boolean active,
                      ServiceContext serviceContext)
               throws PortalException,
                      SystemException
Throws:
PortalException
SystemException

addGroup

public Group addGroup(long userId,
                      String className,
                      long classPK,
                      long liveGroupId,
                      String name,
                      String description,
                      int type,
                      String friendlyURL,
                      boolean active,
                      ServiceContext serviceContext)
               throws PortalException,
                      SystemException
Throws:
PortalException
SystemException

addRoleGroups

public void addRoleGroups(long roleId,
                          long[] groupIds)
                   throws SystemException
Throws:
SystemException

addUserGroups

public void addUserGroups(long userId,
                          long[] groupIds)
                   throws SystemException
Throws:
SystemException

checkCompanyGroup

@Transactional(propagation=SUPPORTS,
               readOnly=true)
public void checkCompanyGroup(long companyId)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

checkSystemGroups

@Transactional(propagation=SUPPORTS,
               readOnly=true)
public void checkSystemGroups(long companyId)
                       throws PortalException,
                              SystemException
Throws:
PortalException
SystemException

deleteGroup

public void deleteGroup(long groupId)
                 throws PortalException,
                        SystemException
Description copied from class: GroupLocalServiceBaseImpl
Deletes the group with the primary key from the database. Also notifies the appropriate model listeners.

Specified by:
deleteGroup in interface GroupLocalService
Overrides:
deleteGroup in class GroupLocalServiceBaseImpl
Parameters:
groupId - the primary key of the group to delete
Throws:
PortalException - if a group with the primary key could not be found
SystemException - if a system exception occurred

getCompanyGroup

public Group getCompanyGroup(long companyId)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

getCompanyGroups

public List<Group> getCompanyGroups(long companyId,
                                    int start,
                                    int end)
                             throws SystemException
Throws:
SystemException

getCompanyGroupsCount

public int getCompanyGroupsCount(long companyId)
                          throws SystemException
Throws:
SystemException

getFriendlyURLGroup

public Group getFriendlyURLGroup(long companyId,
                                 String friendlyURL)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getGroup

@ThreadLocalCachable
public Group getGroup(long groupId)
               throws PortalException,
                      SystemException
Description copied from class: GroupLocalServiceBaseImpl
Gets the group with the primary key.

Specified by:
getGroup in interface GroupLocalService
Overrides:
getGroup in class GroupLocalServiceBaseImpl
Parameters:
groupId - the primary key of the group to get
Returns:
the group
Throws:
PortalException - if a group with the primary key could not be found
SystemException - if a system exception occurred

getGroup

public Group getGroup(long companyId,
                      String name)
               throws PortalException,
                      SystemException
Throws:
PortalException
SystemException

getGroups

public List<Group> getGroups(long[] groupIds)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

getLayoutGroup

public Group getLayoutGroup(long companyId,
                            long plid)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

getLayoutPrototypeGroup

public Group getLayoutPrototypeGroup(long companyId,
                                     long layoutPrototypeId)
                              throws PortalException,
                                     SystemException
Throws:
PortalException
SystemException

getLayoutSetPrototypeGroup

public Group getLayoutSetPrototypeGroup(long companyId,
                                        long layoutSetPrototypeId)
                                 throws PortalException,
                                        SystemException
Throws:
PortalException
SystemException

getLiveGroups

public List<Group> getLiveGroups()
                          throws SystemException
Throws:
SystemException

getNoLayoutsGroups

public List<Group> getNoLayoutsGroups(String className,
                                      boolean privateLayout,
                                      int start,
                                      int end)
                               throws SystemException
Throws:
SystemException

getNullFriendlyURLGroups

public List<Group> getNullFriendlyURLGroups()
                                     throws SystemException
Throws:
SystemException

getOrganizationGroup

public Group getOrganizationGroup(long companyId,
                                  long organizationId)
                           throws PortalException,
                                  SystemException
Throws:
PortalException
SystemException

getOrganizationsGroups

public List<Group> getOrganizationsGroups(List<Organization> organizations)

getOrganizationsRelatedGroups

public List<Group> getOrganizationsRelatedGroups(List<Organization> organizations)
                                          throws SystemException
Throws:
SystemException

getRoleGroups

public List<Group> getRoleGroups(long roleId)
                          throws SystemException
Throws:
SystemException

getStagingGroup

public Group getStagingGroup(long liveGroupId)
                      throws PortalException,
                             SystemException
Throws:
PortalException
SystemException

getUserGroup

public Group getUserGroup(long companyId,
                          long userId)
                   throws PortalException,
                          SystemException
Throws:
PortalException
SystemException

getUserGroupGroup

public Group getUserGroupGroup(long companyId,
                               long userGroupId)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

getUserGroups

public List<Group> getUserGroups(long userId)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getUserGroups

public List<Group> getUserGroups(long userId,
                                 boolean inherit)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getUserGroups

public List<Group> getUserGroups(long userId,
                                 int start,
                                 int end)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getUserGroups

public List<Group> getUserGroups(long userId,
                                 boolean inherit,
                                 int start,
                                 int end)
                          throws PortalException,
                                 SystemException
Throws:
PortalException
SystemException

getUserGroupsGroups

public List<Group> getUserGroupsGroups(List<UserGroup> userGroups)
                                throws PortalException,
                                       SystemException
Throws:
PortalException
SystemException

getUserGroupsRelatedGroups

public List<Group> getUserGroupsRelatedGroups(List<UserGroup> userGroups)
                                       throws SystemException
Throws:
SystemException

getUserOrganizationsGroups

public List<Group> getUserOrganizationsGroups(long userId,
                                              int start,
                                              int end)
                                       throws PortalException,
                                              SystemException
Throws:
PortalException
SystemException

hasRoleGroup

public boolean hasRoleGroup(long roleId,
                            long groupId)
                     throws SystemException
Throws:
SystemException

hasStagingGroup

public boolean hasStagingGroup(long liveGroupId)
                        throws SystemException
Throws:
SystemException

hasUserGroup

public boolean hasUserGroup(long userId,
                            long groupId)
                     throws SystemException
Throws:
SystemException

search

public List<Group> search(long companyId,
                          String name,
                          String description,
                          LinkedHashMap<String,Object> params,
                          int start,
                          int end)
                   throws SystemException
Throws:
SystemException

search

public List<Group> search(long companyId,
                          String name,
                          String description,
                          LinkedHashMap<String,Object> params,
                          int start,
                          int end,
                          OrderByComparator obc)
                   throws SystemException
Throws:
SystemException

searchCount

@ThreadLocalCachable
public int searchCount(long companyId,
                                           String name,
                                           String description,
                                           LinkedHashMap<String,Object> params)
                throws SystemException
Throws:
SystemException

setRoleGroups

public void setRoleGroups(long roleId,
                          long[] groupIds)
                   throws SystemException
Throws:
SystemException

unsetRoleGroups

public void unsetRoleGroups(long roleId,
                            long[] groupIds)
                     throws SystemException
Throws:
SystemException

unsetUserGroups

public void unsetUserGroups(long userId,
                            long[] groupIds)
                     throws SystemException
Throws:
SystemException

updateAsset

public void updateAsset(long userId,
                        Group group,
                        long[] assetCategoryIds,
                        String[] assetTagNames)
                 throws PortalException,
                        SystemException
Throws:
PortalException
SystemException

updateFriendlyURL

public Group updateFriendlyURL(long groupId,
                               String friendlyURL)
                        throws PortalException,
                               SystemException
Throws:
PortalException
SystemException

updateGroup

public Group updateGroup(long groupId,
                         String name,
                         String description,
                         int type,
                         String friendlyURL,
                         boolean active,
                         ServiceContext serviceContext)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

updateGroup

public Group updateGroup(long groupId,
                         String typeSettings)
                  throws PortalException,
                         SystemException
Throws:
PortalException
SystemException

updateWorkflow

public Group updateWorkflow(long groupId,
                            boolean workflowEnabled,
                            int workflowStages,
                            String workflowRoleNames)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

addControlPanelLayouts

protected void addControlPanelLayouts(Group group)
                               throws PortalException,
                                      SystemException
Throws:
PortalException
SystemException

addDefaultGuestPublicLayoutByProperties

protected void addDefaultGuestPublicLayoutByProperties(Group group)
                                                throws PortalException,
                                                       SystemException
Throws:
PortalException
SystemException

addDefaultGuestPublicLayouts

protected void addDefaultGuestPublicLayouts(Group group)
                                     throws PortalException,
                                            SystemException
Throws:
PortalException
SystemException

addDefaultGuestPublicLayoutsByLAR

protected void addDefaultGuestPublicLayoutsByLAR(Group group,
                                                 File larFile)
                                          throws PortalException,
                                                 SystemException
Throws:
PortalException
SystemException

getFriendlyURL

protected String getFriendlyURL(String friendlyURL)

getFriendlyURL

protected String getFriendlyURL(long companyId,
                                long groupId,
                                long classNameId,
                                long classPK,
                                String friendlyName,
                                String friendlyURL)
                         throws PortalException,
                                SystemException
Throws:
PortalException
SystemException

getRealName

protected String getRealName(long companyId,
                             String name)
                      throws SystemException
Throws:
SystemException

isStaging

protected boolean isStaging(ServiceContext serviceContext)

initImportLARFile

protected void initImportLARFile()

unscheduleStaging

protected void unscheduleStaging(Group group)

validateFriendlyURL

protected void validateFriendlyURL(long companyId,
                                   long groupId,
                                   long classNameId,
                                   long classPK,
                                   String friendlyURL)
                            throws PortalException,
                                   SystemException
Throws:
PortalException
SystemException

validateName

protected void validateName(long groupId,
                            long companyId,
                            String name)
                     throws PortalException,
                            SystemException
Throws:
PortalException
SystemException

Liferay 6.0-ee