Examples of ApplicationType


Examples of org.exoplatform.portal.config.model.ApplicationType

                uiInputSetList, 10);
        uiIterator.setPageList(pageList);
    }

    private List<Application> getApplicationByType(String typeName) throws Exception {
        ApplicationType type = ApplicationType.getType(typeName);
        if (ApplicationType.PORTLET == type) {
            return createApplicationsFromPortlets(false);
        } else if (ApplicationType.WSRP_PORTLET == type) {
            return createApplicationsFromPortlets(true);
        } else if (ApplicationType.GADGET == type) {
View Full Code Here

Examples of org.exoplatform.portal.config.model.ApplicationType

            String portletName = info.getName();
            Application app = new Application();
            app.setApplicationName(portletName);
            // app.setApplicationGroup(info.getApplicationName());
            ApplicationType appType;
            String contentId;
            String displayName = Util.getLocalizedStringValue(displayNameLS, portletName);
            if (remote) {
                appType = ApplicationType.WSRP_PORTLET;
                contentId = portlet.getContext().getId();
View Full Code Here

Examples of org.exoplatform.portal.config.model.ApplicationType

            else
            {
               Application app = null;
               UIApplicationList appList = uiApp.findFirstComponentOfType(UIApplicationList.class);
               app = appList.getApplication(sourceId);
               ApplicationType applicationType = app.getType();

               //
               UIPortlet uiPortlet = uiTarget.createUIComponent(UIPortlet.class, null, null);
               if (app.getDisplayName() != null)
               {
View Full Code Here

Examples of org.exoplatform.portal.config.model.ApplicationType

                    uiSource = uiContainer;
                } else {
                    Application app = null;
                    UIApplicationList appList = uiApp.findFirstComponentOfType(UIApplicationList.class);
                    app = appList.getApplication(sourceId);
                    ApplicationType applicationType = app.getType();

                    //
                    UIPortlet uiPortlet = uiTarget.createUIComponent(UIPortlet.class, null, null);
                    // Only setting title for Gadgets as it's using Portlet wrapper for displaying
                    if (app.getType().equals(ApplicationType.GADGET)) {
View Full Code Here

Examples of org.exoplatform.portal.config.model.ApplicationType

   protected void marshalModelObject(StaxWriter<Element> writer, ModelObject modelObject) throws XMLStreamException
   {
      if (modelObject instanceof Application)
      {
         Application application = (Application) modelObject;
         ApplicationType type = application.getType();
         if (ApplicationType.PORTLET == type)
         {
            marshalPortletApplication(writer, safeCast(application, Portlet.class));
         }
         else if (ApplicationType.GADGET == type)
View Full Code Here

Examples of org.ggf.schemas.jsdl.x2005.x11.jsdl.ApplicationType

    else return JSDLUtils.getOrCreatePOSIXApplication(value).getError().getStringValue();
  }
 
  public static void createGenericApplication(JobDefinitionType value, HpcApplicationDeploymentType appDepType) {
    if (appDepType.getApplicationName() != null) {
      ApplicationType appType = JSDLUtils.getOrCreateApplication(value);
      String appName = appDepType.getApplicationName()
          .getStringValue();
      appType.setApplicationName(appName);
      JSDLUtils.getOrCreateJobIdentification(value).setJobName(appName);
    }
  }
View Full Code Here

Examples of org.ggf.schemas.jsdl.x2005.x11.jsdl.ApplicationType

    return jobResources.getTotalResourceCount();
  }

  public static POSIXApplicationType getOrCreatePOSIXApplication(JobDefinitionType value) {
   
    ApplicationType application = getOrCreateApplication(value);
   
    if(getHPCProfileApplication(value) != null){
      //TODO handle: not creating POSIX element if HPCProfile already exists
      return getPOSIXApplication(value);
    }
   
    if (getPOSIXApplication(value) == null) {
      XmlCursor acursor = application.newCursor();
      acursor.toEndToken();
      acursor.insertElement(POSIX_APPLICATION);
      acursor.dispose();
    }
    return getPOSIXApplication(value);
View Full Code Here

Examples of org.ggf.schemas.jsdl.x2005.x11.jsdl.ApplicationType

  }

 
  public static SPMDApplicationType getOrCreateSPMDApplication(JobDefinitionType value) {
   
    ApplicationType application = getOrCreateApplication(value);
   
    if (getSPMDApplication(value) == null) {
      XmlCursor acursor = application.newCursor();
      acursor.toEndToken();
      acursor.insertElement(SPMD_APPLICATION);
      acursor.dispose();
    }
    return getSPMDApplication(value);
View Full Code Here

Examples of org.ggf.schemas.jsdl.x2005.x11.jsdl.ApplicationType

 
 
 
  public static HPCProfileApplicationType getOrCreateHPCProfileApplication(JobDefinitionType value) {

    ApplicationType application = getOrCreateApplication(value);
   
    if(getPOSIXApplication(value) != null){
      //TODO handle: creating HPC element if POSIX already exists
      return getHPCProfileApplication(value);
    }
   
    if (getHPCProfileApplication(value) == null) {
      XmlCursor acursor = application.newCursor();
      acursor.toEndToken();
      acursor.insertElement(HPC_PROFILE_APPLICATION);
      acursor.dispose();
    }
    return getHPCProfileApplication(value);
View Full Code Here

Examples of org.ggf.schemas.jsdl.x2005.x11.jsdl.ApplicationType

    else return JSDLUtils.getOrCreatePOSIXApplication(value).getError().getStringValue();
  }
 
  public static void createGenericApplication(JobDefinitionType value, HpcApplicationDeploymentType appDepType) {
    if (appDepType.getApplicationName() != null) {
      ApplicationType appType = JSDLUtils.getOrCreateApplication(value);
      String appName = appDepType.getApplicationName()
          .getStringValue();
      appType.setApplicationName(appName);
      JSDLUtils.getOrCreateJobIdentification(value).setJobName(appName);
    }
  }
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.