Package net.sf.archimede.model.collection

Examples of net.sf.archimede.model.collection.Collection


    }
   
    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


       
        return "exploration_collection_description";
    }
   
    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

            Group group = new GroupImpl();
            group.setName(this.newName);
            group.setDescription(this.newDescription);
           
            CollectionBean collectionBean = (CollectionBean) FacesContext.getCurrentInstance().getApplication().createValueBinding(CollectionBean.BEAN_REF).getValue(FacesContext.getCurrentInstance());    
            Collection parentCollection = collectionBean.getSelectedCollection();
           
            group.setParent(parentCollection);
           
            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

            // TODO Auto-generated catch block
            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

        } catch (ObjectExistsException e) {
            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

    public void setSelectedCollection(ViewCollection selectedCollection1) {
        this.selectedCollection = selectedCollection1;
    }
   
    public String retrieveBaseCollections() {
        Collection rootCollection = CollectionDao.createInstance().getRootCollection();
        if (rootCollection != null) {
            this.selectedCollection = new ViewCollection(rootCollection);
            List baseCollections = this.selectedCollection.getCollections();
            List baseViewCollections = new ArrayList(baseCollections.size());
            for (Iterator it = baseCollections.iterator(); it.hasNext(); ) {
View Full Code Here

    public String seeCollectionsFromList() {
        this.selectedCollection = (ViewCollection) this.collections.getRowData();
       
        //Get a fresh copy
        String selectCollectionId = this.selectedCollection.getId();
        Collection collection = CollectionDao.createInstance().retrieve(selectCollectionId);
       
        List collectionCollections = collection.getCollections();
        List collectionViewCollections = new ArrayList(collectionCollections.size());
        for (Iterator it = collectionCollections.iterator(); it.hasNext(); ) {
            collectionViewCollections.add(new ViewCollection((Collection) it.next()));
        }
        this.collections = new ListDataModel();
View Full Code Here

    }
   
    public String seeCollectionsFromCollection() {
        //Get a fresh copy
        String selectCollectionId = this.selectedCollection.getId();
        Collection collection = CollectionDao.createInstance().retrieve(selectCollectionId);
       
        List collectionCollections = collection.getCollections();
        List collectionViewCollections = new ArrayList(collectionCollections.size());
        for (Iterator it = collectionCollections.iterator(); it.hasNext(); ) {
            collectionViewCollections.add(new ViewCollection((Collection) it.next()));
        }
        this.collections = new ListDataModel();
View Full Code Here

    public String seeFoldersFromList() {
        this.selectedCollection = (ViewCollection) this.collections.getRowData();
       
        //Get a fresh copy
        String selectCollectionId = this.selectedCollection.getId();
        Collection collection = CollectionDao.createInstance().retrieve(selectCollectionId);
       
        List collectionFolders = collection.getFolders();
        List collectionViewFolders = new ArrayList(collectionFolders.size());
        for (Iterator it = collectionFolders.iterator(); it.hasNext(); ) {
            collectionViewFolders.add(new ViewFolder((Folder) it.next()));
        }
       
View Full Code Here

    }
   
    public String seeFoldersFromCollection() {
        //Get a fresh copy
        String selectCollectionId = this.selectedCollection.getId();
        Collection collection = CollectionDao.createInstance().retrieve(selectCollectionId);
       
        List collectionFolders = collection.getFolders();
        List collectionViewFolders = new ArrayList(collectionFolders.size());
        for (Iterator it = collectionFolders.iterator(); it.hasNext(); ) {
            collectionViewFolders.add(new ViewFolder((Folder) it.next()));
        }
       
View Full Code Here

TOP

Related Classes of net.sf.archimede.model.collection.Collection

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.