Package org.rhq.core.domain.tagging

Examples of org.rhq.core.domain.tagging.Tag


    public void addFilterTagNamespace(String filterTagNamespace) {
        if (filterTagNamespace == null) {
            return; // do nothing if the filter is empty
        }
        if (this.filterTag == null) {
            this.filterTag = new Tag();
        }
        this.filterTag.setNamespace(filterTagNamespace);
    }
View Full Code Here


    public void addFilterTagSemantic(String filterTagSemantic) {
        if (filterTagSemantic == null) {
            return; // do nothing if the filter is empty
        }
        if (this.filterTag == null) {
            this.filterTag = new Tag();
        }
        this.filterTag.setSemantic(filterTagSemantic);
    }
View Full Code Here

    public void addFilterTagName(String filterTagName) {
        if (filterTagName == null) {
            return; // do nothing if the filter is empty
        }
        if (this.filterTag == null) {
            this.filterTag = new Tag();
        }
        this.filterTag.setName(filterTagName);
    }
View Full Code Here

        }
        return generatedTags;
    }

    private Tag generateTag() {
        return new Tag(testNamespace, testSemantic, getRandomString());
    }
View Full Code Here

        for (Map.Entry<String, Object> critField : getFilterFields(criteria).entrySet()) {
            Object value = critField.getValue();

            if (value instanceof Tag) {
                Tag tag = (Tag) value;
                query = query.replace(":tagNamespace", tag.getNamespace());
                query = query.replace(":tagSemantic", tag.getSemantic());
                query = query.replace(":tagName", tag.getName());

            } else {
                value = getParameterReplacedValue(critField.getKey(), value);
                if (LOG.isDebugEnabled()) {
                    LOG.debug("Bind: (" + critField.getKey() + ", " + value + ")");
View Full Code Here

    private void setBindValues(Query query) {
        for (Map.Entry<String, Object> critField : getFilterFields(criteria).entrySet()) {
            Object value = critField.getValue();

            if (value instanceof Tag) {
                Tag tag = (Tag) value;
                query.setParameter("tagNamespace", tag.getNamespace());
                query.setParameter("tagSemantic", tag.getSemantic());
                query.setParameter("tagName", tag.getName());

            } else if (!(value instanceof Criteria.NonBindingOverrideFilter)) {
                if (value instanceof String) {
                    value = prepareStringBindValue(critField.getKey(), (String) value);
                }
View Full Code Here

                public void onKeyPress(KeyPressEvent event) {
                    if ((event.getCharacterValue() != null) && (event.getCharacterValue() == KeyCodes.KEY_ENTER)) {
                        //String tag = form.getValueAsString("tag");
                        String tag = tagInputItem.getEnteredValue();
                        if (tag != null) {
                            Tag newTag = new Tag(tag.trim());
                            tags.add(newTag);
                            TagEditorView.this.save();
                            TagInputDialog.this.hide();
                        }
                    }
View Full Code Here

        tagCloudView.setSelectedTag(tagString);

        if (container == null) {

            Tag tag = new Tag(tagString);

            Criteria criteria = new Criteria();
            criteria.addCriteria("tagNamespace", tag.getNamespace());
            criteria.addCriteria("tagSemantic", tag.getSemantic());
            criteria.addCriteria("tagName", tag.getName());

            container = new TabSet();
            container.setWidth100();
            container.setHeight100();
            container.setTabBarControls(tagCloudView.getDeleteButton());
View Full Code Here

    }

    private BundleResourceDeployment createNewBundleDeployment(BundleDeployment deployment) {
        Resource resource = new Resource(1);
        Set<Tag> tags = new HashSet<Tag>();
        tags.add(new Tag("ns1:sem1=tag1")); // we can use @@rhq.tag.ns1.sem1@@
        tags.add(new Tag("sem2=tag2")); // we can use @@rhq.tag.sem2@@
        tags.add(new Tag("ns3:tag3")); // no semantic is specified, bundle deployments will not see this
        tags.add(new Tag("tag4")); // no semantic is specified, bundle deployments will not see this
        resource.setTags(tags);
        return new BundleResourceDeployment(deployment, resource);
    }
View Full Code Here

TOP

Related Classes of org.rhq.core.domain.tagging.Tag

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.