Package com.denimgroup.threadfix.service.defects.utils.versionone

Examples of com.denimgroup.threadfix.service.defects.utils.versionone.Assets


        String result = restUtils.getUrlAsString(getUrlWithRest() +
                        "Member?where=Username='" + getUrlEncodedUsername() + "'&sel=Scopes",
                getUsername(), getPassword());
        if (result != null) {
            Assets assets = MarshallingUtils.marshal(Assets.class, result);
            if (assets != null && assets.getAssets() != null) {
                for (Assets.Asset asset : assets.getAssets()) {
                    if (asset != null && asset.getAttributes() != null && asset.getAttributes().size() > 0) {
                        if (asset.getAttributes().get(0).getMixed() != null)
                            projectList.addAll(asset.getAttributes().get(0).getMixed());
                        if (asset.getAttributes().get(0).getValues() != null)
                            projectList.addAll(asset.getAttributes().get(0).getValues());
View Full Code Here


    private List<Assets.Asset> getAssets(String url) {
        List<Assets.Asset> assetList = list();

        String result = restUtils.getUrlAsString(url, getUsername(), getPassword());
        if (result != null) {
            Assets assets = MarshallingUtils.marshal(Assets.class, result);
            if (assets != null && assets.getAssets() != null) {
                assetList = assets.getAssets();
            }
        }
        return assetList;
    }
View Full Code Here

TOP

Related Classes of com.denimgroup.threadfix.service.defects.utils.versionone.Assets

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.