<% /** * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved. * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to deal * in the Software without restriction, including without limitation the rights * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell * copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ %> <% PortletURL publishToLiveURL = renderResponse.createRenderURL(); publishToLiveURL.setWindowState(LiferayWindowState.EXCLUSIVE); publishToLiveURL.setPortletMode(PortletMode.VIEW); publishToLiveURL.setParameter("struts_action", "/communities/export_pages"); publishToLiveURL.setParameter("tabs1", tabs1); publishToLiveURL.setParameter("pagesRedirect", portletURL.toString() + "&" + renderResponse.getNamespace() + "tabs4=" + tabs4 + "&" + renderResponse.getNamespace() + "selPlid=" + selPlid); publishToLiveURL.setParameter("groupId", String.valueOf(groupId)); publishToLiveURL.setParameter("selPlid", String.valueOf(selPlid)); publishToLiveURL.setParameter("localPublishing", "1"); PortletURL publishToRemoteURL = PortletURLUtil.clone(publishToLiveURL, renderResponse); publishToRemoteURL.setParameter("localPublishing", "0"); %> <% RemoteExportException ree = (RemoteExportException)errorException; %> <%= LanguageUtil.format(pageContext, "could-not-connect-to-address-x.-please-verify-that-the-specified-port-is-correct-and-that-the-remote-server-is-configured-to-accept-requests-from-this-server", "" + ree.getURL() + "") %> <%= LanguageUtil.format(pageContext, "remote-group-with-id-x-does-not-exist", ree.getGroupId()) %>
" onClick="var stagingGroupWindow = window.open('<%= viewPagesURL %>'); void(''); stagingGroupWindow.focus();" /> <% JSONArray jsonReviewers = JSONFactoryUtil.createJSONArray(); Role role = RoleLocalServiceUtil.getRole(company.getCompanyId(), workflowRoleNames[0]); LinkedHashMap userParams = new LinkedHashMap(); if (liveGroup.isOrganization()) { userParams.put("usersOrgs", new Long(liveGroup.getClassPK())); } else { userParams.put("usersGroups", new Long(liveGroupId)); } userParams.put("userGroupRole", new Long[] {new Long(liveGroupId), new Long(role.getRoleId())}); List reviewers = UserLocalServiceUtil.search(company.getCompanyId(), null, null, userParams, QueryUtil.ALL_POS, QueryUtil.ALL_POS, (OrderByComparator)null); if (reviewers.size() == 0) { if (liveGroup.isCommunity()) { role = RoleLocalServiceUtil.getRole(company.getCompanyId(), RoleConstants.COMMUNITY_OWNER); } else { role = RoleLocalServiceUtil.getRole(company.getCompanyId(), RoleConstants.ORGANIZATION_OWNER); } userParams.put("userGroupRole", new Long[] {new Long(liveGroupId), new Long(role.getRoleId())}); reviewers = UserLocalServiceUtil.search(company.getCompanyId(), null, null, userParams, QueryUtil.ALL_POS, QueryUtil.ALL_POS, (OrderByComparator)null); } for (User reviewer : reviewers) { JSONObject jsonReviewer = JSONFactoryUtil.createJSONObject(); jsonReviewer.put("userId", reviewer.getUserId()); jsonReviewer.put("fullName", reviewer.getFullName()); jsonReviewers.put(jsonReviewer); } %> " onClick="Liferay.LayoutExporter.proposeLayout({url: '<%= proposalURL.toString().replace('"','\'') %>', namespace: '', reviewers: <%= StringUtil.replace(jsonReviewers.toString(), '"', '\'') %>, title: ''});" /> " onClick="Liferay.LayoutExporter.publishToLive({url: '<%= publishToRemoteURL %>', messageId: 'publish-to-remote'});" /> " onClick="Liferay.LayoutExporter.publishToLive({url: '<%= publishToLiveURL %>', messageId: 'publish-to-live'});" /> " onClick="Liferay.LayoutExporter.publishToLive({url: '<%= publishToRemoteURL %>', messageId: 'publish-to-remote'});" /> " onClick="Liferay.LayoutExporter.publishToLive({url: '<%= importLayoutsURL %>', messageId: 'copy-from-live'});" />

" onClick="var liveGroupWindow = window.open('<%= viewPagesURL %>'); void(''); liveGroupWindow.focus();" /> " onClick="Liferay.LayoutExporter.publishToLive({url: '<%= publishToRemoteURL %>', messageId: 'publish-to-remote'});" />

<% PortletURL breadcrumbURL = PortletURLUtil.clone(portletURL, renderResponse); %> <%= LanguageUtil.get(pageContext, "edit-" + (privateLayout ? "private" : "public") + "-page") %>: <%= HtmlUtil.escape(rootNodeName) %> » <%= LanguageUtil.get(pageContext, "manage-top-" + (privateLayout ? "private" : "public") + "-pages-for") %>: <%= HtmlUtil.escape(rootNodeName) %>

<% String tabs3Names = "page,children"; if ((selLayout != null) && (permissionChecker.isOmniadmin() || PropsValues.LOOK_AND_FEEL_MODIFIABLE)) { tabs3Names += ",look-and-feel"; } if ((selLayout != null) && !PortalUtil.isLayoutParentable(selLayout)) { tabs3Names = StringUtil.replace(tabs3Names, "children,", StringPool.BLANK); } if (selLayout == null) { tabs3Names = StringUtil.replace(tabs3Names, "page,", StringPool.BLANK); } if (!StringUtil.contains(tabs3Names, tabs3)) { if (selLayout == null) { tabs3 = "children"; } else { tabs3 = "page"; } } PortletURL tabs3PortletURL = PortletURLUtil.clone(portletURL, renderResponse); tabs3PortletURL.setParameter("tabs4", ""); %> <% LayoutParentLayoutIdException lplide = (LayoutParentLayoutIdException)errorException; %> : <%= PortalUtil.getFirstPageLayoutTypes(pageContext) %> <% LayoutTypeException lte = (LayoutTypeException)errorException; %> : <%= PortalUtil.getFirstPageLayoutTypes(pageContext) %>