Package org.jdesktop.wonderland.modules.contentrepo.common

Examples of org.jdesktop.wonderland.modules.contentrepo.common.ContentRepositoryException


    /**
     * @inheritDoc()
     */
    public ContentNode removeChild(String name) throws ContentRepositoryException {
        throw new ContentRepositoryException("Removing child not supported");
    }
View Full Code Here


    /**
     * @inheritDoc()
     */
    public ContentNode createChild(String name, Type type) throws ContentRepositoryException {
        throw new ContentRepositoryException("Removing child not supported");
    }
View Full Code Here

    /**
     * @inheritDoc()
     */
    public ContentNode removeChild(String name) throws ContentRepositoryException {
        throw new ContentRepositoryException("Removing child not supported");
    }
View Full Code Here

    /**
     * @inheritDoc()
     */
    public ContentNode createChild(String name, Type type) throws ContentRepositoryException {
        throw new ContentRepositoryException("Removing child not supported");
    }
View Full Code Here

    /**
     * @inheritDoc()
     */
    public ContentNode removeChild(String name) throws ContentRepositoryException {
        throw new ContentRepositoryException("Removing child not supported");
    }
View Full Code Here

            throws ContentRepositoryException, JAXBException
    {
        ContentCollection dir = getContentDir();
        ContentResource resource = (ContentResource) dir.getChild(id);
        if (resource == null) {
            throw new ContentRepositoryException("No such file: " + id);
        }
       
        Unmarshaller u = getContext().createUnmarshaller();
        return (ErrorReport) u.unmarshal(resource.getInputStream());
    }
View Full Code Here

        ContentRepository repo = ContentRepositoryRegistry.getInstance().getRepository(ssm);
   
        ContentCollection dir = (ContentCollection)
                repo.getRoot().getChild("groups/users/" + ErrorReport.DIR_NAME);
        if (dir == null) {
            throw new ContentRepositoryException("No such directory");
        }
       
        return dir;
    }
View Full Code Here

    public FileInputStream getInputStream() throws ContentRepositoryException {
        try {
            return new FileInputStream(getFile());
        } catch (IOException ioe) {
            throw new ContentRepositoryException(ioe);
        }
    }
View Full Code Here

            String p = getPath();
            if (p.startsWith("/"))
                p = p.substring(1);
            return new URL(getBaseURL(), p);
        } catch (IOException ioe) {
            throw new ContentRepositoryException(ioe);
        }
    }
View Full Code Here

    public void put(byte[] data) throws ContentRepositoryException {
        try {
            FileOutputStream fos = new FileOutputStream(getFile());
            fos.write(data);
        } catch (IOException ioe) {
            throw new ContentRepositoryException(ioe);
        }
    }
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.contentrepo.common.ContentRepositoryException

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.