@Override public boolean hasStagingGroup() { return _group.hasStagingGroup(); }
if (group.hasStagingGroup() && _STAGING_LIVE_GROUP_LOCKING_ENABLED) { return null;
@Override public boolean isGroupAccessible(Group group, Group fromGroup) { if (group.equals(fromGroup)) { return true; } if (group.isStaged() && !group.isStagedRemotely() && group.isStagingGroup()) { return false; } if (group.hasStagingGroup() && fromGroup.equals(group.getStagingGroup())) { return false; } return true; }
@Override public Group getStagingGroup(long groupId) { Group group = _groupLocalService.fetchGroup(groupId); if (group == null) { return null; } Group stagingGroup = group; if (!group.isStagedRemotely() && group.hasStagingGroup()) { stagingGroup = group.getStagingGroup(); } return stagingGroup; }
protected int getStagingType( PortletRequest portletRequest, Group liveGroup) { String stagingType = portletRequest.getParameter("stagingType"); if (stagingType != null) { return GetterUtil.getInteger(stagingType); } if (liveGroup.isStagedRemotely()) { return StagingConstants.TYPE_REMOTE_STAGING; } if (liveGroup.hasStagingGroup()) { return StagingConstants.TYPE_LOCAL_STAGING; } return StagingConstants.TYPE_NOT_STAGED; }
@Override public boolean isInitialPublication() { Group group = null; try { group = GroupLocalServiceUtil.getGroup(getGroupId()); } catch (Exception e) { } if (ExportImportThreadLocal.isStagingInProcess() && (group != null) && group.hasStagingGroup()) { return true; } return false; }
if (scopeGroup.hasStagingGroup() && !scopeGroup.isStagingGroup() && PropsValues.STAGING_LIVE_GROUP_LOCKING_ENABLED) {
if (!group.isStagedRemotely() && group.hasStagingGroup()) { try { PermissionChecker permissionChecker =
protected void initLayoutSetBranches( long userId, long sourceGroupId, long targetGroupId) throws PortalException { Group sourceGroup = GroupLocalServiceUtil.getGroup(sourceGroupId); if (!sourceGroup.hasStagingGroup()) { return; } LayoutSetBranchLocalServiceUtil.deleteLayoutSetBranches( targetGroupId, false, true); LayoutSetBranchLocalServiceUtil.deleteLayoutSetBranches( targetGroupId, true, true); UnicodeProperties typeSettingsProperties = sourceGroup.getTypeSettingsProperties(); boolean branchingPrivate = GetterUtil.getBoolean( typeSettingsProperties.getProperty("branchingPrivate")); boolean branchingPublic = GetterUtil.getBoolean( typeSettingsProperties.getProperty("branchingPublic")); ServiceContext serviceContext = new ServiceContext(); serviceContext.setUserId(userId); StagingLocalServiceUtil.checkDefaultLayoutSetBranches( userId, sourceGroup, branchingPublic, branchingPrivate, false, serviceContext); }
@Override public Void call() throws PortalException { Group group = _groupLocalService.getGroup(_groupId); Layout layout = _layoutLocalService.fetchLayout(_plid); if (group.hasStagingGroup()) { group = group.getStagingGroup(); if (layout != null) { layout = _layoutLocalService.fetchLayoutByUuidAndGroupId( layout.getUuid(), group.getGroupId(), layout.isPrivateLayout()); } } javax.portlet.PortletPreferences jxPortletPreferences = null; if (layout == null) { jxPortletPreferences = PortletPreferencesFactoryUtil.getStrictPortletSetup( group.getCompanyId(), group.getGroupId(), _portletId); } else { jxPortletPreferences = PortletPreferencesFactoryUtil.getStrictPortletSetup( layout, _portletId); } ExportImportDateUtil.updateLastPublishDate( _portletId, jxPortletPreferences, _dateRange, _endDate); return null; }
(group.isStaged() || group.hasStagingGroup()) && !(group.isStagedRemotely() && group.hasRemoteStagingGroup())) {
if (liveGroup.hasStagingGroup() || liveGroup.isStagedRemotely()) { _stagingLocalService.disableStaging( portletRequest, liveGroup, serviceContext);
if (sourceGroup.hasStagingGroup()) { Group stagingGroup = sourceGroup.getStagingGroup(); if (sourceGroup.hasStagingGroup()) { ServiceContext serviceContext = new ServiceContext();