Package org.wso2.carbon.registry.core

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


                if (log.isDebugEnabled()) {
                    log.debug("Updating openid admin");
                }
                resource = registry.get(path);
                resource.removeProperty(IdentityRegistryResources.SUB_DOMAIN);
                resource.removeProperty(IdentityRegistryResources.OPENID_PATTERN);
            }
            resource.addProperty(IdentityRegistryResources.SUB_DOMAIN, opAdmin.getSubDomain());
            resource.addProperty(IdentityRegistryResources.OPENID_PATTERN, opAdmin
                    .getTenantOpenIDPattern());
            registry.put(path, resource);
View Full Code Here


      } else {
        resource = registry.newResource();
      }

      if (resource.getProperty(parameterDO.getName()) != null) {
        resource.removeProperty(parameterDO.getName());
      }

      resource.addProperty(parameterDO.getName(), parameterDO.getValue());
      registry.put(path, resource);
    } catch (RegistryException e) {
View Full Code Here

    try {
      path = IdentityRegistryResources.CARD_ISSUER;
      if (registry.resourceExists(path)) {
        resource = registry.get(path);
        if (resource != null) {
          resource.removeProperty(parameterDO.getName());
          registry.put(path, resource);
        }
      }
    } catch (RegistryException e) {
      log.error("Error while removing parameter", e);
View Full Code Here

            String globalPath = PersistenceUtils.getResourcePath(module);
            if (registry.resourceExists(globalPath)) {
                Resource resource = registry.get(globalPath);
                if (!Boolean.parseBoolean(resource
                        .getProperty(GLOBALLY_ENGAGED_CUSTOM))) {
                    resource.removeProperty(GLOBALLY_ENGAGED_CUSTOM);
                    resource.addProperty(GLOBALLY_ENGAGED_CUSTOM, Boolean.TRUE.toString());
                    registry.put(globalPath, resource);
                }
            } else {
                Resource globalResource = registry.newResource();
View Full Code Here

            String globalPath = PersistenceUtils.getResourcePath(module);
            if (registry.resourceExists(globalPath)) {
                Resource resource = registry.get(globalPath);
                if (Boolean.parseBoolean(resource
                        .getProperty(GLOBALLY_ENGAGED_CUSTOM))) {
                    resource.removeProperty(GLOBALLY_ENGAGED_CUSTOM);
                    resource.addProperty(GLOBALLY_ENGAGED_CUSTOM, "false");
                    registry.put(globalPath, resource);
                }
            }
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.