Package org.exoplatform.portal.config.model

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


      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)
View Full Code Here


         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;
View Full Code Here

*/
public abstract class AbstractMarshaller<T> implements Marshaller<T> {
    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) {
                marshalGadgetApplication(writer, safeCast(application, Gadget.class));
            } else if (ApplicationType.WSRP_PORTLET == type) {
View Full Code Here

                    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

                    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

                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

            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

            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

                    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

   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

TOP

Related Classes of org.exoplatform.portal.config.model.ApplicationType

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.