optimized code
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/news-feed@100613 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
c0514941fc
commit
d9190b42ad
|
@ -226,8 +226,8 @@ public class NewsServiceImpl extends RemoteServiceServlet implements NewsService
|
||||||
*/
|
*/
|
||||||
if (isInfrastructureScope()) {
|
if (isInfrastructureScope()) {
|
||||||
//VRE Feeds
|
//VRE Feeds
|
||||||
for (Organization org : currUser.getOrganizations()) {
|
|
||||||
GroupManager gm = new LiferayGroupManager();
|
GroupManager gm = new LiferayGroupManager();
|
||||||
|
for (Organization org : currUser.getOrganizations()) {
|
||||||
if (gm.isVRE(org.getOrganizationId()+"")) {
|
if (gm.isVRE(org.getOrganizationId()+"")) {
|
||||||
String vreid = gm.getScope(""+org.getOrganizationId()); //get the scope
|
String vreid = gm.getScope(""+org.getOrganizationId()); //get the scope
|
||||||
_log.trace("Reading feeds for VRE: " + vreid);
|
_log.trace("Reading feeds for VRE: " + vreid);
|
||||||
|
|
Loading…
Reference in New Issue