Package com.google.api.ads.dfp.v201308

Examples of com.google.api.ads.dfp.v201308.EnvironmentType


     * @return Environment
     */
    private EnvironmentType getEnvironment(JAXBElement jaxbElement) {
        Trace.tracePoint("Enter", "DependencyHelper.getEnvironment", jaxbElement);

        EnvironmentType environment = null;
        Object plan = jaxbElement.getValue();
        if (plan != null) {
            if (WebAppType.class.isInstance(plan)) {
                environment = ((WebAppType)plan).getEnvironment();
            }
View Full Code Here


     */
    private JAXBElement getJaxbElement(ArtifactType artifact) {
        Trace.tracePoint("Enter", "DependencyHelper.getJaxbElement", artifact);

        for (JAXBElement jaxbElement : inputJAXBElements) {
            EnvironmentType environment = getEnvironment(jaxbElement);
            if (environment != null) {
                ArtifactType jaxbArtifact = environment.getModuleId();
                if (artifact.equals(jaxbArtifact)) {
                    Trace.tracePoint("Exit ", "DependencyHelper.getJaxbElement", jaxbElement);
                    return jaxbElement;
                }
            }
View Full Code Here

  // return null;
  // }

  public static String getConfigId(IModule module) throws Exception {

    EnvironmentType environment = null;
    if (isWebModule(module)) {
      JAXBElement<WebAppType> webapptype=getWebDeploymentPlan(module);
      WebAppType plan = webapptype.getValue();
      if (plan != null)
        environment = plan.getEnvironment();
    } else if (isEjbJarModule(module)) {
      OpenejbJarType plan = getOpenEjbDeploymentPlan(module).getValue();
      // if (plan != null)
      // environment = plan.getEnvironment();
    } else if (isEarModule(module)) {
      ApplicationType plan = getApplicationDeploymentPlan(module).getValue();
      if (plan != null)
        environment = plan.getEnvironment();
    } else if (isRARModule(module)) {
      ConnectorType plan = getConnectorDeploymentPlan(module).getValue();
      if (plan != null)
        environment = plan.getEnvironment();
    }
    if (environment != null
              && environment.getModuleId() != null) {
              Trace.tracePoint("EXIT", "GeronimoV11Utils.getConfigId", getQualifiedConfigID(environment.getModuleId()));
              return getQualifiedConfigID(environment.getModuleId());
          }

    return getId(module);
  }
View Full Code Here

        if (eObject == null) {
            eObject = new String();
            JAXBElement plan = section.getPlan();

            EnvironmentType environment = null;
            environment = JAXBModelUtils.getEnvironment(plan, isServerEnvironment);
            if (environment == null) {
                environment = (EnvironmentType)getEFactory().create(EnvironmentType.class);
                JAXBModelUtils.setEnvironment (plan, environment, isServerEnvironment);
            }
View Full Code Here

    this.plan = (ApplicationClientType) plan.getValue();
    createClient();
  }

    protected EnvironmentType getEnvironment(boolean create) {
      EnvironmentType type = null;
        Object plan = getPlan().getValue();
        if (ApplicationClientType.class.isInstance(plan)) {
            type = ((ApplicationClientType) plan).getServerEnvironment();
            if (type == null && create) {
                type = getDeploymentObjectFactory().createEnvironmentType();
View Full Code Here

            }
        });
    }

    protected EnvironmentType getEnvironment(boolean create) {
        EnvironmentType type = null;
        Object plan = getPlan().getValue();
        if (ApplicationClientType.class.isInstance(plan)) {
            type = ((ApplicationClientType) plan).getClientEnvironment();
            if (type == null && create) {
                type = getDeploymentObjectFactory().createEnvironmentType();
View Full Code Here

            return moduleId.getType();
        return "";
    }

    protected boolean isInverseClassloading() {
        EnvironmentType type = getEnvironment(false);
        return type != null && type.getInverseClassloading() != null;
    }
View Full Code Here

        EnvironmentType type = getEnvironment(false);
        return type != null && type.getInverseClassloading() != null;
    }

    protected boolean isSuppressDefaultEnvironment() {
        EnvironmentType type = getEnvironment(false);
        return type != null && type.getSuppressDefaultEnvironment() != null;
    }
View Full Code Here

        return false;
    }

    protected void setInverseClassloading(boolean enable) {
        if (enable) {
            EnvironmentType type = getEnvironment(true);
            type.setInverseClassloading(getDeploymentObjectFactory().createEmptyType());
        } else {
            EnvironmentType type = getEnvironment(false);
            if (type != null) {
                type.setInverseClassloading(null);
            }
        }
    }
View Full Code Here

        }
    }

    protected void setSuppressDefaultEnvironment(boolean enable) {
        if (enable) {
            EnvironmentType type = getEnvironment(true);
            type.setSuppressDefaultEnvironment(getDeploymentObjectFactory().createEmptyType());
        } else {
            EnvironmentType type = getEnvironment(false);
            if (type != null) {
                type.setSuppressDefaultEnvironment(null);
            }
        }
    }
View Full Code Here

TOP

Related Classes of com.google.api.ads.dfp.v201308.EnvironmentType

Copyright © 2018 www.massapicom. 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.