Package org.jdesktop.wonderland.modules.contentrepo.web.spi

Examples of org.jdesktop.wonderland.modules.contentrepo.web.spi.WebContentRepositoryRegistry$SingletonHolder


    /**
     * Guarantee that the content repo path we need is available.
     * @return false if the content repository is not available yet
     */
    private boolean createRepoPath() throws ContentRepositoryException {
        WebContentRepositoryRegistry reg = WebContentRepositoryRegistry.getInstance();
        WebContentRepository repo = reg.getRepository(context);
   
        if (repo == null) {
            // not ready yet
            return false;
        }
View Full Code Here


   
    private final WebContentRepository repo;
    private ContentCollection dir;
   
    public ErrorReportResource(@Context ServletContext context) {
        WebContentRepositoryRegistry reg = WebContentRepositoryRegistry.getInstance();
        repo = reg.getRepository(context);
   
        // create directory if it doesn't exist
        try {
            dir = (ContentCollection)
                    repo.getRoot().getChild("groups/users/" + ErrorReport.DIR_NAME);
View Full Code Here

    protected void processRequest(HttpServletRequest request, HttpServletResponse response)
        throws ServletException, IOException
    {
        // Get the repository
        ServletContext sc = getServletContext();
        WebContentRepositoryRegistry reg = WebContentRepositoryRegistry.getInstance();
        WebContentRepository wcr = reg.getRepository(sc);
        if (wcr == null) {
            error(request, response, "No content repositories found. <br>" +
                  "Please contact your system administrator for assistance.");
            return;
        }
View Full Code Here

        throws ServletException, IOException
    {
        ServletContext sc = getServletContext();

        // get the repository
        WebContentRepositoryRegistry reg = WebContentRepositoryRegistry.getInstance();
        WebContentRepository wcr = reg.getRepository(sc);
        if (wcr == null) {
            error(request, response, "No content repositories found. <br>" +
                  "Please contact your system administrator for assistance.");
            return;
        }
View Full Code Here

     * Returns the ContentResource that represents the placemarks.xml file.
     */
    private ContentResource getPlacemarksResource() throws ContentRepositoryException, JAXBException {
        // Get the repository
        ServletContext sc = getServletContext();
        WebContentRepositoryRegistry reg = WebContentRepositoryRegistry.getInstance();
        WebContentRepository wcr = reg.getRepository(sc);
        if (wcr == null) {
            return null;
        }

        // Fetch the content node for the "placemarks/" directory under "system".
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.contentrepo.web.spi.WebContentRepositoryRegistry$SingletonHolder

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.