Examples of addProperty()


Examples of org.wso2.carbon.cep.core.ElementMapping.addProperty()

        for (Iterator iterator = elementMappingOMElement.getChildrenWithName(new QName(CEPConstants.CEP_CONF_NAMESPACE,
                CEPConstants.CEP_CONF_ELE_PROPERTY)); iterator.hasNext();) {
            OMElement propertyElement = (OMElement) iterator.next();
            Property property = PropertyHelper.fromOM(propertyElement);
            property.setInputProperty(false);
            elementMapping.addProperty(property);
        }

        return elementMapping;
    }
}

Examples of org.wso2.carbon.cep.core.Mapping.addProperty()

        for (Iterator iterator = mappingElement.getChildrenWithName(new QName(CEPConstants.CEP_CONF_NAMESPACE,
                CEPConstants.CEP_CONF_ELE_PROPERTY)); iterator.hasNext();) {
            OMElement propertyElement = (OMElement) iterator.next();
            Property property = PropertyHelper.fromOM(propertyElement);
            property.setInputProperty(true);
            mapping.addProperty(property);
        }

        return mapping;
    }
}

Examples of org.wso2.carbon.event.core.subscription.Subscription.addProperty()

                } else if (EventBrokerConstants.EB_RES_CREATED_TIME.equals(propertyName)) {
                    subscription.setCreatedTime(new Date(Long.parseLong(subscriptionResource.getProperty(EventBrokerConstants.EB_RES_CREATED_TIME))));
                } else if (EventBrokerConstants.EB_RES_MODE.equals(propertyName)) {
                    subscription.setMode(subscriptionResource.getProperty(EventBrokerConstants.EB_RES_MODE));
                } else {
                    subscription.addProperty(propertyName, subscriptionResource.getProperty(propertyName));
                }
            }
        }
        return subscription;
    }

Examples of org.wso2.carbon.message.store.persistence.jms.message.JMSPersistentAxis2Message.addProperty()

            while (it.hasNext()) {
                String key = it.next();
                String value = msgCtx.getProperty(key).toString();

                jmsAxis2MessageContext.addProperty(key, value);
            }

            jmsMsg.setJmsPersistentAxis2Message(jmsAxis2MessageContext);

            jmsSynpaseMessageContext.setFaultResponse(synCtx.isFaultResponse());

Examples of org.wso2.carbon.registry.api.Collection.addProperty()

                accessKeyId = accessKeyId.replaceAll("-", "").substring(12);

                // store keys in registry
                userCollection = registry.newCollection();
                registry.put(RegistryConstants.PROFILES_PATH + userName, userCollection);
                userCollection.addProperty(MessageBoxConstants.ACCESS_KEY_ID, accessKeyId);
                userCollection.addProperty(MessageBoxConstants.SECRET_ACCESS_KEY_ID, secretAccessKeyId);
                registry.put(RegistryConstants.PROFILES_PATH + userName, userCollection);


                // store user/access key in registry

Examples of org.wso2.carbon.registry.core.Collection.addProperty()

            if (!transactionStarted) {
                registry.beginTransaction();
            }

            userResource.removeProperty("OpenIDRememberMeToken");
            userResource.addProperty("OpenIDRememberMeToken", rememberMe.getToken());
            registry.put(RegistryConstants.PROFILES_PATH + rememberMe.getUserName(), userResource);

            if (!transactionStarted) {
                registry.commitTransaction();
            }

Examples of org.wso2.carbon.registry.core.Resource.addProperty()

                mediaResource = registry.get(resourcePath);
            } else {
                mediaResource = registry.newCollection();
            }
            // Add the no. of mediaItems as a property to this resource
            mediaResource.addProperty(SocialImplConstants.ACTIVITY_MEDIA_ITEM_NOS,
                    userActivity.getMediaItems().size() + "");
            registry.put(resourcePath, mediaResource);
            // Add all mediaItems as resources in the path /activityId/{mediaItem}/{mediaItemId}/...
            Resource mediaItemResource;
            int index = 0;

Examples of org.wso2.carbon.registry.core.ResourceImpl.addProperty()

                                     String path, String target, String targetSubPath,
                                     String author)
            throws RegistryException {
        Resource r = new ResourceImpl();
        String relativePath = RegistryUtils.getRelativePath(registryContext, path);
        r.addProperty("path", relativePath);
        r.addProperty("target", target);
        r.addProperty("author", author);
        r.addProperty("subPath", targetSubPath);
        String mountPath = RegistryConstants.LOCAL_REPOSITORY_BASE_PATH +
                        RegistryConstants.SYSTEM_MOUNT_PATH + "/" +

Examples of org.wso2.event.SubscriptionManager.addProperty()

            Map<String, String> subscriptionManagerParameters = getParameters(
                    subscriptionManagerElement.getChildrenWithName(new QName(
                            BROKER_CONFIG_NAMESPACE, LOCAL_NAME_PARAMETER)));
            Set<Map.Entry<String, String>> parameters = subscriptionManagerParameters.entrySet();
            for(Map.Entry<String, String> e : parameters) {
                subscriptionManager.addProperty(e.getKey(), e.getValue());
            }
   
            OMElement notificationManagerElement = configElement.getFirstChildWithName(new QName(
                    BROKER_CONFIG_NAMESPACE, LOCAL_NAME_NOTIFICATION_MANAGER_CONFIG));
            String notificationManagerClass = notificationManagerElement.getAttribute(

Examples of org.wso2.eventing.SubscriptionManager.addProperty()

                                    && passwordManager.isTokenProtected(key)) {
                                eventSource.putConfigurationProperty(propName, propValue);
                                propValue = passwordManager.resolve(propValue);
                            }

                            manager.addProperty(propName, propValue);
                        }
                    }
                    eventSource.setSubscriptionManager(manager);
                    eventSource.getSubscriptionManager()
                            .init(); // Initialise before doing further processing, required for static subscriptions
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.