Examples of ViewCollection


Examples of net.sf.archimede.jsf.view.ViewCollection

    }
   
    public String seeParentCollectionFromFolder() {
        Collection collection = (Collection) this.selectedFolder.getParentCollectionsModel().getRowData();  
        CollectionBean collectionBean = (CollectionBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(CollectionBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());
        collectionBean.setSelectedCollection(new ViewCollection(collection));
       
        return "exploration_collection_description";
    }
View Full Code Here

Examples of net.sf.archimede.jsf.view.ViewCollection

    public String seeParentCollectionFromList() {
        //Is is not considered selected
        ViewFolder selectedFolderFromList = (ViewFolder) this.folders.getRowData();
        Collection collection = (Collection) selectedFolderFromList.getParentCollectionsModel().getRowData();
        CollectionBean collectionBean = (CollectionBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(CollectionBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());
        collectionBean.setSelectedCollection(new ViewCollection(collection));
       
        return "exploration_collection_description";
    }
View Full Code Here

Examples of net.sf.archimede.jsf.view.ViewCollection

    }
   
    public String seeCollectionFromFolder() {
        Collection collection = this.selectedFolder.getParentCollection();  
        CollectionBean collectionBean = (CollectionBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(CollectionBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());
        collectionBean.setSelectedCollection(new ViewCollection(collection));
       
        return "exploration_collection_description";
    }
View Full Code Here

Examples of net.sf.archimede.jsf.view.ViewCollection

   
    public String seeCollectionFromList() {
        //Is is not considered selected
        ViewFolder selectedFolderFromList = (ViewFolder) this.folders.getRowData();
        CollectionBean collectionBean = (CollectionBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(CollectionBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());
        collectionBean.setSelectedCollection(new ViewCollection(selectedFolderFromList.getParentCollection()));
       
        return "exploration_collection_description";
    }
View Full Code Here

Examples of net.sf.archimede.jsf.view.ViewCollection

            GroupDao.createInstance().save(group);
           
            this.newName = null;
            this.newDescription = null;
           
            ViewCollection viewCollection = new ViewCollection(CollectionDao.createInstance().retrieve(parentCollection.getId()));
            collectionBean.setSelectedCollection(viewCollection);
            this.collectionGroups = viewCollection.getGroupsModel();
        }
       
        return "";
    }
View Full Code Here

Examples of net.sf.archimede.jsf.view.ViewCollection

            e.printStackTrace();
        }
       
        CollectionBean collectionBean = (CollectionBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(CollectionBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());    
        Collection parentCollection = collectionBean.getSelectedCollection();
        ViewCollection viewCollection = new ViewCollection(CollectionDao.createInstance().retrieve(parentCollection.getId()));
        collectionBean.setSelectedCollection(viewCollection);
        this.collectionGroups = viewCollection.getGroupsModel();
       
        return "";
    }
View Full Code Here

Examples of net.sf.archimede.jsf.view.ViewCollection

            e.printStackTrace();
        }
       
        CollectionBean collectionBean = (CollectionBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(CollectionBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());    
        Collection parentCollection = collectionBean.getSelectedCollection();
        ViewCollection viewCollection = new ViewCollection(CollectionDao.createInstance().retrieve(parentCollection.getId()));
        collectionBean.setSelectedCollection(viewCollection);
        this.collectionGroups = viewCollection.getGroupsModel();
       
        return "";
    }
View Full Code Here

Examples of net.sf.archimede.jsf.view.ViewCollection

    String rootName = collection.getName();
    CustomTreeNode treeData = new CustomTreeNode("root", rootName, false);

    List commnunities = collection.getCollections();
    for (Iterator it = commnunities.iterator(); it.hasNext();) {
      ViewCollection currentCommunity = new ViewCollection(
          (Collection) it.next());
      CustomTreeNode tnb = new CustomTreeNode("community",
          currentCommunity.getName(), false);
      tnb.setContent(currentCommunity);
      tnb.setIdentifier(currentCommunity.getId());
      tnb.setParent(treeData);
      treeData.getChildren().add(tnb);
      int foldersCount = this.addCommunity(tnb, currentCommunity);
      currentCommunity.setFoldersCount(foldersCount);
    }

    List folders = collection.getFolders();
    for (Iterator it = folders.iterator(); it.hasNext();) {
      Folder currentFolder = (Folder) it.next();
View Full Code Here

Examples of net.sf.archimede.jsf.view.ViewCollection

    if (collections.size() != 0) {
      communityNode.setLeaf(false);
    }

    for (Iterator collIt = collections.iterator(); collIt.hasNext();) {
      ViewCollection currentCollection = new ViewCollection(
          (Collection) collIt.next());
      CustomTreeNode tnb = new CustomTreeNode("collection",
          currentCollection.getName(), false);
      tnb.setContent(currentCollection);
      tnb.setIdentifier(currentCollection.getId());
      tnb.setParent(communityNode);
      communityNode.getChildren().add(tnb);
      int currentFoldersCount = this
          .addCommunity(tnb, currentCollection);
      currentCollection.setFoldersCount(currentFoldersCount);
      foldersCount += currentFoldersCount;
    }

    List folders = collection.getFolders();
    if (folders.size() != 0) {
View Full Code Here

Examples of net.sf.archimede.jsf.view.ViewCollection

        String username = visitBean.getCredentials().getUsername();
        User user = UserDao.createInstance().retrieve(username);
        List ownerCollections = CollectionDao.createInstance().ownerList(user);
        List ownerViewCollections = new ArrayList(ownerCollections.size());
        for (Iterator it = ownerCollections.iterator(); it.hasNext(); ) {
            ownerViewCollections.add(new ViewCollection((Collection) it.next()));
        }
        this.collections = new ListDataModel();
        this.collections.setWrappedData(ownerViewCollections);
       
        return "workspace_collection_owner";
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.