@Override public com.liferay.portal.kernel.model.Group fetchGroup(long groupId) { return _groupLocalService.fetchGroup(groupId); }
/** * Returns the group with the primary key. * * @param groupId the primary key of the group * @return the group * @throws PortalException if a group with the primary key could not be found */ @Override public com.liferay.portal.kernel.model.Group getGroup(long groupId) throws com.liferay.portal.kernel.exception.PortalException { return _groupLocalService.getGroup(groupId); }
/** * Returns the company's group. * * @param companyId the primary key of the company * @return the company's group, or <code>null</code> if a matching group could not be found */ @Override public com.liferay.portal.kernel.model.Group fetchCompanyGroup( long companyId) { return _groupLocalService.fetchCompanyGroup(companyId); }
scopeGroup = _groupLocalService.getCompanyGroup( portletDataContext.getCompanyId()); portletDataContext.isPrivateLayout()); scopeGroup = _groupLocalService.checkScopeGroup( scopeLayout, portletDataContext.getUserId(null)); oldScopeGroup.getGroupId()); _groupLocalService.updateGroup(scopeGroup); scopeGroup.getGroupId()); _groupLocalService.updateGroup(oldScopeGroup); scopeGroup = _groupLocalService.checkScopeGroup( scopeLiveLayout, portletDataContext.getUserId(null)); Group group = _groupLocalService.getGroup( portletDataContext.getGroupId());
@Override public String replaceImportContentReferences( PortletDataContext portletDataContext, StagedModel stagedModel, String content) throws Exception { JournalFeed feed = (JournalFeed)stagedModel; Group group = _groupLocalService.getGroup( portletDataContext.getScopeGroupId()); String newGroupFriendlyURL = group.getFriendlyURL(); newGroupFriendlyURL = newGroupFriendlyURL.substring(1); String newTargetLayoutFriendlyURL = StringUtil.replace( feed.getTargetLayoutFriendlyUrl(), _DATA_HANDLER_GROUP_FRIENDLY_URL, newGroupFriendlyURL); long plid = _portal.getPlidFromFriendlyURL( portletDataContext.getCompanyId(), newTargetLayoutFriendlyURL); if (plid <= 0) { Group oldGroup = _groupLocalService.fetchGroup( portletDataContext.getSourceGroupId()); if (oldGroup == null) { return content; } String oldGroupFriendlyURL = oldGroup.getFriendlyURL(); oldGroupFriendlyURL = oldGroupFriendlyURL.substring(1); newTargetLayoutFriendlyURL = StringUtil.replace( feed.getTargetLayoutFriendlyUrl(), _DATA_HANDLER_GROUP_FRIENDLY_URL, oldGroupFriendlyURL); } feed.setTargetLayoutFriendlyUrl(newTargetLayoutFriendlyURL); return content; }
protected JournalArticle fetchExistingArticleWithParentGroups( String articleUuid, String articleResourceUuid, long groupId, String articleId, String newArticleId, double version, boolean preloaded) { Group group = _groupLocalService.fetchGroup(groupId); if (group == null) { return null; } long companyId = group.getCompanyId(); while (group != null) { JournalArticle article = fetchExistingArticle( articleUuid, articleResourceUuid, group.getGroupId(), articleId, newArticleId, version, preloaded); if (article != null) { return article; } group = group.getParentGroup(); } Group companyGroup = _groupLocalService.fetchCompanyGroup(companyId); if (companyGroup == null) { return null; } return fetchExistingArticle( articleUuid, articleResourceUuid, companyGroup.getGroupId(), articleId, newArticleId, version, preloaded); }
Group group = _groupLocalService.getGroup(groupId); Group urlGroup = _groupLocalService.fetchFriendlyURLGroup( group.getCompanyId(), groupFriendlyURL);
private void _setGroupTypeSetting(long groupId, String key, String value) { Group group = _groupLocalService.fetchGroup(groupId); if (group == null) { return; } UnicodeProperties typeSettingsProperties = group.getTypeSettingsProperties(); if (Validator.isNotNull(value)) { typeSettingsProperties.setProperty(key, value); } else { typeSettingsProperties.remove(key); } group.setTypeSettingsProperties(typeSettingsProperties); group.setTypeSettings(typeSettingsProperties.toString()); _groupLocalService.updateGroup(group); }
/** * Returns the company group. * * @param companyId the primary key of the company * @return the group associated with the company * @throws PortalException if a portal exception occurred */ @Override public com.liferay.portal.kernel.model.Group getCompanyGroup(long companyId) throws com.liferay.portal.kernel.exception.PortalException { return _groupLocalService.getCompanyGroup(companyId); }
Group childGroup = _groupLocalService.getGroup(childGroupId); Group scopeGroup = _groupLocalService.getGroup(scopeGroupId); layoutUuid, siteGroupId, privateLayout); Group scopeIdGroup = _groupLocalService.checkScopeGroup( scopeIdLayout, PrincipalThreadLocal.getUserId()); Group parentGroup = _groupLocalService.getGroup(parentGroupId); Group group = _groupLocalService.getGroup(siteGroupId);
String publicLayoutSetPortalURL = StringPool.BLANK; Group group = _groupLocalService.getGroup( portletDataContext.getScopeGroupId()); _groupLocalService.fetchGroupByUuidAndCompanyId( groupUuid, portletDataContext.getCompanyId()); _groupLocalService.fetchFriendlyURLGroup( portletDataContext.getCompanyId(), groupUuid);
Group sourceGroup = _groupLocalService.getGroup(sourceGroupId); typeSettingsProperties.getProperty("secureConnection"))); _groupLocalService.validateRemote( sourceGroupId, remoteAddress, remotePort, remotePathContext, secureConnection, sourceGroup.getRemoteLiveGroupId());
Group companyGroup = _groupLocalService.fetchCompanyGroup( companyId); _groupLocalService.fetchUserPersonalSiteGroup(companyId);
@Override public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() { return _groupLocalService.dynamicQuery(); }
@Override public com.liferay.portal.kernel.model.Group checkScopeGroup( com.liferay.portal.kernel.model.Layout layout, long userId) throws com.liferay.portal.kernel.exception.PortalException { return _groupLocalService.checkScopeGroup(layout, userId); }
/** * Returns the group with the matching friendly URL. * * @param companyId the primary key of the company * @param friendlyURL the friendly URL * @return the group with the friendly URL, or <code>null</code> if a matching group could not be found */ @Override public com.liferay.portal.kernel.model.Group fetchFriendlyURLGroup( long companyId, String friendlyURL) { return _groupLocalService.fetchFriendlyURLGroup(companyId, friendlyURL); }
/** * Returns the group with the matching UUID and company. * * @param uuid the group's UUID * @param companyId the primary key of the company * @return the matching group, or <code>null</code> if a matching group could not be found */ @Override public com.liferay.portal.kernel.model.Group fetchGroupByUuidAndCompanyId( String uuid, long companyId) { return _groupLocalService.fetchGroupByUuidAndCompanyId(uuid, companyId); }
Group group = _groupLocalService.getGroup( portletDataContext.getScopeGroupId()); Group targetLayoutGroup = _groupLocalService.fetchFriendlyURLGroup( portletDataContext.getCompanyId(), StringPool.SLASH + oldGroupFriendlyURL);
/** * Returns the company group. * * @param companyId the primary key of the company * @return the group associated with the company * @throws PortalException if a portal exception occurred */ public static com.liferay.portal.kernel.model.Group getCompanyGroup( long companyId) throws com.liferay.portal.kernel.exception.PortalException { return getService().getCompanyGroup(companyId); }
Group childGroup = _groupLocalService.getGroup(childGroupId); Group scopeGroup = _groupLocalService.getGroup(scopeGroupId); layoutUuid, siteGroupId, privateLayout); Group scopeIdGroup = _groupLocalService.checkScopeGroup( scopeIdLayout, PrincipalThreadLocal.getUserId()); Group parentGroup = _groupLocalService.getGroup(parentGroupId); Group group = _groupLocalService.getGroup(siteGroupId);