added scope on the Generic Resource for portal Layout

git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/vre-management/VREModeler@9938 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
Lucio Lelii 2009-02-20 19:52:24 +00:00
parent f7ededc5c1
commit d819772daf
1 changed files with 2 additions and 1 deletions

View File

@ -33,7 +33,8 @@ public class GenericResourcePortlet {
resource.setDescription("List of selectable Portlet for the VRE "+vreName);
resource.setName("AvailablePortlets");
resource.setSecondaryType("PortletLayoutResource");
resource.addScope(GCUBEScope.getScope(ServiceContext.getContext().getScope()+"/"+vreName));
ISPublisher publisher = GHNContext.getImplementation(ISPublisher.class);
publisher.registerGCUBEResource(resource,GCUBEScope.getScope(ServiceContext.getContext().getScope()+"/"+vreName) , ServiceContext.getContext());
}