#1244 VREs sorted in alphabetical Order, VRE Name too long cut also List View
git-svn-id: http://svn.research-infrastructures.eu/public/d4science/gcube/trunk/portlets/user/my-vres@68882 82a268e6-3cf1-43bd-a215-b396298e98cf
This commit is contained in:
parent
4c25776deb
commit
a95c40d3f4
|
@ -107,6 +107,7 @@ public class VresPanel extends Composite {
|
|||
BulletList voList = new BulletList();
|
||||
voList.setStyleName("list");
|
||||
boolean showVOs = false;
|
||||
|
||||
for (VO vo: cachedVOs) {
|
||||
if (! vo.isRoot() && vo.getUserBelonging() == UserBelonging.BELONGING) {
|
||||
voList.add(addVo(vo));
|
||||
|
@ -123,12 +124,21 @@ public class VresPanel extends Composite {
|
|||
BulletList vreList = new BulletList();
|
||||
vreList.setStyleName("list");
|
||||
boolean showVREs = false;
|
||||
|
||||
ArrayList<VRE> sortedVREs = new ArrayList<VRE>();
|
||||
for (VO vo: cachedVOs) {
|
||||
for (VRE vre : vo.getVres()) {
|
||||
vreList.add(addVRE(vre));
|
||||
showVREs = true;
|
||||
sortedVREs.add(vre);
|
||||
hasVres = true;
|
||||
}
|
||||
}
|
||||
|
||||
Collections.sort(sortedVREs);
|
||||
for (VRE vre : sortedVREs) {
|
||||
vreList.add(addVRE(vre));
|
||||
showVREs = true;
|
||||
}
|
||||
|
||||
if (showVREs) {
|
||||
mainPanel.add(vreTitle);
|
||||
mainPanel.add(vreList);
|
||||
|
|
|
@ -290,7 +290,7 @@ public class MyVREsServiceImpl extends RemoteServiceServlet implements MyVREsSer
|
|||
emVO.setDescription("EM and AEM Virtual Organisation The FARM Virtual Organisation is the dynamic group of individuals and/or institutions defined around a set of sharing rules in which resource providers and consumers specify clearly and carefully just what is shared, who is allowed to share, and the conditions under which sharing occurs to serve the needs of the Fisheries and Aquaculture Resources Management.");
|
||||
emVO.setImageURL("http://portal.d4science.research-infrastructures.eu/vologin/html/RedGrid.jpg");
|
||||
|
||||
emVO.setUserBelonging(UserBelonging.NOT_BELONGING);
|
||||
emVO.setUserBelonging(UserBelonging.BELONGING);
|
||||
//
|
||||
//
|
||||
VRE cool_EM_VRE = new VRE();
|
||||
|
@ -344,6 +344,8 @@ public class MyVREsServiceImpl extends RemoteServiceServlet implements MyVREsSer
|
|||
emVO.addVRE(demo);
|
||||
emVO.addVRE(vreGCM);
|
||||
|
||||
emVO.setUserBelonging(UserBelonging.BELONGING);
|
||||
|
||||
ArrayList<VO> toReturn = new ArrayList<VO>();
|
||||
toReturn.add(rootVO);
|
||||
toReturn.add(emVO);
|
||||
|
|
Loading…
Reference in New Issue