private void checkUUID(String uuid) throws ObjectBeanManagerException{ try { UUID.fromString(uuid); } catch (IllegalArgumentException e){ throw new ObjectBeanManagerException("Uuid is not parseable to a valid uuid: '"+uuid+"'"); } }
private void checkUUID(String uuid) throws ObjectBeanManagerException{ try { @SuppressWarnings("unused") UUID uuidObj = UUID.fromString(uuid); } catch (IllegalArgumentException e){ throw new ObjectBeanManagerException("Uuid is not parseable to a valid uuid: '"+uuid+"'"); } }
public Object getObject(Session session, String path) throws ObjectBeanManagerException { if(StringUtils.isEmpty(path) || !path.startsWith("/")) { log.warn("Illegal argument for '{}' : not an absolute path", path); return null; } String relPath = path.substring(1); try { return getObject(session.getRootNode(), relPath); } catch (RepositoryException re) { throw new ObjectBeanManagerException("Impossible to get the object at " + path, re); } }
private CacheKey(Node node) throws ObjectBeanManagerException { try { this.sessionUserId = node.getSession().getUserID(); this.pathOrUuid = node.getPath(); } catch (RepositoryException e) { throw new ObjectBeanManagerException(e); } }
private CacheKey(Node node, String relPath) throws ObjectBeanManagerException { try { this.sessionUserId = node.getSession().getUserID(); this.pathOrUuid = node.getPath() + "/" + relPath; } catch (RepositoryException e) { throw new ObjectBeanManagerException(e); } }
throw new ObjectBeanManagerException("Impossible to get the object at " + path, pnfe); } catch (RepositoryException re) { throw new ObjectBeanManagerException("Impossible to get the object at " + path, re);
throw new ObjectBeanManagerException("Impossible to get the node from the repository", e); } catch (Exception e) { throw new ObjectBeanManagerException("Impossible to determine node type for node", e);
throw new ObjectBeanManagerException("Impossible to get the object from the repository", e); } catch (Exception e) { throw new ObjectBeanManagerException("Impossible to convert the node", e);
throw new ObjectBeanManagerException("Impossible to get the object from the repository", e); } catch (Exception e) { throw new ObjectBeanManagerException("Impossible to convert the node", e);