Examples of ServiceType


Examples of org.apache.airavata.schemas.gfac.ServiceType

    }

    public String getWSDL(ServiceDescription service) {
        try {
           
            ServiceType type = service.getType().addNewService();
            ServiceName name = type.addNewServiceName();
            name.setStringValue(service.getType().getName());
            name.setTargetNamespace("http://schemas.airavata.apache.org/gfac/type");
           
            PortTypeType portType = service.getType().addNewPortType();
            MethodType methodType = portType.addNewMethod();
View Full Code Here

Examples of org.apache.airavata.schemas.gfac.ServiceType

    }

    public String getWSDL(ServiceDescription service) throws Exception{
        try {
           
            ServiceType type = service.getType().addNewService();
            ServiceName name = type.addNewServiceName();
            name.setStringValue(service.getType().getName());
            name.setTargetNamespace("http://schemas.airavata.apache.org/gfac/type");
            if(service.getType().getPortType() == null){
                PortTypeType portType = service.getType().addNewPortType();
                MethodType methodType = portType.addNewMethod();
View Full Code Here

Examples of org.apache.curator.x.discovery.ServiceType

            if (payload != null) {
                builder.payload(payload);
            }
        }
        {
            final ServiceType serviceType = getObject(rootNode, "serviceType", ServiceType.class);
            if (serviceType != null) {
                builder.serviceType(serviceType);
            }
        }
        {
View Full Code Here

Examples of org.apache.geronimo.deployment.xbeans.ServiceType

        }
        if (targetDir == null) {
            throw new RuntimeException("No target directory supplied");
        }
        ServiceDocument serviceDocument = ServiceDocument.Factory.newInstance();
        ServiceType serviceType = serviceDocument.addNewService();
        for (Iterator iterator = artifacts.iterator(); iterator.hasNext();) {
            Artifact artifact = (Artifact) iterator.next();
            Dependency dependency = artifact.getDependency();
            if ("true".equals(dependency.getProperty(DEPENDENCY_PROPERTY))) {
                String groupId = dependency.getGroupId();
                String artifactId = dependency.getArtifactId();
                String type = dependency.getType();
                org.apache.geronimo.deployment.xbeans.ArtifactType dependencyType = serviceType.addNewDependency();
                dependencyType.setGroupId(groupId);
                dependencyType.setArtifactId(artifactId);
                if ("true".equals(dependency.getProperty(KEEP_VERSION_PROPERTY))) {
                    String version = dependency.getVersion();
                    dependencyType.setVersion(version);
                }
                if (type != null && !"jar".equals(type)) {
                    dependencyType.setType(type);
                }
            }
        }

        if (serviceType.getDependencyArray().length > 0) {
            File targetDir = new File(this.targetDir);
            if (targetDir.exists()) {
                if (!targetDir.isDirectory()) {
                    throw new RuntimeException("TargetDir: " + this.targetDir + " exists and is not a directory");
                }
View Full Code Here

Examples of org.apache.geronimo.deployment.xbeans.ServiceType

        }
        if (targetDir == null) {
            throw new RuntimeException("No target directory supplied");
        }
        ServiceDocument serviceDocument = ServiceDocument.Factory.newInstance();
        ServiceType serviceType = serviceDocument.addNewService();
        for (Iterator iterator = artifacts.iterator(); iterator.hasNext();) {
            Artifact artifact = (Artifact) iterator.next();
            Dependency dependency = artifact.getDependency();
            if ("true".equals(dependency.getProperty(DEPENDENCY_PROPERTY))) {
                String groupId = dependency.getGroupId();
                String artifactId = dependency.getArtifactId();
                String type = dependency.getType();
                org.apache.geronimo.deployment.xbeans.ArtifactType dependencyType = serviceType.addNewDependency();
                dependencyType.setGroupId(groupId);
                dependencyType.setArtifactId(artifactId);
                if ("true".equals(dependency.getProperty(KEEP_VERSION_PROPERTY))) {
                    String version = dependency.getVersion();
                    dependencyType.setVersion(version);
                }
                if (type != null && !"jar".equals(type)) {
                    dependencyType.setType(type);
                }
            }
        }

        if (serviceType.getDependencyArray().length > 0) {
            File targetDir = new File(this.targetDir);
            if (targetDir.exists()) {
                if (!targetDir.isDirectory()) {
                    throw new RuntimeException("TargetDir: " + this.targetDir + " exists and is not a directory");
                }
View Full Code Here

Examples of org.apache.geronimo.xml.ns.deployment_1.ServiceType

  public JAXBElement createServiceDeploymentPlan(IFile dpFile) throws Exception {
    Trace.tracePoint("Entry","V11DeploymentPlanCreationOperation.createServiceDeploymentPlan", dpFile);

    org.apache.geronimo.xml.ns.deployment_1.ObjectFactory artifactFactory = new org.apache.geronimo.xml.ns.deployment_1.ObjectFactory();
    ServiceType service = artifactFactory.createServiceType();

       
    JAXBElement jaxbElement = artifactFactory.createService(service);
    JAXBUtils.marshalDeploymentPlan(jaxbElement, dpFile);
View Full Code Here

Examples of org.ejbca.ui.web.admin.services.servicetypes.ServiceType

  public List getAvailableWorkers(){
    ArrayList retval = new ArrayList();
    Collection available = typeManager.getAvailableWorkerTypes();
    Iterator iter = available.iterator();
    while(iter.hasNext()){
      ServiceType next = (ServiceType) iter.next();
      String label = next.getName();
      if(next.isTranslatable()){
        label = (String) EjbcaJSFHelper.getBean().getText().get(next.getName());
      }
      retval.add(new SelectItem(next.getName(),label));
    }
   
    return retval;
  }
View Full Code Here

Examples of org.ejbca.ui.web.admin.services.servicetypes.ServiceType

    ArrayList retval = new ArrayList();
    WorkerType currentWorkerType = (WorkerType) typeManager.getServiceTypeByName(selectedWorker);
    Iterator iter = currentWorkerType.getCompatibleIntervalTypeNames().iterator();
    while(iter.hasNext()){
      String name = (String) iter.next();
      ServiceType next = typeManager.getServiceTypeByName(name);
      String label = name;
      if(next.isTranslatable()){
        label = (String) EjbcaJSFHelper.getBean().getText().get(name);
      }
     
      retval.add(new SelectItem(name,label));
    }
View Full Code Here

Examples of org.ejbca.ui.web.admin.services.servicetypes.ServiceType

    ArrayList retval = new ArrayList();
    WorkerType currentWorkerType = (WorkerType) typeManager.getServiceTypeByName(selectedWorker);
    Iterator iter = currentWorkerType.getCompatibleActionTypeNames().iterator();
    while(iter.hasNext()){
      String name = (String) iter.next();
      ServiceType next = typeManager.getServiceTypeByName(name);
      String label = name;
      if(next.isTranslatable()){
        label = (String) EjbcaJSFHelper.getBean().getText().get(name);
      }
      retval.add(new SelectItem(name,label));
    }   
    return retval;
View Full Code Here

Examples of org.exoplatform.services.common.ServiceConfig.ServiceType

      return get(clazz.getName(), clazz);
   }

   public static <T> T get(String id, Class<T> clazz)
   {
      ServiceType type = ServiceType.INSTANCE;
      ServiceConfig config = clazz.getAnnotation(ServiceConfig.class);
      if (config != null)
         type = config.type();
      return get(type, id, clazz);
   }
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.