You’ve installed Oracle Webcenter 11.1.1.8.0 in a previous tutorial published here, but you may or may not be aware of these components that are coming into action with that installation.
您已经在此处发布的上一教程中安装了Oracle Webcenter 11.1.1.8.0,但是您可能知道或可能不知道与该安装一起使用的这些组件。
When you install Oracle Webcenter Portal, the components that you choose to install are deployed to various default managed servers. Table below lists the managed server and the port number on which Oracle Webcenter Portal components are deployed.
安装Oracle Webcenter Portal时,您选择安装的组件将部署到各种默认托管服务器上。 下表列出了托管服务器以及在其上部署Oracle Webcenter Portal组件的端口号。
Component | Managed Server | Port |
---|---|---|
WebCenter Portal | WC_Spaces | 8888 |
Oracle WebCenter Portal’s Portlet Producers | WC_Portlet | 8889 |
Oracle WebCenter Portal’s Pagelet Prodcuer | WC_Portlet | 8889 |
Oracle WebCenter Portal’s Discussion Server | WC_Collaboration | 8890 |
Oracle WebCenter Portal’s Activity Graph Engines | WC_Utilities | 8891 |
Oracle WebCenter Portal’s Analytics Collector | WC_Utilities | 8891 |
Custom Portal Managed Server | WC_CustomePortal | 8892 |
Custom Services Producer Managed Server | WC_CustomServicesProdcuer | 8793 |
零件 | 受管服务器 | 港口 |
---|---|---|
WebCenter门户 | WC_Spaces | 8888 |
Oracle WebCenter Portal的Portlet生产者 | WC_Portlet | 8889 |
Oracle WebCenter Portal的Pagelet产品 | WC_Portlet | 8889 |
Oracle WebCenter Portal的讨论服务器 | WC_协作 | 8890 |
Oracle WebCenter Portal的活动图引擎 | WC_Utilities | 8891 |
Oracle WebCenter Portal的Analytics Collector | WC_Utilities | 8891 |
自定义门户托管服务器 | WC_CustomePortal | 8892 |
定制服务生产者托管服务器 | WC_CustomServicesProdcuer | 8793 |
To leverage certain component(s), you should keep Its server up and running and that may affect the productivity of the developers as that will definitely consume a lot of resources on developer machine.
要利用某些组件,您应保持其服务器正常运行,这可能会影响开发人员的生产力,因为这肯定会消耗开发人员计算机上的大量资源。
This tutorial is the first one on this series which aimed to discuss the all Oracle Webcenter Portal features and that definitely should be applied through using of Oracle Webcenter JDeveloper & its Integrated Weblogic Server.
本教程是本系列的第一个教程,旨在讨论Oracle Webcenter Portal的所有功能,并且绝对应该通过使用Oracle Webcenter JDeveloper及其集成的Weblogic Server加以应用。
Oracle WebCenter provides a ready-made enterprise customizable and configurable application called WebCenter Portal that enables you to work and collaborate effectively.
Oracle WebCenter提供了一个现成的企业可定制和可配置的应用程序,称为WebCenter Portal,使您能够有效地工作和协作。
Accessing of that environment can be done through starting the WC_Spaces – Like you did previously and typing the URL https://host:port/webcenter
and then log on using domain administrator user like weblogic. In case you specified non default user as domain administrator, you should grant that user the sufficient roles
可以通过启动WC_Spaces来访问该环境–就像您之前所做的那样,并输入URL https://host:port/webcenter
,然后使用诸如weblogic之类的域管理员用户登录。 如果您将非默认用户指定为域管理员,则应授予该用户足够的角色
Both host ad port are referring for the system host and port that WC_Spaces is running on, by default the port number is 8888.
主机广告端口均引用WC_Spaces运行所在的系统主机和端口,默认端口号为8888。
If you were accessing that above URL, you will certainly be standing on the Oracle WebCenter Home Portal. Also, deploying your custom Portal Framework Application and accessing it after then from the same URL will be possible if you’re considering new context root and that was so clear in the Oracle WebCenter Installation tutorial.
如果要访问上面的URL,那么您肯定会站在Oracle WebCenter Home Portal上。 此外,如果您考虑使用新的上下文根,那么可以部署自定义的Portal Framework应用程序,然后再从同一URL访问它,这在Oracle WebCenter安装教程中非常清楚。
Actually, this is not only way that you may use for doing that; you may use JDeveloper Integrated Server as well. JDeveloper Integrated server is just a runtime service that references instance of WebLogic server that allows you to run, test, and debug WebCenter Portal Framework applications from within JDeveloper IDE.
实际上,这不仅是您这样做的方式; 您也可以使用JDeveloper Integrated Server。 JDeveloper集成服务器只是引用WebLogic Server实例的运行时服务,允许您从JDeveloper IDE内运行,测试和调试WebCenter Portal Framework应用程序。
As simple as that, instead of getting your node manager up and running as well as your WC_Spaces and may other servers – It depends on the features you’re using – with a huge consuming for memory and processor performance, single instance would be fair enough for that.
如此简单,而不是让您的节点管理器以及WC_Spaces以及其他服务器启动并运行(取决于您使用的功能),而这会大量消耗内存和处理器性能,单个实例就足够了为了那个原因。
Oracle JDeveloper 11.1.1.7.0 is only release that you may use Its integrated server to run Oracle Portal Framework Applications. We’re already clarified you how this can be installed in the Oracle WebCenter Installation Tutorial but that won’t be enough for you to get started your development tasks.
仅发布Oracle JDeveloper 11.1.1.7.0,您可以使用其集成服务器来运行Oracle Portal Framework应用程序。 我们已经为您阐明了如何在Oracle WebCenter安装教程中进行安装,但这还不足以开始您的开发任务。
Steps below would help you install, extend and configure JDeveloper Integrated Instance:
以下步骤将帮助您安装,扩展和配置JDeveloper集成实例:
A WebCenter Portal Framework Application is a standard ADF web application that includes Portal features, like navigation, pages, page templates, content, and more.
WebCenter Portal Framework应用程序是一个标准的ADF Web应用程序,其中包括门户功能,例如导航,页面,页面模板,内容等。
That is, Oracle Webcenter Portal Framework adds a number of Portal-Specific features to an ADF Application. You’ve created your own first Oracle Webcenter Portal Framework Application previously and you see how you can we use a JDeveloper for managing this.
也就是说,Oracle Webcenter Portal Framework向ADF应用程序中添加了许多特定于门户的功能。 您先前已经创建了自己的第一个Oracle Webcenter Portal Framework应用程序,并且看到了如何使用JDeveloper来管理它。
This time, you will go so far from just getting a well-running Oracle Webcenter Portal Framework Application to get more details about these features that are provided by this Framework.
这次,您将远远不止获得一个运行良好的Oracle Webcenter Portal Framework应用程序,而是获得有关此框架提供的这些功能的更多详细信息。
This feature allows the developers to formulate their pages into a tree structure manner, (i.e. Parent-Child relationship). This type of formulation allows convenient propagation and inheritance of security settings from pages to sub-pages as well as structural the overall Portal that you’re going to build.
此功能使开发人员可以将其页面制定为树状结构(即父子关系)。 这种类型的表达方式可以方便地从页面到子页面传播和继承安全设置,并构造要构建的整体Portal。
Basically, any Portal may consists of multiple pages, each page located there in may contain one or more entities like Task Flows, Portlets and content. It also may contain a navigational interface like navigation Tree, Tabs or bread crumbs.
基本上,任何门户网站都可以包含多个页面,位于其中的每个页面都可以包含一个或多个实体,例如任务流,Portlet和内容。 它还可能包含导航界面,例如导航树,选项卡或面包屑。
Page hierarchy concept is acting upon your Portal Framework Pages that are located within your Portal Application beneath Web Content folder like below:
页面层次结构概念作用于位于Web内容文件夹下的Portal应用程序内的Portal Framework页面,如下所示:
At this following simple practice, you will create a new Pages About, Help & Info. This newly page hierarchy created will form the navigation model and control the security policies Oracle Portal Framework Application uses to allow/deny users accessibility.
通过以下简单实践,您将创建一个新的关于,帮助和信息页面。 这个新创建的页面层次结构将形成导航模型,并控制Oracle Portal Framework应用程序用来允许/拒绝用户访问的安全策略。
Your context root can be controlled by providing custom deployment profile or you may use the default one created by JDeveloper. This will be explained later but at all cases, your deployment URL will be provided by the console of JDeveloper.
您可以通过提供自定义部署配置文件来控制上下文根,也可以使用JDeveloper创建的默认根配置文件。 稍后将对此进行解释,但是在所有情况下,您的部署URL将由JDeveloper的控制台提供。
about.jspx
about.jspx
<?xml version='1.0' encoding='UTF-8'?>
<jsp:root xmlns:jsp="https://java.sun.com/JSP/Page" version="2.1"
xmlns:f="https://java.sun.com/jsf/core"
xmlns:h="https://java.sun.com/jsf/html"
xmlns:af="https://xmlns.oracle.com/adf/faces/rich">
<jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
doctype-system="https://www.w3.org/TR/html4/loose.dtd"
doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
<jsp:directive.page contentType="text/html;charset=UTF-8"/>
<f:view>
<af:document id="d1" title="About">
<af:form id="f1">
<af:pageTemplate value="#{bindings.pageTemplateBinding.templateModel}"
id="pt1">
<f:facet name="content">
<h:outputText id="outText" value="JournalDev is a Technical Site"/>
</f:facet>
</af:pageTemplate>
</af:form>
</af:document>
</f:view>
</jsp:root>
Here’s detailed explanation for the code listed above and the complementary steps that you still need to build up your page every time you want that:
这是上面列出的代码的详细说明,以及每次需要时仍需要构建页面的补充步骤:
You may be able of adding the pages into that defined Page Hierarchy by dragging those pages created into Page Hierarchy’s panel but make sure your pages are defined under oracle/webcenter/portalapp.
通过将创建的页面拖动到“页面层次结构”的面板中,您可以将页面添加到已定义的“页面层次结构”中,但是请确保您的页面在oracle / webcenter / portalapp下定义。
The default page template includes navigation UI component which will reacting according for the security policies defined for every page links.
默认页面模板包括导航UI组件,它将根据为每个页面链接定义的安全策略做出React。
homePages.xml
<?xml version="1.0" encoding="windows-1252" ?>
<pagesDef xmlns="https://xmlns.oracle.com/webcenter/page"
xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://xmlns.oracle.com/webcenter/page/pagesDef.xsd"
parent="/oracle/webcenter/portalapp/pagehierarchy/pages.xml">
<pageDef contentMRef="/oracle/webcenter/portalapp/pages/info.jspx"
hidden="false" shared="false" hasSubPages="false" id="info"
overridePolicy="true"/>
</pagesDef>
对于您在页面层次结构中创建的每个新级别,都会创建一个pagehierarchy / pages / * pages文件。 星号是父页面的指示器(参考)。 这些创建的文件(homePages.xml)包含该级别页面的引用。 homePages.xml
But this is not the only facility that the page hierarchy provides, it also provides us so important feature relevant for security policy propagation and inheritance. That is, the parent page is propagated its security policies into its sub pages and the sub pages may consider this propagation or may not by overriding it.
但这不是页面层次结构提供的唯一功能,它还为我们提供了与安全策略传播和继承相关的如此重要的功能。 也就是说,父页面将其安全策略传播到其子页面中,并且子页面可能会考虑此传播,也可能不会通过覆盖它来进行传播。
Let’s examine that by providing the following security and see how can we apply that:
让我们通过提供以下安全性来进行检查,并了解如何应用它:
Let’s see how can we achieve that through figuring out the below screen shots:
让我们看看如何通过找出以下屏幕截图来实现这一目标:
Inheritance of security policies will enforce all sub pages to consider the propagated policies that the parent defines. In contrast, security policies delegation will allow the sub pages to override the parent’s security and the defined polices will be propagated to all child pages that are inheriting security of that sub page.
安全策略的继承将强制所有子页面考虑父级定义的传播策略。 相反,安全策略委派将允许子页面重写父级的安全性,并且定义的策略将传播到继承该子页面安全性的所有子页面。
Oracle Webcenter Portal Framework Application is an ADF Web Application with Portal-Features. One of these features is Page Hierarchy which is used for covering the overall structure of your Portal in addition to apply proper security policies either by propagation or by delegation. This series will complete discussing the all features of Oracle Webcenter Portal, so contribute us by commenting below and bear with us for next coming ones.
Oracle Webcenter Portal Framework应用程序是具有门户功能的ADF Web应用程序。 这些功能之一是页面层次结构,该层次结构用于覆盖门户的整体结构,此外还可以通过传播或委派来应用适当的安全策略。 本系列将完成对Oracle Webcenter Portal的所有功能的讨论,因此,请在下面的评论中为我们做出贡献,并为下一个新功能提供帮助。