Package net.sf.archimede.model.collection

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


        }
    }
   
    public void restoreVersion(Folder folder) {
      try {
            Collection parentCollection = folder.getParentCollection();
            if (parentCollection == null) {
                throw new IllegalArgumentException("Parent collection cannot be null");
            } else if (parentCollection.getId() == null) {
                throw new IllegalArgumentException("Parent collection needs to be saved first");
            }
           
            Session session = (Session) DatabaseUtil.getSingleton().getDaoSession();           
            Node versionNode = session.getNodeByUUID(folder.getId());
View Full Code Here


        }
    }
   
    public void removeVersion(Folder folder) {
      try {           
            Collection parentCollection = folder.getParentCollection();
            if (parentCollection == null) {
                throw new IllegalArgumentException("Parent collection cannot be null");
            } else if (parentCollection.getId() == null) {
                throw new IllegalArgumentException("Parent collection needs to be saved first");
            }
           
            Session session = (Session) DatabaseUtil.getSingleton().getDaoSession();           
            Node versionNode = session.getNodeByUUID(folder.getId());
View Full Code Here

                    return folder.getParentVersion();
                   
                } else if (method.getName().equals("getParentCollection") && !this.isParentCollectionInit) {
                  
                    Node parentCollectionNode = session.getNodeByUUID(folder.getId()).getParent().getParent();
                    Collection parentCollection = CollectionDao.createInstance().retrieve(parentCollectionNode.getUUID());
                    folder.setParentCollection(parentCollection);
                           
                    this.isParentCollectionInit = true;
                    return folder.getParentCollection();
                   
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.