Package org.exoplatform.commons.utils

Examples of org.exoplatform.commons.utils.MimeTypeResolver


      picture.addMixin("mix:versionable");

      Node res = picture.addNode("jcr:content", "nt:resource");
      res.setProperty("jcr:lastModified", Calendar.getInstance());
      res.setProperty("jcr:data", new ByteArrayInputStream("bla bla".getBytes()));
      MimeTypeResolver mimres = new MimeTypeResolver();
      res.setProperty("jcr:mimeType", mimres.getMimeType("screen.txt"));
      root.save();
   }
View Full Code Here


      picture.addMixin("mix:versionable");

      Node res = picture.addNode("jcr:content", "nt:resource");
      res.setProperty("jcr:lastModified", Calendar.getInstance());
      res.setProperty("jcr:data", new ByteArrayInputStream("bla bla".getBytes()));
      MimeTypeResolver mimres = new MimeTypeResolver();
      res.setProperty("jcr:mimeType", mimres.getMimeType("screen.txt"));
      root.save();

      Node subNode1 = medias.addNode("subnode1", "nt:folder");
      subNode1.addMixin("mix:versionable");
      root.save();
View Full Code Here

      picture.addMixin("mix:versionable");

      Node res = picture.addNode("jcr:content", "nt:resource");
      res.setProperty("jcr:lastModified", Calendar.getInstance());
      res.setProperty("jcr:data", new ByteArrayInputStream("bla bla".getBytes()));
      MimeTypeResolver mimres = new MimeTypeResolver();
      res.setProperty("jcr:mimeType", mimres.getMimeType("screen.txt"));
      root.save();

      // make checkin/checkout a lot
      wc1.checkin();
      wc1.checkout();
View Full Code Here

      picture.addMixin("mix:versionable");

      Node res = picture.addNode("jcr:content", "nt:resource");
      res.setProperty("jcr:lastModified", Calendar.getInstance());
      res.setProperty("jcr:data", new ByteArrayInputStream("bla bla".getBytes()));
      MimeTypeResolver mimres = new MimeTypeResolver();
      res.setProperty("jcr:mimeType", mimres.getMimeType("screen.txt"));
      root.save();

      wc1.checkin();
      wc1.checkout();
View Full Code Here

         picture.addMixin("mix:versionable");

         Node res = picture.addNode("jcr:content", "nt:resource");
         res.setProperty("jcr:lastModified", Calendar.getInstance());
         res.setProperty("jcr:data", new ByteArrayInputStream("bla bla".getBytes()));
         MimeTypeResolver mimres = new MimeTypeResolver();
         res.setProperty("jcr:mimeType", mimres.getMimeType("screen.txt"));
         root.save();

         // make checkin/checkout a lot

         wc1.checkin();
View Full Code Here

TOP

Related Classes of org.exoplatform.commons.utils.MimeTypeResolver

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.