Package org.netbeans.server.services.beans

Examples of org.netbeans.server.services.beans.Components


        if (expectedComponent == null){
            return Component.UNKNOWN;
        }
        Component result = new Component(expectedComponent.getComponent().toLowerCase(), expectedComponent.getSubComponent());
        if (isNetbeansDir(expectedComponent.getComponent()) && isNBModule(expectedComponent.getSubComponent())) {
            Components componentsObj = PersistenceUtils.getInstance().getComponents();
            List<String> componentsList = new ArrayList<String>(componentsObj.getComponentsSet());
            Collections.sort(componentsList, new Comparator<String>(){

                public int compare(String o1, String o2) {
                    return o2.length() - o1.length();
                }
View Full Code Here


        super();
    }
   
    @Override
    public int doStartTag() throws JspException, JspException {
        Components cmps = PersistenceUtils.getInstance().getComponents();
        it = cmps.getSubcomponentsSet(component).iterator();
       
        if (setVariable()) {
            return EVAL_BODY_BUFFERED;
        } else {
            return SKIP_BODY;
View Full Code Here

            for (String subComp : subArray) {
                ts.add(subComp.trim());
            }
            newComponents.put(component, ts.toArray(new String[0]));
        }
        return new Components(newComponents);
    }
View Full Code Here

        if ((startIndex == 0) && (startIndex < slashIndex) &&
                (slashIndex < endIndex) && (endIndex < newLineIndex)) {
            String comp = comment.substring(1, slashIndex);
            String subcomp = comment.substring(slashIndex + 1, endIndex);

            Components realComps = PersistenceUtils.getInstance().getComponents();
            if (realComps.getComponentsSet().contains(comp) && realComps.getSubcomponentsSet(comp).contains(subcomp)) {
                return new Component(comp, subcomp);
            }
        }
        return null;
    }
View Full Code Here

        }
        return result;
    }
   
    public Components getComponents() {
        Components cd = comps.get("comps");
        if (cd == null){
            cd = BugzillaConnector.getInstance().getComponents();
            if (cd == null){
                Logger.getLogger(PersistenceUtils.class.getName())
                        .severe("Bugzilla connector returned null components!");
View Full Code Here

        }
        return cd;
    }

    public static boolean isExistingComponent(String component, String subcomponent){
        Components comps = getInstance().getComponents();
        Set<String> subcomps = comps.getSubcomponentsSet(component);
        if (subcomps == null){
            return false;
        }
        return subcomps.contains(subcomponent);
    }
View Full Code Here

    }

    public Components getComponents(){
        String url = SERVER_URL + RESOURCE_URL + "components";
        WebResource webResource = client.resource(url);
        Components result = webResource.get(Components.class);
        return result;
    }
View Full Code Here

public class BugzillaConnectorTest extends BugzillaTestCase {

    @Test
    public void testComponents() throws IOException {
        Components comps = new BugzillaConnector().getComponents();
        assertNotNull(comps);
        assertFalse(comps.getComponentsSet().isEmpty());
        String someComp = "platform";
        assertFalse(comps.getSubcomponentsSet(someComp).isEmpty());
    }
View Full Code Here

        request.setAttribute("exceptions", result);
        return mapping.findForward(RESULT);
    }

    void setQueryAttributes(HttpServletRequest request, boolean afterEmptyReport){
        Components components = PersistenceUtils.getInstance().getComponents();
        request.setAttribute("empty_result", afterEmptyReport);
        request.setAttribute("components", components.getComponentsSet());
        if (afterEmptyReport){
            setAttributeFromParam(request, "minimum");
            setAttributeFromParam(request, "maximum");
            setAttributeFromParam(request, "creationFrom");
            setAttributeFromParam(request, "creationTo");
View Full Code Here

TOP

Related Classes of org.netbeans.server.services.beans.Components

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.