Examples of DefectBean


Examples of org.apache.wink.example.simpledefects.legacy.DefectBean

        // initialize the memory store
        DataStore store = DataStore.getInstance();

        // obtain data object from memory store
        DefectBean defect = store.getDefect(defectId);
        if (defect == null) {
            logger.error("Defect {} was not found", defectId);
            throw new WebApplicationException(Response.Status.NOT_FOUND);
        }

        // remove defect legacy bean from memory store
        store.removeDefect(defect.getId());

        // create new asset and set defect bean that is being deleted as its
        // data object
        DefectAsset asset = new DefectAsset(defect);
        return asset;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.