Examples of parent()


Examples of com.sun.enterprise.config.serverbeans.HttpListener.parent()

               
            }
        } else if (choice.equals(StaticTest.UPDATE)) {
            if (cce.getName().equals("enabled") && ConfigBean.toBoolean((String) cce.getObject())){
                final HttpListener h = (HttpListener) cce.getClassObject();
                final Config c = (Config) ((HttpService) h.parent()).parent();
                final VirtualServer vs = getDefaultVirtualServer(h.getDefaultVirtualServer(), c);
                if (null != vs && !vs.getState().equals("on")){
                    result.failed(smh.getLocalString(getClass().getName() + ".cannotUpdateVSNotOn",
                                                     "Cannot enable this HttpListener \"{0}\" because its virtual server \"{1}\" has a state other than \"on\" ({2})",
                                                     new Object[]{h.getId(), vs.getId(), vs.getState()}));
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.IdentityAssertionTrust.parent()

                }
            }
            if (choice.equals(StaticTest.UPDATE)) {
                if (ConfigBean.toBoolean((String) cce.getObject())) {
                    final IdentityAssertionTrust iat = (IdentityAssertionTrust) cce.getClassObject();
                    final Config c = (Config) ((SecurityService) iat.parent()).parent();
                    String trustId = checkIsDefault(c);
                    if (flag) {
                        result.failed(_strMgr.getString("DefaultTrustConfigExists", trustId));
                    }
                }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.JmsHost.parent()

        return result;
    }

    private final boolean isReferencedByParent(final ConfigContextEvent cce) throws ConfigException {
        final JmsHost host = getJmsHost(cce);
        final JmsService parent = (JmsService) host.parent();
        return parent.getDefaultJmsHost() != null && parent.getDefaultJmsHost().equals(host.getName());
    }

    private void validateAdminUserName(String name, Result result) {
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.ProviderConfig.parent()

        return result;
    }

    private final boolean isReferencedByParent(final ConfigContextEvent cce) throws ConfigException {
        final ProviderConfig pc = getProviderConfig(cce);
        final MessageSecurityConfig msc = (MessageSecurityConfig) pc.parent().parent();
        return msc.getDefaultProvider() != null && msc.getDefaultProvider().equals(pc.getProviderId());
    }

    private ProviderConfig getProviderConfig(final ConfigContextEvent cce) throws ConfigException {
        return (ProviderConfig) cce.getValidationTarget();
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.SipListener.parent()

                }
            }
           if (choice.equals(StaticTest.UPDATE)) {
              if(ServerTags.EXTERNAL_SIP_ADDRESS.equals(cce.getName()) || ServerTags.EXTERNAL_SIP_PORT.equals(cce.getName())) {
                    final SipListener sl = (SipListener) cce.getClassObject();
                    final Config c = (Config) ((SipService) sl.parent()).parent();
                    if (sl.getType().equals("internal")) {
                            result.failed(_strMgr.getString("ExternalIsFalse"));
                    }
              } 
           }
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.TransformationRule.parent()

           ConfigBean bean = getTRBean(event, takeOld);
           if ( bean instanceof TransformationRule ) {
                TransformationRule tr = (TransformationRule) bean;
                String appId = getApplicationId(tr);
                WebServiceConfigImpl wsc = new WebServiceConfigImpl (
                    (WebServiceEndpoint) tr.parent());
                TransformHandler trh = new TransformHandler( wsc , appId);
                Filter f = trh.getFilter(appId, wsc);
                TransformFilter tf = null;
                if ( f != null) {
                    tf = (TransformFilter) f;
View Full Code Here

Examples of com.sun.enterprise.config.serverbeans.VirtualServer.parent()

                    // For an UPDATE operation the class object is the
                    // virtual server whose attributes are being
                    // updated. Therefore the config is the parent of the
                    // parent of this object:
                final VirtualServer vs = (VirtualServer) cce.getClassObject();
                final Config config = (Config) vs.parent().parent();
                String name = cce.getName();
                String value = (String) cce.getObject();
                validateAttribute(name,value,config, result);
                    // IF the state is being turned off then this can only
                    // occur if there's no http-listener which has this
View Full Code Here

Examples of com.sun.jdi.ThreadGroupReference.parent()

   
    ThreadGroupReference parent=thread.threadGroup();
    while(parent!=null)
      {
      ret=parent.name() + "." + ret;
      parent=parent.parent();
      }
   
    return ret;
    }
 
View Full Code Here

Examples of com.sun.tools.internal.xjc.model.CClassInfo.parent()

            // build the body
            if(builder.getGlobalBinding().getFlattenClasses()==LocalScoping.NESTED)
                pushClassScope(bean);
            else
                pushClassScope(bean.parent());
            XSComponent oldRoot = currentRoot;
            CClassInfo oldBean = currentBean;
            currentRoot = sc;
            currentBean = bean;
            sc.visit(Ring.get(BindRed.class));
View Full Code Here

Examples of com.sun.tools.xjc.model.CClassInfo.parent()

    final CBuiltinLeafInfo doubleValue = CBuiltinLeafInfo.DOUBLE;

    final XSSchema schema = model.schemaComponent.getSchema("http://www.opengis.net/kml/2.2");

    LOG.info(XJCJavaForKmlApiPlugin.PLUGINNAME + " -------Icon properties ------------------");
    final CClassInfoParent cClassInfoParentLink = classLink.parent();

    final CClassInfo iconClass = new CClassInfo(model, cClassInfoParentLink, "Icon", null, new QName("Icon"), null, schema, new CCustomizations());
    iconClass.setBaseClass(classLink.getBaseClass());

    //fill icon class with the properties defined in link class
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.