Examples of ObjectLockedException


Examples of net.sf.archimede.model.ObjectLockedException

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

Examples of net.sf.archimede.model.ObjectLockedException

            folder.setId(baseFolderNode.getUUID());
           
        } catch (PathNotFoundException e) {
            throw new RuntimeException(e);
        } catch (LockException e) {
            throw new ObjectLockedException(folder);
        } catch (RepositoryException e) {
            throw new RuntimeException(e);
        }
    }
View Full Code Here

Examples of net.sf.archimede.model.ObjectLockedException

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

Examples of net.sf.archimede.model.ObjectLockedException

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

Examples of net.sf.archimede.model.ObjectLockedException

        } 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

Examples of org.fcrepo.server.errors.ObjectLockedException

                    String objDate = DateUtility.convertDateToXSDString(w.getLastModDate());
                    String reqDate = DateUtility.convertDateToXSDString(lastModifiedDate);
                    String msg = String.format("%s lastModifiedDate (%s) " +
                                               "is more recent than the " +
                                               "request (%s)", pid, objDate, reqDate);
                    throw new ObjectLockedException(msg);
                }
            }

            if (state != null && !state.equals("")) {
                if (!state.equals("A") && !state.equals("D")
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.