Examples of createProperty()


Examples of com.orientechnologies.orient.core.metadata.schema.OClass.createProperty()

      if (getDatabase().getMetadata().getSchema().getClasses().size() > 0)
        throw new OSecurityException("Default users and roles already installed");

      // CREATE ROLE AND USER SCHEMA CLASSES
      final OClass roleClass = getDatabase().getMetadata().getSchema().createClass("ORole");
      roleClass.createProperty("mode", OType.BYTE);
      roleClass.createProperty("rules", OType.EMBEDDEDMAP, OType.BYTE);

      final OClass userClass = getDatabase().getMetadata().getSchema().createClass("OUser");
      userClass.createProperty("name", OType.STRING).setMandatory(true).setNotNull(false);
      userClass.createProperty("password", OType.STRING).setMandatory(true).setNotNull(false);
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.schema.OClass.createProperty()

        throw new OSecurityException("Default users and roles already installed");

      // CREATE ROLE AND USER SCHEMA CLASSES
      final OClass roleClass = getDatabase().getMetadata().getSchema().createClass("ORole");
      roleClass.createProperty("mode", OType.BYTE);
      roleClass.createProperty("rules", OType.EMBEDDEDMAP, OType.BYTE);

      final OClass userClass = getDatabase().getMetadata().getSchema().createClass("OUser");
      userClass.createProperty("name", OType.STRING).setMandatory(true).setNotNull(false);
      userClass.createProperty("password", OType.STRING).setMandatory(true).setNotNull(false);
      userClass.createProperty("roles", OType.LINKSET, roleClass);
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.schema.OClass.createProperty()

      final OClass roleClass = getDatabase().getMetadata().getSchema().createClass("ORole");
      roleClass.createProperty("mode", OType.BYTE);
      roleClass.createProperty("rules", OType.EMBEDDEDMAP, OType.BYTE);

      final OClass userClass = getDatabase().getMetadata().getSchema().createClass("OUser");
      userClass.createProperty("name", OType.STRING).setMandatory(true).setNotNull(false);
      userClass.createProperty("password", OType.STRING).setMandatory(true).setNotNull(false);
      userClass.createProperty("roles", OType.LINKSET, roleClass);

      // CREATE ROLES AND USERS
      final ORole adminRole = createRole(ORole.ADMIN, ORole.ALLOW_MODES.ALLOW_ALL_BUT);
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.schema.OClass.createProperty()

      roleClass.createProperty("mode", OType.BYTE);
      roleClass.createProperty("rules", OType.EMBEDDEDMAP, OType.BYTE);

      final OClass userClass = getDatabase().getMetadata().getSchema().createClass("OUser");
      userClass.createProperty("name", OType.STRING).setMandatory(true).setNotNull(false);
      userClass.createProperty("password", OType.STRING).setMandatory(true).setNotNull(false);
      userClass.createProperty("roles", OType.LINKSET, roleClass);

      // CREATE ROLES AND USERS
      final ORole adminRole = createRole(ORole.ADMIN, ORole.ALLOW_MODES.ALLOW_ALL_BUT);
      final OUser adminUser = createUser(OUser.ADMIN, OUser.ADMIN, new String[] { adminRole.getName() });
View Full Code Here

Examples of com.orientechnologies.orient.core.metadata.schema.OClass.createProperty()

      roleClass.createProperty("rules", OType.EMBEDDEDMAP, OType.BYTE);

      final OClass userClass = getDatabase().getMetadata().getSchema().createClass("OUser");
      userClass.createProperty("name", OType.STRING).setMandatory(true).setNotNull(false);
      userClass.createProperty("password", OType.STRING).setMandatory(true).setNotNull(false);
      userClass.createProperty("roles", OType.LINKSET, roleClass);

      // CREATE ROLES AND USERS
      final ORole adminRole = createRole(ORole.ADMIN, ORole.ALLOW_MODES.ALLOW_ALL_BUT);
      final OUser adminUser = createUser(OUser.ADMIN, OUser.ADMIN, new String[] { adminRole.getName() });
View Full Code Here

Examples of com.sun.appserv.management.config.EJBModuleConfig.createProperty()

                        wsec = ejbConfig.createWebServiceEndpointConfig(
                                pureWebServiceName, null);
                        wsec.setJBIEnabled(false);
                    }
                    for (String jndiname  : published.keySet()){
                        ejbConfig.createProperty(jndiname+"__"+
                                underScoredWebServiceName,
                                published.get(jndiname));
                    }
                }
            } else if(type.equals(WebServiceEndpointInfo.SERVLET_IMPL)){
View Full Code Here

Examples of com.sun.appserv.management.config.HTTPListenerConfig.createProperty()

                if (httpListenerName.equals(ADMIN_LISTENER)){
                    if (httpListConfig.getSecurityEnabled()){
                        if (httpListConfig.existsProperty(PROXIED_PROTOCOLS))
                            httpListConfig.setPropertyValue(PROXIED_PROTOCOLS, PROXIED_PROTOCOLS_VALUE);
                         else
                             httpListConfig.createProperty(PROXIED_PROTOCOLS, PROXIED_PROTOCOLS_VALUE);
                    }else{
                        if (httpListConfig.existsProperty(PROXIED_PROTOCOLS))
                            httpListConfig.removeProperty(PROXIED_PROTOCOLS);
                    }
                }
View Full Code Here

Examples of com.sun.appserv.management.config.J2EEApplicationConfig.createProperty()

                    wsec = appConfig.createWebServiceEndpointConfig(
                            pureWebServiceName, null);
                    wsec.setJBIEnabled(false);
                }
                for (String jndiname  : published.keySet()){
                    appConfig.createProperty(jndiname+"__"+
                            underScoredWebServiceName,
                            published.get(jndiname));
                }
            }
        } else {
View Full Code Here

Examples of com.sun.appserv.management.config.LBConfig.createProperty()

        final String lbName = getName();
        final String lbConfigName = loadBalancerConfig.getLbConfigName();
        final LBConfig lbConfig = getLBConfig(lbConfigName);
        if(updateTimeStamp) {
            if(!lbConfig.existsProperty(LAST_EXPORTED_PROPERTY))
                lbConfig.createProperty(LAST_EXPORTED_PROPERTY,String.valueOf(new Date().getTime()));
            else
                lbConfig.setPropertyValue(LAST_EXPORTED_PROPERTY,String.valueOf(new Date().getTime()));
        }

        return lbFactory.getLoadBalancerXML(lbConfigName,lbName);
View Full Code Here

Examples of com.sun.appserv.management.config.LoadBalancerConfig.createProperty()

        String devicePort = (String)handlerCtx.getInputValue("devicePort");
        String proxyHost = (String)handlerCtx.getInputValue("proxyHost");
        String proxyPort = (String)handlerCtx.getInputValue("proxyPort");
        try{
            LoadBalancerConfig loadBalancerConfig = AMXUtil.getLBConfigHelper().createLoadbalancer(lbName, autoApply.booleanValue(), targets, null);
            loadBalancerConfig.createProperty(LoadBalancerConfig.DEVICE_HOST_PROPERTY, deviceHost);
            loadBalancerConfig.createProperty(LoadBalancerConfig.DEVICE_ADMIN_PORT_PROPERTY, devicePort);
            if(!GuiUtil.isEmpty(proxyHost))
                loadBalancerConfig.createProperty(loadBalancerConfig.SSL_PROXY_HOST_PROPERTY, proxyHost);
            if(!GuiUtil.isEmpty(proxyPort))
                loadBalancerConfig.createProperty(LoadBalancerConfig.SSL_PROXY_PORT_PROPERTY, proxyPort);
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.