Package net.sf.archimede.model

Examples of net.sf.archimede.model.ObjectExistsException


            folderDao.save(folder);
           
            addFiles(folder);
            addMetadata(folder);
        } else {
            throw new ObjectExistsException(folder);
        }

        this.exists = Boolean.valueOf(true);
       
        return false;
View Full Code Here


            //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

            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

        } 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

            //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

            //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

            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

           
            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

                Session session = (Session) trSession;
               
                Node usersNode = session.getRootNode().getNode(ROOT_USERS_NODE);
               
                if (usersNode.hasNode(user.getUsername())) {
                    throw new ObjectExistsException("Username : " + user.getUsername() + " is already saved.");
                }
                Node userNode = session.getRootNode().getNode(ROOT_USERS_NODE).addNode(user.getUsername(), NodesTypes.PREFIX + NAME);
                userNode.setProperty(NodesTypes.PREFIX + PASSWORD_PROPERTY_NAME, user.getPassword());
               
                session.save();
View Full Code Here

            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.ObjectExistsException

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.