Package org.socialmusicdiscovery.server.api

Examples of org.socialmusicdiscovery.server.api.OperationStatus


     * @param module The import module to use
     */
    private void startImport(String module) {
        if (importTask == null) {
            importAborted = false;
            OperationStatus operationStatus = Client.create(config).resource(HOSTURL + "/mediaimportmodules/" + module).post(OperationStatus.class);
            Boolean status = operationStatus.getSuccess();
            if (status != null && status) {
                startImportProgressBar();
            }
        }
    }
View Full Code Here


        Map<String,String> parametersMap = new HashMap<String,String>();
        for (Map.Entry<String, JsonElement> entry : parameters.entrySet()) {
            parametersMap.put(entry.getKey(), entry.getValue().getAsString());
        }
        if (mediaImportManager.startImport(module, parametersMap)) {
            return new OperationStatus(true);
        } else {
            return new OperationStatus(false);
        }
    }
View Full Code Here

    @DELETE
    @Produces(MediaType.APPLICATION_JSON)
    @Path("/{module}")
    public OperationStatus abortImport(@PathParam("module") String module) throws JSONException {
        if (mediaImportManager.abortImport(module)) {
            return new OperationStatus(true);
        } else {
            return new OperationStatus(false);
        }
    }
View Full Code Here

TOP

Related Classes of org.socialmusicdiscovery.server.api.OperationStatus

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.