Package org.maqetta.server

Examples of org.maqetta.server.VLibraryResource


            jsonWriter.addField("isDir", listFiles[j].isDirectory());
            jsonWriter.addField("isNew", listFiles[j].isNew());
            jsonWriter.addField("readOnly", listFiles[j].readOnly());
            jsonWriter.addField("isDirty", listFiles[j].isDirty());
            if (listFiles[j] instanceof VLibraryResource) {
                VLibraryResource r = (VLibraryResource) listFiles[j];
                jsonWriter.addField("libraryId", r.getLibraryId());
                jsonWriter.addField("libVersion", r.getLibraryVersion());
            }

            jsonWriter.endObject();
        }
        return jsonWriter.getJSON();
View Full Code Here


                    jsonWriter.startObject().addField("isDir", members[k].isDirectory());
                    jsonWriter.addField("name", members[k].getName());
                    jsonWriter.addField("readOnly", members[k].readOnly());
                    jsonWriter.addField("isDirty", members[k].isDirty());
                    if (members[k] instanceof VLibraryResource) {
                        VLibraryResource r = (VLibraryResource) members[k];
                        jsonWriter.addField("libraryId", r.getLibraryId());
                        jsonWriter.addField("libVersion", r.getLibraryVersion());
                    }

                    jsonWriter.endObject();
                }
                jsonWriter.endArray();
View Full Code Here

            String path = libEntry.get("root");
            Library lib = ServerManager.getServerManager().getLibraryManager().getLibrary(id, version);
           
            boolean sourceLibrary = lib.getSourcePath() != null && useSource;
           
            IVResource libResource = new VLibraryResource(lib, lib.getURL("", sourceLibrary),path, "",sourceLibrary);
            zipDir(libResource,root, zos, true);
        }
    }
View Full Code Here

TOP

Related Classes of org.maqetta.server.VLibraryResource

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.