Examples of editPropertyValue()


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

        try {
            UserRegistry userRegistry = Utils.getUserRegistry();
            Collection userCollection = (Collection)
                    userRegistry.get(MessageBoxConstants.MB_MESSAGE_BOX_STORAGE_PATH + "/" + messageBoxId);
            for (Map.Entry entry : attributes.entrySet()) {
                userCollection.editPropertyValue(entry.getKey().toString(),
                                                 userCollection.getProperty(entry.getKey().toString()),
                                                 entry.getValue().toString());
            }

        } catch (RegistryException e) {
View Full Code Here

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

                templateParamResource = registry.newCollection();
            }
            for (String param : userActivity.getTemplateParams().keySet()) {
                if (isUpdate) {
                    String oldValue = templateParamResource.getProperty(param);
                    templateParamResource.editPropertyValue(
                            param, oldValue, userActivity.getTemplateParams().get(param));
                } else {
                    templateParamResource.addProperty(param,
                            userActivity.getTemplateParams().get(param));
                }
View Full Code Here

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

        r1.addProperty("p1", "v1");
        r1.addProperty("p1", "v2");
        registry.put("/props/t3/r1", r1);

        Resource r1e1 = registry.get("/props/t3/r1");
        r1e1.editPropertyValue("p1", "v1", "v3");
        registry.put("/props/t3/r1", r1e1);

        Resource r1e2 = registry.get("/props/t3/r1");

        assertFalse("Property is not edited.", r1e2.getPropertyValues("p1").contains("v1"));
View Full Code Here

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

        // activate the tenant on successful validation of the email, if it is not already activated.
        if ("false".equals(resource.getProperty(StratosConstants.IS_EMAIL_VALIDATED))) {
            tenantManager.activateTenant(tenantId);
            // set the registry flag
            resource.editPropertyValue(StratosConstants.IS_EMAIL_VALIDATED, "false", "true");

            if (log.isDebugEnabled()) {
                log.debug("Tenant : " + tenantId + " is activated after validating the " +
                          "email of the tenant admin.");
            }
View Full Code Here

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

        r1.setProperty("test2", "value2");
        registry.put("/props/t3/r1", r1);

        Resource r1e1 = registry.get("/props/t3/r1");
        r1e1.setContent("r1 content");
        r1e1.editPropertyValue("p1", "v1", "v3");
        List list = r1e1.getPropertyValues("/props/t3/r");

        registry.put("/props/t3/r1", r1e1);

        Resource r1e2 = registry.get("/props/t3/r1");
View Full Code Here

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

        r1.setProperty("test2", "value2");
        registry.put("/props/t3/r1", r1);

        Resource r1e1 = registry.get("/props/t3/r1");
        r1e1.setContent("r1 content");
        r1e1.editPropertyValue("p1", "v1", "v3");
        List list = r1e1.getPropertyValues("/props/t3/r");

        registry.put("/props/t3/r1", r1e1);

        Resource r1e2 = registry.get("/props/t3/r1");
View Full Code Here

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

        // activate the tenant on successful validation of the email, if it is not already activated.
        if ("false".equals(resource.getProperty(StratosConstants.IS_EMAIL_VALIDATED))) {
            tenantManager.activateTenant(tenantId);
            // set the registry flag
            resource.editPropertyValue(StratosConstants.IS_EMAIL_VALIDATED, "false", "true");

            if (log.isDebugEnabled()) {
                log.debug("Tenant : " + tenantId + " is activated after validating the " +
                          "email of the tenant admin.");
            }
View Full Code Here
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.