<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="Generator" content="Microsoft Word 15 (filtered medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]--><style><!--
/* Font Definitions */
@font-face
{font-family:Helvetica;
panose-1:2 11 6 4 2 2 2 2 2 4;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
h6
{mso-style-priority:9;
mso-style-link:"Überschrift 6 Zchn";
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:7.5pt;
font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Vorformatiert Zchn";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.msonormal0, li.msonormal0, div.msonormal0
{mso-style-name:msonormal;
mso-margin-top-alt:auto;
margin-right:0cm;
mso-margin-bottom-alt:auto;
margin-left:0cm;
font-size:12.0pt;
font-family:"Times New Roman",serif;}
span.berschrift6Zchn
{mso-style-name:"Überschrift 6 Zchn";
mso-style-priority:9;
mso-style-link:"Überschrift 6";
font-family:"Cambria",serif;
color:#243F60;}
span.apple-converted-space
{mso-style-name:apple-converted-space;}
span.E-MailFormatvorlage20
{mso-style-type:personal;
font-family:"Arial",sans-serif;
color:#1F497D;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
span.HTMLVorformatiertZchn
{mso-style-name:"HTML Vorformatiert Zchn";
mso-style-priority:99;
mso-style-link:"HTML Vorformatiert";
font-family:"Courier New";}
span.E-MailFormatvorlage23
{mso-style-type:personal-compose;
font-family:"Arial",sans-serif;
color:black;
font-weight:normal;
font-style:normal;
text-decoration:none none;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="DE" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Hey Alex,
<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US">at the needed time I only have DetailPage-resource itself, we use that to read the “Title” from the linked resource and
have to know if the linked resource is a DetailPage-resource so we have to read the xmlcontent or an detailpage (or other) so we only need to read the Title-Property.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB">>> </span><a href="http://documentation.opencms.org/javadoc/core/org/opencms/jsp/util/CmsJspStandardContextBean.html#isDetailPageAvailable()"><span lang="EN-GB">http://documentation.opencms.org/javadoc/core/org/opencms/jsp/util/CmsJspStandardContextBean.html#isDetailPageAvailable()</span></a><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US">So I am not sure to have all the information the method need.<o:p></o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US">And currently (OpenCms 9.0.1) I use org.opencms.ade.detailpage.CmsSitemapDetailPageFinder#getAllDetailPages.<o:p></o:p></span></p>
<pre style="background:white"><span lang="EN-GB" style="font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US">But there seems no real cache and a lot of </span><b><span lang="EN-GB" style="color:navy">synchronized </span></b><span lang="EN-GB" style="font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Methods that crashed your JVM.<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-GB" style="font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></pre>
<pre style="background:white"><span lang="EN-GB" style="font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></pre>
<pre style="background:white"><span lang="EN-GB" style="font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US">In OpenCms 10.5. the methods seems better. <o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-GB" style="font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US">But while org.opencms.ade.configuration.CmsADEManager#isDetailPage has a nice cache => <o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-GB" style="font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US">org.opencms.ade.configuration.CmsConfigurationCache#isDetailPage (https://github.com/alkacon/opencms-core/blob/branch_10_5_x/src/org/opencms/ade/configuration/CmsConfigurationCache.java#LC268)<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-GB" style="font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US">the method org.opencms.ade.configuration.CmsADEManager#getDetailPages still do a lot of work => org.opencms.ade.configuration.CmsADEConfigCacheState#getDetailPages (https://github.com/alkacon/opencms-core/blob/branch_10_5_x/src/org/opencms/ade/configuration/CmsADEConfigCacheState.java#LC331) – but maybe I misunderstood the cache-magic?<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-GB" style="font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></pre>
<pre style="background:white"><span lang="EN-GB" style="font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US">Regards, Patric<o:p></o:p></span></pre>
<pre style="background:white"><span lang="EN-GB" style="font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></pre>
<pre style="background:white"><span lang="EN-GB" style="font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></pre>
<pre style="background:white"><span lang="EN-GB" style="color:black"><o:p> </o:p></span></pre>
<pre style="background:white"><span lang="EN-GB" style="color:black"><o:p> </o:p></span></pre>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif;color:#1F497D;mso-fareast-language:EN-US"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif">Von:</span></b><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"> opencms-dev-bounces@opencms.org [mailto:opencms-dev-bounces@opencms.org]
<b>Im Auftrag von </b>Alex Kandzior<br>
<b>Gesendet:</b> Dienstag, 24. Januar 2017 20:04<br>
<b>An:</b> The OpenCms mailing list <opencms-dev@opencms.org><br>
<b>Betreff:</b> Re: [opencms-dev] Detail-Page resource<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Maybe one of these methods can help:<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal"><a href="http://documentation.opencms.org/javadoc/core/org/opencms/jsp/util/CmsJspStandardContextBean.html#isDetailPageAvailable()">http://documentation.opencms.org/javadoc/core/org/opencms/jsp/util/CmsJspStandardContextBean.html#isDetailPageAvailable()</a><o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span style="color:black">Kind regards,<br>
Alex.<br>
<br>
-------------------<br>
Alexander Kandzior<br>
<br>
Alkacon Software - The OpenCms Experts <br>
<a href="http://www.alkacon.com">http://www.alkacon.com</a> - <a href="http://www.opencms.org">
http://www.opencms.org</a> <br>
<br>
<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<p class="MsoNormal">Am 24.01.2017 um 17:26 schrieb Patric Dosch <<a href="mailto:patric.dosch@virtual-identity.com">patric.dosch@virtual-identity.com</a>>:<o:p></o:p></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif">Hey list,</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:"Arial",sans-serif"> </span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif">is there an easy way to know, it a given resource is a DetailPage-resource, e.g. an event?</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif">And I don’t mean org.opencms.ade.configuration.CmsADEManager#isDetailPage, that is the event-overview.</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif">I’m looking for the event itself ;)</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif"> </span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-GB" style="font-size:10.0pt;font-family:"Arial",sans-serif">Regards, Patric</span><span style="font-size:11.0pt;font-family:"Calibri",sans-serif"><o:p></o:p></span></p>
</div>
<h6 style="margin-bottom:12.0pt;font-variant-caps: normal;orphans: auto;text-align:start;widows: auto;-webkit-text-stroke-width: 0px;word-spacing:0px">
<span style="font-family:"Arial",sans-serif;color:gray">Patric Dosch<br>
Senior Developer<br>
<br>
Virtual Identity<span class="apple-converted-space"> </span>AG<br>
Grünwälderstraße 10-14<br>
79098 Freiburg<br>
<br>
t +49 761 20758-442<br>
f +49 761 20758-01<br>
<br>
<br>
<a href="mailto:patric.dosch@virtual-identity.com"><span style="color:purple">patric.dosch@virtual-identity.com</span></a><br>
<a href="http://www.virtual-identity.com/"><span style="color:purple">http://www.virtual-identity.com</span></a><br>
<br>
Freiburg | München | Wien<br>
<br>
<br>
<br>
<o:p></o:p></span></h6>
<h6 align="center" style="text-align:center"><span style="font-family:"Arial",sans-serif;color:gray">
<hr size="2" width="100%" align="center">
</span></h6>
<h6><span style="font-family:"Arial",sans-serif;color:gray"><br>
Virtual Identity AG<br>
Grünwälderstraße 10-14<br>
79098 Freiburg<br>
Amtsgericht Freiburg, HRB 6218<br>
Vorstand: Ralf Heller<br>
Vorsitzende des Aufsichtsrates: Kirsten Heller<br>
Umsatzsteuer-ID: DE208002218<span class="apple-converted-space"> </span></span><span style="font-family:"Helvetica",sans-serif"><o:p></o:p></span></h6>
<p class="MsoNormal"><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif">_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
</span><a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev"><span style="font-size:9.0pt;font-family:"Helvetica",sans-serif;color:purple">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</span></a><o:p></o:p></p>
</div>
</blockquote>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>