Package net.sf.archimede.model

Examples of net.sf.archimede.model.ObjectLockedException


           
            session.save();
            //SecurityDatabaseUtil.commitTransaction();
                       
        } catch (LockException e) {
      throw new ObjectLockedException(collection);
    } catch (ItemExistsException e) {
      throw new ObjectExistsException(collection);
    } catch (RepositoryException e) {
      throw new RuntimeException(e);
    }
View Full Code Here


            Node node  = session.getNodeByUUID(retrievedCopy.getId());
            node.remove();
            log.info("Collection : " + collection.getName() + "[" + collection.getId() + "] has been marked for removal.");
            session.save();           
        } catch (LockException e) {
      throw new ObjectLockedException(collection);
    } catch (ItemExistsException e) {
      throw new ObjectExistsException(collection);
    } catch (RepositoryException e) {
      throw new RuntimeException(e);
    }
View Full Code Here

            session.save();
        } catch (PathNotFoundException e) {
            throw new RuntimeException(e);
        } catch (LockException e) {
            throw new ObjectLockedException(collection);
        } catch (ItemExistsException e) {
            throw new ObjectExistsException(collection);
        } catch (RepositoryException e) {
            throw new RuntimeException(e);
        }
View Full Code Here

            throw new RuntimeException(e);
        } catch (LockException e) {
            Set lockedCollections = new HashSet();
            lockedCollections.add(cutCollection);
            lockedCollections.add(destinationCollection);
            throw new ObjectLockedException(lockedCollections);
        } catch (RepositoryException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

        } catch (ItemExistsException e) {
            throw new RuntimeException(e);
        } catch (PathNotFoundException e) {
            throw new RuntimeException(e);
        } catch (LockException e) {
            throw new ObjectLockedException(destinationCollection);
        } catch (RepositoryException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

           
            //TODO...
            //log.info("Folder : " + folder.getName() + "[" + folder.getId() + "] has been marked for removal.");
                       
        } catch (LockException e) {
            throw new ObjectLockedException(metadata);
        } catch (ItemExistsException e) {
            throw new ObjectExistsException(metadata);
        } catch (RepositoryException e) {
            throw new RuntimeException(e);
        }
View Full Code Here

           
            //TODO...
            //log.info("Folder : " + folder.getName() + "[" + folder.getId() + "] has been marked for removal.");
                       
        } catch (LockException e) {
            throw new ObjectLockedException(metadata);
        } catch (ItemExistsException e) {
            throw new ObjectExistsException(metadata);
        } catch (RepositoryException e) {
            throw new RuntimeException(e);
        }
View Full Code Here

            Node node  = session.getNodeByUUID(retrievedCopy.getId());
            node.remove();
            session.save();
                     
        } catch (LockException e) {
            throw new ObjectLockedException(group);
        } catch (ItemExistsException e) {
            throw new ObjectExistsException(group);
        } catch (RepositoryException e) {
            throw new RuntimeException(e);
        }
View Full Code Here

            ContentDao contentDao = ContentDao.createInstance();
            contentDao.writeToNode(group, groupNode);
           
            session.save();         
        } catch (LockException e) {
            throw new ObjectLockedException(group);
        } catch (ItemExistsException e) {
            throw new ObjectExistsException(group);
        } catch (RepositoryException e) {
            throw new RuntimeException(e);
        }
View Full Code Here

            Node node = session.getNodeByUUID(retrievedCopy.getId());
            node.remove();
            session.save();
                                   
        } catch (LockException e) {
            throw new ObjectLockedException(storedFile);
        } catch (ItemExistsException e) {
            throw new ObjectExistsException(storedFile);
        } catch (RepositoryException e) {
            throw new RuntimeException(e);
        }
View Full Code Here

TOP

Related Classes of net.sf.archimede.model.ObjectLockedException

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.