Author: chris.laprun(a)jboss.com
Date: 2011-08-09 04:35:44 -0400 (Tue, 09 Aug 2011)
New Revision: 7022
Modified:
portal/branches/api/component/api-impl/src/main/java/org/gatein/portal/api/impl/GateInImpl.java
Log:
- Confirmed that it's not possible to resolve a Navigation directly at the moment.
Modified:
portal/branches/api/component/api-impl/src/main/java/org/gatein/portal/api/impl/GateInImpl.java
===================================================================
---
portal/branches/api/component/api-impl/src/main/java/org/gatein/portal/api/impl/GateInImpl.java 2011-08-09
08:26:29 UTC (rev 7021)
+++
portal/branches/api/component/api-impl/src/main/java/org/gatein/portal/api/impl/GateInImpl.java 2011-08-09
08:35:44 UTC (rev 7022)
@@ -547,11 +547,13 @@
final String siteStringId = id.getComponent(NAVIGATION_SITE_COMPONENT);
final Id<Site> siteId = SITE_CONTEXT.parse(siteStringId, Site.class);
final Site site = getSite(siteId, null);
- result = site.getNavigation().get(id.getComponent(NAVIGATION_COMPONENT));
//todo: this probably doesn't work correctly
+ //todo: need to get all the parents of a Navigation to be able to load it so we
would need to add the complete path to the Id to be able to resolve Navigations properly
+ result = site.getNavigation().get(id.getComponent(NAVIGATION_COMPONENT));
+
+ throw new UnsupportedOperationException("Id<" +
type.getSimpleName() + "> not yet supported");
}
else
{
- // todo: finish support of other types
throw new UnsupportedOperationException("Id<" +
type.getSimpleName() + "> not yet supported");
}