本文整理了Java中com.liferay.portal.kernel.model.Group.hasStagingGroup()
方法的一些代码示例,展示了Group.hasStagingGroup()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Group.hasStagingGroup()
方法的具体详情如下:
包路径:com.liferay.portal.kernel.model.Group
类名称:Group
方法名:hasStagingGroup
暂无
代码示例来源:origin: com.liferay.portal/com.liferay.portal.kernel
@Override
public boolean hasStagingGroup() {
return _group.hasStagingGroup();
}
代码示例来源:origin: com.liferay.portal/com.liferay.portal.kernel
if (group.hasStagingGroup() && _STAGING_LIVE_GROUP_LOCKING_ENABLED) {
return null;
代码示例来源:origin: com.liferay/com.liferay.exportimport.service
@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;
}
代码示例来源:origin: com.liferay/com.liferay.exportimport.service
@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;
}
代码示例来源:origin: com.liferay/com.liferay.exportimport.service
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;
}
代码示例来源:origin: com.liferay/com.liferay.exportimport.service
@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;
}
代码示例来源:origin: com.liferay/com.liferay.asset.publisher.web
if (scopeGroup.hasStagingGroup() && !scopeGroup.isStagingGroup() &&
PropsValues.STAGING_LIVE_GROUP_LOCKING_ENABLED) {
代码示例来源:origin: com.liferay/com.liferay.exportimport.service
if (!group.isStagedRemotely() && group.hasStagingGroup()) {
try {
PermissionChecker permissionChecker =
代码示例来源:origin: com.liferay/com.liferay.exportimport.service
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);
}
代码示例来源:origin: com.liferay/com.liferay.exportimport.service
@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;
}
代码示例来源:origin: com.liferay/com.liferay.exportimport.service
(group.isStaged() || group.hasStagingGroup()) &&
!(group.isStagedRemotely() &&
group.hasRemoteStagingGroup())) {
代码示例来源:origin: com.liferay/com.liferay.exportimport.service
if (liveGroup.hasStagingGroup() || liveGroup.isStagedRemotely()) {
_stagingLocalService.disableStaging(
portletRequest, liveGroup, serviceContext);
代码示例来源:origin: com.liferay/com.liferay.exportimport.service
if (sourceGroup.hasStagingGroup()) {
Group stagingGroup = sourceGroup.getStagingGroup();
if (sourceGroup.hasStagingGroup()) {
ServiceContext serviceContext = new ServiceContext();
内容来源于网络,如有侵权,请联系作者删除!