Package org.jasig.portal.portlet.om

Examples of org.jasig.portal.portlet.om.PortletCategory


       
        final List<PortletCategory> categories = new ArrayList<PortletCategory>();
        for (String categoryName : portletRep.getCategories()) {
            EntityIdentifier[] cats = GroupService.searchForGroups(categoryName, IGroupConstants.IS, IPortletDefinition.class);
           
            PortletCategory category = null;
            if (cats != null && cats.length > 0) {
                category = portletCategoryRegistry.getPortletCategory(cats[0].getKey());
            }
            else {
                category = portletCategoryRegistry.getPortletCategory(categoryName);
View Full Code Here


//      (principal, IPermission.PORTAL_FRAMEWORK, IPermission.CHANNEL_PUBLISHER_ACTIVITY, null);
    String owner = IPermission.PORTAL_PUBLISH;
   
    // retrieve the indicated channel from the channel registry store and
    // determine its current lifecycle state
    PortletCategory category = PortletCategoryRegistryLocator.getPortletCategoryRegistry().getPortletCategory(categoryId);
    if (category == null){
//      return doesPrincipalHavePermission(principal, owner,
//        IPermission.CHANNEL_MANAGER_APPROVED_ACTIVITY, target);
      throw new AuthorizationException("Unable to locate category " + categoryId);
    }   
View Full Code Here

    public PortletCategory getPortletCategory(String portletCategoryId) {
        IEntityGroup categoryGroup = GroupService.findGroup(portletCategoryId);
        if (categoryGroup == null) {
            return null;
        }
        PortletCategory category = new PortletCategory(portletCategoryId);
        category.setName(categoryGroup.getName());
        category.setDescription(categoryGroup.getDescription());
        category.setCreatorId(categoryGroup.getCreatorID());
        return category;
    }
View Full Code Here

        categoryGroup.setName( name ); // name cannot be null
        categoryGroup.setCreatorID( creatorId ); // creatorId cannot be null
        categoryGroup.setDescription( description );
        categoryGroup.update();
        String id = categoryGroup.getKey();
        PortletCategory cat = new PortletCategory(id);
        cat.setName( name );
        cat.setDescription( description );
        cat.setCreatorId( creatorId );
        return cat;
    }
View Full Code Here

      Locale[] locales = localeStore.getUserLocales(user);
      LocaleManager localeManager = new LocaleManager(user, locales);
      Locale locale = localeManager.getLocales()[0];
   
    // add the root category and all its children to the registry
    PortletCategory rootCategory = portletCategoryRegistry.getTopLevelPortletCategory();
    categories.add(addChildren(request, rootCategory, allChannels, user, type, locale));

      /*
       * uPortal historically has provided for a convention that channels
       * not in any category may potentially be viewed by users but may not
View Full Code Here

TOP

Related Classes of org.jasig.portal.portlet.om.PortletCategory

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.