Author: chris.laprun(a)jboss.com
Date: 2011-08-09 04:26:29 -0400 (Tue, 09 Aug 2011)
New Revision: 7021
Modified:
portal/branches/api/component/api-impl/src/main/java/org/gatein/portal/api/impl/GateInImpl.java
Log:
- Added dumb gadgetID(URI) implementation.
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:23:32 UTC (rev 7020)
+++
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)
@@ -635,7 +635,7 @@
public Id<Gadget> gadgetId(URI uri)
{
- return null; //To change body of implemented methods use File | Settings | File
Templates.
+ return GADGET_CONTEXT.create(Gadget.class, uri.toString());
}
public <T extends Content> Id<ManagedContent>
managedContentId(Id<Category> categoryId, String name, Id<T> contentId)