Package net.sf.archimede.model.content

Examples of net.sf.archimede.model.content.ContentDao$PermissionsLazyInvocationHandler


    public void update(StoredFile storedFile) throws ObjectLockedException, ObjectExistsException {
        //FIXME Also for Collection and Folder : checkout ???
        try {            
            Session session = (Session) DatabaseUtil.getSingleton().getDaoSession();
           
            ContentDao contentDao = ContentDao.createInstance();
            contentDao.touchProperties(storedFile);
           
            Node storedFileNode  = (Node) session.getNodeByUUID(storedFile.getId());
            for (PropertyIterator pi = storedFileNode.getProperties(); pi.hasNext(); ) {
                Property property = pi.nextProperty();
                //Do no remove JCR properties and the mandatory restrict children property.
View Full Code Here


                retrievedFolder.setCheckinDate(checkinDate);
            }
           
            retrievedFolder.setCheckedOut(checkout);

            ContentDao contentDao = ContentDao.createInstance();
            contentDao.populateFromRepository(retrievedFolder, node.getSession());
           
            if (checkout && !version) {
                   node.checkout();
            }
           
View Full Code Here

        if (folder.getDatestamp() == null) {
          folder.setDatestamp(new GregorianCalendar());
        }
        folderNode.setProperty(NodesTypes.PREFIX + DATESTAMP_PROPERTY_NAME, folder.getDatestamp());
       
        ContentDao contentDao = ContentDao.createInstance();
        contentDao.writeToNode(folder, folderNode);
    }
View Full Code Here

     */
    public void update(Folder folder) throws ObjectLockedException, ObjectExistsException {
        try {            
            Session session = (Session) DatabaseUtil.getSingleton().getDaoSession();
           
            ContentDao contentDao = ContentDao.createInstance();
            contentDao.touchProperties(folder);
           
            Node folderNode  = session.getNodeByUUID(folder.getId());
            log.info("Folder : " + folder.getName() + "[" + folder.getId() + "] has been marked for modification.");
           
            for (PropertyIterator pi = folderNode.getProperties(); pi.hasNext(); ) {
View Full Code Here

TOP

Related Classes of net.sf.archimede.model.content.ContentDao$PermissionsLazyInvocationHandler

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.