Package org.wso2.carbon.registry.jcr

Examples of org.wso2.carbon.registry.jcr.RegistryNode


    }

    public Set evaluateComparison(Set set, Constraint constraint) {  //mine
        Set result = new HashSet();
        result.add(new RegistryNode("a", session));
//        DynamicOperand operand1 = ((RegistryComparison) constraint).getOperand1();
//        StaticOperand operand2 = ((RegistryComparison) constraint).getOperand2();
//        String operator = ((RegistryComparison) constraint).getOperator();

        return result;
View Full Code Here


        String path = ((RegistryChildNode) constraint).getParentPath();
//        String selector = ((RegistryChildNode) constraint).getSelectorName();

        try {
            Iterator it = set.iterator();
            RegistryNode node = null;
            while (it.hasNext()) {
                node = (RegistryNode) it.next();
                if (node.getPath().contains(path)) {

                    result.add(node);
                }

            }
View Full Code Here

        String path = ((RegistryDescendantNode) constraint).getAncestorPath();
//        String selector = ((RegistryDescendantNode) constraint).getSelectorName();   // The "set" has all selector nodes that "selectorname" has

        try {
            RegistryNode node = null;
            Iterator it = set.iterator();

            while (it.hasNext()) {

                node = ((RegistryNode) it.next());

                if (node.getPath().contains(path)) {
                    result.add(node);
                }

            }
View Full Code Here

        }


        Iterator it1 = result1.iterator();
        Iterator it2 = result2.iterator();
        RegistryNode node1;
        RegistryNode node2;
        Iterator it;

        while (it1.hasNext()) {
            node1 = (RegistryNode) it1.next();

            while (it2.hasNext()) {

                node2 = (RegistryNode) it2.next();

                if (node1.getPath().equals(node2.getPath())) {

                    result2.remove(node2);
                    it2 = result2.iterator();

                }
View Full Code Here

                "AND RP.REG_PROPERTY_ID=PP.REG_ID AND PP.REG_NAME=" + propName;

        statement = "org.wso2.registry.direct.query;;" + query;

        Iterator it = set.iterator();
        RegistryNode node = null;
        while (it.hasNext()) {
            node = (RegistryNode) it.next();
            if (node.hasProperty(propName)) {
                result.add(node);
            }
        }

        return getfilteredFinalResult(set, result);
View Full Code Here

        return getfilteredFinalResult(set, result);
    }

    public Set evaluateSameNode(Set set, Constraint constraint) throws RepositoryException //mine

        RegistryNode node = null;
        Set result = new HashSet();
//        String selector = ((RegistrySameNode) constraint).getSelectorName();
        String path = ((RegistrySameNode) constraint).getPath();

        try {
View Full Code Here

        Set finalResult = new HashSet();
        Iterator it1 = source.iterator();

        while (it1.hasNext()) {

            RegistryNode temp1 = (RegistryNode) it1.next();
            Iterator it2 = result.iterator();

            while (it2.hasNext()) {
                RegistryNode temp2 = (RegistryNode) it2.next();

                if ((temp1.getPath()).equals(temp2.getPath())) {
                    finalResult.add(temp1);
                }
            }
        }
View Full Code Here

        }

        public void run() {
            try {
                MessageContext msgCtx = ((Axis2MessageContext) synCtx).getAxis2MessageContext();
                Event<MessageContext> event = new Event(msgCtx);
                subscriptions = subscriptionManager.getMatchingSubscriptions(event);
            } catch (EventException e) {
                handleException("Matching subscriptions fetching error", e);
            }
View Full Code Here

     * @throws EventException event
     */
    private void processGetStatusRequest(MessageContext mc,
                                         ResponseMessageBuilder messageBuilder)
            throws AxisFault, EventException {
        Subscription subscription =
                SubscriptionMessageBuilder.createGetStatusMessage(mc);
        if (log.isDebugEnabled()) {
            log.debug("GetStatus request recived for SynapseSubscription ID : " +
                    subscription.getId());
        }
        subscription = subscriptionManager.getSubscription(subscription.getId());
        if (subscription != null) {
            if (log.isDebugEnabled()) {
                log.debug("Sending GetStatus responce for SynapseSubscription ID : " +
                        subscription.getId());
            }
            //send the responce
            SOAPEnvelope soapEnvelope = messageBuilder.genGetStatusResponse(subscription);
            dispatchResponse(soapEnvelope, EventingConstants.WSE_GET_STATUS_RESPONSE,
                    mc, false);
View Full Code Here


    public SynapseSubscription() {
        this.setId(UIDGenerator.generateURNString());
        this.setDeliveryMode(EventingConstants.WSE_DEFAULT_DELIVERY_MODE);
        SubscriptionData subscriptionData = new SubscriptionData();
        subscriptionData.setProperty(SynapseEventingConstants.STATIC_ENTRY, "false");
        this.setSubscriptionData(subscriptionData);
    }
View Full Code Here

TOP

Related Classes of org.wso2.carbon.registry.jcr.RegistryNode

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.