Package net.sf.archimede.jsf.view

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


    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

    }
   
    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

   
    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

            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

            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

            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

    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

    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

        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

Related Classes of net.sf.archimede.jsf.view.ViewCollection

Copyright © 2018 www.massapicom. 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.