[JBoss JIRA] (GTNPORTAL-2707) Call getAllPortalNames() from UIUserToolbarSitePortlet only once
by Marek Posolda (JIRA)
Marek Posolda created GTNPORTAL-2707:
----------------------------------------
Summary: Call getAllPortalNames() from UIUserToolbarSitePortlet only once
Key: GTNPORTAL-2707
URL: https://issues.jboss.org/browse/GTNPORTAL-2707
Project: GateIn Portal
Issue Type: Enhancement
Security Level: Public (Everyone can see)
Components: Performance, WebUI
Affects Versions: 3.5.0.Beta01
Reporter: Marek Posolda
Assignee: Marek Posolda
Fix For: 3.5.0.Beta02
Actually method getAllPortalNames() is called like 4 times (actually 2*countOfPortals times) during rendering of UIUserToolbarSitePortlet. See code in UIUserToolbarSitePortlet.gtmpl:
{code}
for(int i = 0; i < uicomponent.getAllPortalNames().size(); i++) {
String portalName = uicomponent.getAllPortalNames().get(i);
...
}
{code}
Actually this could mean problems like:
- Performance - There is overhead as method is unnecessarily called 4 (or more) times. Actually the overhead shouldn't be too big as portal names thanks to PortalNamesCache class, but still it is.
- Consistency - For example if another client removes portal concurrently in the meantime, we can potentially see consistency issues and problems like ArrayIndexOutOfBoundException could happen
It should be improved to call getAllPortalNames only once:
{code}
List<String> allPortalNames = uicomponent.getAllPortalNames();
for(int i = 0; i < allPortalNames.size(); i++) {
String portalName = allPortalNames.get(i);
..
}
{code}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 2 months
[JBoss JIRA] (GTNPORTAL-2705) Use JCR db-structure-type isolated mode by default
by Boleslaw Dawidowicz (JIRA)
Boleslaw Dawidowicz created GTNPORTAL-2705:
----------------------------------------------
Summary: Use JCR db-structure-type isolated mode by default
Key: GTNPORTAL-2705
URL: https://issues.jboss.org/browse/GTNPORTAL-2705
Project: GateIn Portal
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Affects Versions: 3.5.0.Beta01
Reporter: Boleslaw Dawidowicz
Fix For: 3.5.0.Beta02
JCR enables to store workspaces in separated tables. To enable such behaviour by default configuration entry
<property name="multi-db" value="false"/>
needs to be replaced with
<property name="db-structure-type" value="isolated" />
To make it properly configurable it should use new config property like ${gatein.jcr.db-structure-type}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 2 months
[JBoss JIRA] (GTNPORTAL-2704) Upgrade JCR to 1.15.0-CR1
by Boleslaw Dawidowicz (JIRA)
Boleslaw Dawidowicz created GTNPORTAL-2704:
----------------------------------------------
Summary: Upgrade JCR to 1.15.0-CR1
Key: GTNPORTAL-2704
URL: https://issues.jboss.org/browse/GTNPORTAL-2704
Project: GateIn Portal
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Affects Versions: 3.5.0.Beta01
Reporter: Boleslaw Dawidowicz
Fix For: 3.5.0.Beta02
... and chromattic to 1.2.0-beta1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
12 years, 2 months