Examples of SkinService


Examples of org.exoplatform.portal.resource.SkinService

     * The collection contains:
     * - portal skin modules <br/>
     * - skin for specific site<br/>
     */
    public Collection<Skin> getPortalSkins() {
        SkinService skinService = getApplicationComponent(SkinService.class);

        //
        Collection<Skin> skins = new ArrayList<Skin>(skinService.getPortalSkins(skin_));

        //
        SkinConfig skinConfig = skinService.getSkin(Util.getUIPortal().getName(), skin_);
        if (skinConfig != null) {
            skins.add(skinConfig);
        }

        return skins;
View Full Code Here

Examples of org.exoplatform.portal.resource.SkinService

    public void setSkin(String skin) {
        this.skin_ = skin;
    }

    private SkinConfig getSkin(String module, String skin) {
        SkinService skinService = getApplicationComponent(SkinService.class);
        return skinService.getSkin(module, skin);
    }
View Full Code Here

Examples of org.exoplatform.portal.resource.SkinService

        List<Skin> portletSkins = new ArrayList<Skin>();
        //
        Set<SkinConfig> portalPortletSkins = getPortalPortletSkins();
        // don't merge portlet if portlet not available
        if (!portalPortletSkins.isEmpty()) {
            SkinService skinService = getApplicationComponent(SkinService.class);
            portletSkins.add(skinService.merge(portalPortletSkins));
        }

        //
        for (UIPortlet uiPortlet : uiportlets) {
            SkinConfig skinConfig = getPortletSkinConfig(uiPortlet);
View Full Code Here

Examples of org.exoplatform.portal.resource.SkinService

                    uiContainer.findComponentOfType(uiportlets, UIPortlet.class);
                }
            }
        }
        List<SkinConfig> skins = new ArrayList<SkinConfig>();
        SkinService skinService = getApplicationComponent(SkinService.class);
        for (UIPortlet uiPortlet : uiportlets) {
            String skinId = uiPortlet.getSkinId();
            if (skinId != null) {
                SkinConfig skinConfig = skinService.getSkin(skinId, skin_);
                if (skinConfig != null)
                    skins.add(skinConfig);
            }
        }
        StringBuilder b = new StringBuilder(1000);
View Full Code Here

Examples of org.exoplatform.portal.resource.SkinService

      addUIFormInput(uiSettingSet);
      UIFormInputIconSelector uiIconSelector = new UIFormInputIconSelector("Icon", "icon");
      addUIFormInput(uiIconSelector);

      UIFormInputThemeSelector uiThemeSelector = new UIFormInputThemeSelector(FIELD_THEME, null);
      SkinService skinService = getApplicationComponent(SkinService.class);
      uiThemeSelector.getChild(UIItemThemeSelector.class).setValues(skinService.getPortletThemes());
      addUIFormInput(uiThemeSelector);

      UIListPermissionSelector uiListPermissionSelector = createUIComponent(UIListPermissionSelector.class, null, null);
      uiListPermissionSelector.configure("UIAccessPermission", "accessPermissions");
      uiListPermissionSelector.addValidator(EmptyIteratorValidator.class);
View Full Code Here

Examples of org.exoplatform.portal.resource.SkinService

      if (!isPortalExist(editPortal))
      {
         return;
      }
     
      SkinService skinService = getApplicationComponent(SkinService.class);
      skinService.invalidatePortalSkinCache(editPortal.getName(), editPortal.getSkin());
      try
      {
         dataStorage.save(portalConfig);
      }
      catch (StaleModelException ex)
View Full Code Here

Examples of org.exoplatform.portal.resource.SkinService

      return service.getAvailableScriptsPaths();
   }

   public Collection<Skin> getPortalSkins()
   {
      SkinService skinService = getApplicationComponent(SkinService.class);

      //
      Collection<Skin> skins = new ArrayList<Skin>(skinService.getPortalSkins(skin_));

      //
      SkinConfig skinConfig = skinService.getSkin(Util.getUIPortal().getName(), skin_);
      if (skinConfig != null)
      {
         skins.add(skinConfig);
      }

      //
      Set<SkinConfig> portletConfigs = getPortalPortletSkins();
      // don't merge portlet if portlet not available
      if (!portletConfigs.isEmpty())
      {
         skins.add(skinService.merge(portletConfigs));
      }
      //
      return skins;
   }
View Full Code Here

Examples of org.exoplatform.portal.resource.SkinService

      this.skin_ = skin;
   }

   private SkinConfig getSkin(String module, String skin)
   {
      SkinService skinService = getApplicationComponent(SkinService.class);
      return skinService.getSkin(module, skin);
   }
View Full Code Here

Examples of org.exoplatform.portal.resource.SkinService

               uiContainer.findComponentOfType(uiportlets, UIPortlet.class);
            }
         }
      }
      List<SkinConfig> skins = new ArrayList<SkinConfig>();
      SkinService skinService = getApplicationComponent(SkinService.class);
      for (UIPortlet uiPortlet : uiportlets)
      {
         String skinId = uiPortlet.getSkinId();
         if (skinId != null)
         {
            SkinConfig skinConfig = skinService.getSkin(skinId, skin_);
            if (skinConfig != null)
               skins.add(skinConfig);
         }
      }
      StringBuilder b = new StringBuilder(1000);
View Full Code Here

Examples of org.exoplatform.portal.resource.SkinService

            StringLengthValidator.class, 3, 30).addValidator(IdentifierValidator.class).setEditable(false))
         .addUIFormInput(
            new UIFormSelectBox(FIELD_LOCALE, FIELD_LOCALE, languages).addValidator(MandatoryValidator.class));

      List<SelectItemOption<String>> listSkin = new ArrayList<SelectItemOption<String>>();
      SkinService skinService = getApplicationComponent(SkinService.class);
      for (String skin : skinService.getAvailableSkinNames())
      {
         SelectItemOption<String> skinOption = new SelectItemOption<String>(skin, skin);
         listSkin.add(skinOption);
      }
      listSkin.get(0).setSelected(true);
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.