Package org.jdesktop.wonderland.modules.contentrepo.client

Examples of org.jdesktop.wonderland.modules.contentrepo.client.ContentRepository


            Logger.getLogger(PlacemarkComponentProperties.class.getName()).log(Level.SEVERE, null, ex);
        }
       
        String uri = "";
        ContentRepositoryRegistry registry = ContentRepositoryRegistry.getInstance();
        ContentRepository repo = registry.getRepository(LoginManager.getPrimary());
        try {
            ContentCollection c = repo.getUserRoot();
            try {
                /*
                 * Remove file if it exists.
                 */
                ContentResource r = (ContentResource) c.removeChild(image.getName());
View Full Code Here


        file.put(baos.toByteArray());
    }
   
    private static ContentCollection getContentDir() throws ContentRepositoryException {
        ServerSessionManager ssm = LoginManager.getPrimary();
        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

      return;
  }

        ContentRepositoryRegistry registry = ContentRepositoryRegistry.getInstance();

        ContentRepository repo = registry.getRepository(LoginManager.getPrimary());
 
        ContentCollection audioCollection;

        try {
      ContentCollection c = repo.getUserRoot();

      audioCollection = (ContentCollection) c.getChild("audio");

      if (audioCollection == null) {
    audioCollection = (ContentCollection) c.createChild("audio", Type.COLLECTION);
View Full Code Here

TOP

Related Classes of org.jdesktop.wonderland.modules.contentrepo.client.ContentRepository

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.