/** * Returns the live group ID of this group. * * @return the live group ID of this group */ @Override public long getLiveGroupId() { return _group.getLiveGroupId(); }
private LinkedHashMap<String, Object> _getGroupParams() throws PortalException { if (_groupParams != null) { return _groupParams; } _groupParams = new LinkedHashMap<>(); _groupParams.put("active", Boolean.TRUE); ThemeDisplay themeDisplay = (ThemeDisplay)request.getAttribute( WebKeys.THEME_DISPLAY); List<Group> parentGroups = new ArrayList<>(); parentGroups.add(themeDisplay.getSiteGroup()); _groupParams.put("groupsTree", parentGroups); _groupParams.put("site", Boolean.TRUE); List<Long> excludedGroupIds = new ArrayList<>(); Group group = themeDisplay.getSiteGroup(); if (group.isStagingGroup()) { excludedGroupIds.add(group.getLiveGroupId()); } else { excludedGroupIds.add(themeDisplay.getSiteGroupId()); } _groupParams.put("excludedGroupIds", excludedGroupIds); return _groupParams; }
excludedGroupIds.add(group.getLiveGroupId());
public static GroupSoap toSoapModel(Group model) { GroupSoap soapModel = new GroupSoap(); soapModel.setMvccVersion(model.getMvccVersion()); soapModel.setUuid(model.getUuid()); soapModel.setGroupId(model.getGroupId()); soapModel.setCompanyId(model.getCompanyId()); soapModel.setCreatorUserId(model.getCreatorUserId()); soapModel.setClassNameId(model.getClassNameId()); soapModel.setClassPK(model.getClassPK()); soapModel.setParentGroupId(model.getParentGroupId()); soapModel.setLiveGroupId(model.getLiveGroupId()); soapModel.setTreePath(model.getTreePath()); soapModel.setGroupKey(model.getGroupKey()); soapModel.setName(model.getName()); soapModel.setDescription(model.getDescription()); soapModel.setType(model.getType()); soapModel.setTypeSettings(model.getTypeSettings()); soapModel.setManualMembership(model.isManualMembership()); soapModel.setMembershipRestriction(model.getMembershipRestriction()); soapModel.setFriendlyURL(model.getFriendlyURL()); soapModel.setSite(model.isSite()); soapModel.setRemoteStagingGroupCount(model.getRemoteStagingGroupCount()); soapModel.setInheritContent(model.isInheritContent()); soapModel.setActive(model.isActive()); return soapModel; }
@Override public void unschedulePublishToLive(PortletRequest portletRequest) throws PortalException { long stagingGroupId = ParamUtil.getLong( portletRequest, "stagingGroupId"); Group stagingGroup = _groupLocalService.getGroup(stagingGroupId); long liveGroupId = stagingGroup.getLiveGroupId(); String jobName = ParamUtil.getString(portletRequest, "jobName"); String groupName = getSchedulerGroupName( DestinationNames.LAYOUTS_LOCAL_PUBLISHER, liveGroupId); _layoutService.unschedulePublishToLive(liveGroupId, jobName, groupName); }
@Override public void addPortletPermissions(String resourceName) throws PortalException { long groupId = getGroupId(); Group group = GroupLocalServiceUtil.getGroup(groupId); if (group.isStagingGroup()) { if (group.isStagedRemotely()) { groupId = group.getLiveGroupId(); } else { return; } } addPermissions(resourceName, groupId); }
protected JournalArticle fetchLatestLiveArticle(JournalArticle article) throws PortalException { Group group = groupLocalService.getGroup(article.getGroupId()); long liveGroupId = group.getLiveGroupId(); if (liveGroupId == 0) { return null; } JournalArticleResource articleResource = journalArticleResourceLocalService. fetchJournalArticleResourceByUuidAndGroupId( article.getArticleResourceUuid(), liveGroupId); if (articleResource == null) { return null; } return journalArticleLocalService.fetchLatestArticle( articleResource.getResourcePrimKey(), WorkflowConstants.STATUS_ANY, false); }
long liveGroupId = group.getLiveGroupId();
(group.getLiveGroupId() == urlGroup.getGroupId()))) {
long targetGroupId = sourceGroup.getLiveGroupId();
long sourceGroupId = stagingGroup.getLiveGroupId();
!group.isStagedPortlet(portletId)) { groupId = group.getLiveGroupId();
!group.isStagedRemotely()) { curGroupId = group.getLiveGroupId();
@Override public void scheduleCopyFromLive(PortletRequest portletRequest) throws PortalException { long targetGroupId = ParamUtil.getLong( portletRequest, "stagingGroupId"); Group targetGroup = _groupLocalService.getGroup(targetGroupId); long sourceGroupId = targetGroup.getLiveGroupId(); boolean privateLayout = getPrivateLayout(portletRequest); long[] layoutIds = _exportImportHelper.getLayoutIds( portletRequest, targetGroupId); Map<String, String[]> parameterMap = _exportImportConfigurationParameterMapFactory.buildParameterMap( portletRequest); ScheduleInformation scheduleInformation = getScheduleInformation( portletRequest, targetGroupId, false); String name = ParamUtil.getString(portletRequest, "name"); _layoutService.schedulePublishToLive( sourceGroupId, targetGroupId, privateLayout, layoutIds, parameterMap, scheduleInformation.getGroupName(), scheduleInformation.getCronText(), scheduleInformation.getStartDate(), scheduleInformation.getSchedulerEndDate(), name); }
!group.isStagedPortlet(portletId)) { groupId = group.getLiveGroupId();
Group group = GroupLocalServiceUtil.getGroup(groupId); long liveGroupId = group.getLiveGroupId();
scopeLayoutUuid, group.getLiveGroupId(), portletDataContext.isPrivateLayout());