Package org.apache.jetspeed.om.registry

Examples of org.apache.jetspeed.om.registry.MediaTypeRegistry


                "securitys",
                CustomizeSetAction.buildList(rundata, Registry.SECURITY));

            context.put("entry", portletEntry);
           
            MediaTypeRegistry mediaTypeReg = (MediaTypeRegistry)Registry.get(Registry.MEDIA_TYPE);
            context.put("media_types", iteratorToCollection(mediaTypeReg.listEntryNames()));
           
            if(portletEntry.getType() != null && portletEntry.getType().equals("ref"))
            {
                PortletEntry parentEntry = (PortletEntry) Registry.getEntry(Registry.PORTLET, portletEntry.getParent());
                if(parentEntry == null)
View Full Code Here


                (PortletControlEntry) Registry.getEntry(
                    registry,
                    controllerName);
            context.put("entry", controlEntry);

            MediaTypeRegistry mediaTypeReg =
                (MediaTypeRegistry) Registry.get(Registry.MEDIA_TYPE);
            context.put(
                "media_types",
                iteratorToCollection(mediaTypeReg.listEntryNames()));
        }
    }
View Full Code Here

                (PortletControlEntry) Registry.getEntry(
                    registry,
                    controllerName);
            context.put("entry", controlEntry);

            MediaTypeRegistry mediaTypeReg =
                (MediaTypeRegistry) Registry.get(Registry.MEDIA_TYPE);
            context.put(
                "media_types",
                iteratorToCollection(mediaTypeReg.listEntryNames()));
        }
    }
View Full Code Here

            (List) PortletSessionState.getAttribute(portlet, rundata, RESULTS);

        List categories = PortletFilter.buildCategoryList(portlets);
        context.put("categories", categories);

        MediaTypeRegistry mediaTypeReg =
            (MediaTypeRegistry) Registry.get(Registry.MEDIA_TYPE);

        ArrayList collection = new ArrayList();
        Iterator iter = mediaTypeReg.listEntryNames();
        while (iter.hasNext())
        {
            collection.add(iter.next());
        }
View Full Code Here

                "securitys",
                CustomizeSetAction.buildList(rundata, Registry.SECURITY));

            context.put("entry", portletEntry);
           
            MediaTypeRegistry mediaTypeReg = (MediaTypeRegistry)Registry.get(Registry.MEDIA_TYPE);
            context.put("media_types", iteratorToCollection(mediaTypeReg.listEntryNames()));
           
            if(portletEntry.getType() != null && portletEntry.getType().equals("ref"))
            {
                PortletEntry parentEntry = (PortletEntry) Registry.getEntry(Registry.PORTLET, portletEntry.getParent());
                if(parentEntry == null)
View Full Code Here

            String type = contentType.getContentType();
           
            log.info("Attempting to find media entry with mimetype " + type);
           
            //example:  content type text/html => media type html
            MediaTypeRegistry mediaRegistry = (MediaTypeRegistry) Registry.get(Registry.MEDIA_TYPE);
            Enumeration en = mediaRegistry.getEntries();
            while(en.hasMoreElements())
            {
                MediaTypeEntry mte = (MediaTypeEntry)en.nextElement();

                //TODO:  the type can have wildcards, will REGEXP handle this?
View Full Code Here

                context.put("entry", controllerEntry);
            }
           
            if(mode.equals(SecurityConstants.PARAM_MODE_UPDATE))
            {
                MediaTypeRegistry mediaTypeReg = (MediaTypeRegistry)Registry.get(Registry.MEDIA_TYPE);
                context.put("media_types", iteratorToCollection(mediaTypeReg.listEntryNames()));
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.jetspeed.om.registry.MediaTypeRegistry

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.