Package org.apache.jetspeed.om.registry

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


    @see Portlet#supportsType
    */
    public boolean supportsType( MimeType mimeType )
    {
        // we now need to check that the control also supports the type...
        PortletControllerEntry entry =
                (PortletControllerEntry)Registry.getEntry(Registry.PORTLET_CONTROLLER,
                                                   getConfig().getName() );
        String baseType = mimeType.toString();

        if (entry!=null)
        {
            Iterator i = entry.listMediaTypes();

            while(i.hasNext())
            {
                String name = (String)i.next();
                MediaTypeEntry media = (MediaTypeEntry)Registry.getEntry(Registry.MEDIA_TYPE, name);
View Full Code Here


     * @return the created PortletController
     */
    public PortletController getController(String name)
    {
        PortletController pc = null;
        PortletControllerEntry entry = null;

        if (name != null)
        {
            entry = (PortletControllerEntry) Registry.getEntry(Registry.PORTLET_CONTROLLER, name);
        }

        Map params = null;

        try
        {
            if (entry == null)
            {
                if (name != null)
                {
                    pc = (PortletController) Class.forName(name).newInstance();
                    params = new Hashtable();
                }
            }
            else
            {
                pc = (PortletController) Class.forName(entry.getClassname()).newInstance();
                params = entry.getParameterMap();
            }
        }
        catch (Exception e)
        {
            logger.error("Unable to instanciate controller " + name + ", using default");
View Full Code Here

    @see Portlet#supportsType
    */
    public boolean supportsType( MimeType mimeType )
    {
        // we now need to check that the control also supports the type...
        PortletControllerEntry entry =
                (PortletControllerEntry)Registry.getEntry(Registry.PORTLET_CONTROLLER,
                                                   getConfig().getName() );
        String baseType = mimeType.toString();

        if (entry!=null)
        {
            Iterator i = entry.listMediaTypes();

            while(i.hasNext())
            {
                String name = (String)i.next();
                MediaTypeEntry media = (MediaTypeEntry)Registry.getEntry(Registry.MEDIA_TYPE, name);
View Full Code Here

     * @return the created PortletController
     */
    public PortletController getController(String name)
    {
        PortletController pc = null;
        PortletControllerEntry entry = null;

        if (name != null)
        {
            entry = (PortletControllerEntry) Registry.getEntry(Registry.PORTLET_CONTROLLER, name);
        }

        Map params = null;

        try
        {
            if (entry == null)
            {
                if (name != null)
                {
                    pc = (PortletController) Class.forName(name).newInstance();
                    params = new Hashtable();
                }
            }
            else
            {
                pc = (PortletController) Class.forName(entry.getClassname()).newInstance();
                params = entry.getParameterMap();
            }
        }
        catch (Exception e)
        {
            logger.error("Unable to instanciate controller " + name + ", using default");
View Full Code Here

            && (mode.equals(SecurityConstants.PARAM_MODE_DELETE)
                || mode.equals(SecurityConstants.PARAM_MODE_UPDATE)))
        {
            String controllerName =
                rundata.getParameters().getString(registryEntryName);
            PortletControllerEntry controllerEntry =
                (PortletControllerEntry) Registry.getEntry(
                    registry,
                    controllerName);
            context.put("entry", controllerEntry);
        }
View Full Code Here

        RegistryEntry registryEntry)
        throws Exception
    {
        super.updateRegistryEntry(rundata, registryEntry);

        PortletControllerEntry controllerEntry =
            (PortletControllerEntry) registryEntry;
        String className = rundata.getParameters().getString("class_name");
        if (hasChanged(controllerEntry.getClassname(), className))
        {
            controllerEntry.setClassname(className);
        }
    }
View Full Code Here

    @see Portlet#supportsType
    */
    public boolean supportsType( MimeType mimeType )
    {
        // we now need to check that the control also supports the type...
        PortletControllerEntry entry =
                (PortletControllerEntry)Registry.getEntry(Registry.PORTLET_CONTROLLER,
                                                   getConfig().getName() );
        String baseType = mimeType.toString();

        if (entry!=null)
        {
            Iterator i = entry.listMediaTypes();

            while(i.hasNext())
            {
                String name = (String)i.next();
                MediaTypeEntry media = (MediaTypeEntry)Registry.getEntry(Registry.MEDIA_TYPE, name);
View Full Code Here

     * @return the created PortletController
     */
    public PortletController getController(String name)
    {
        PortletController pc = null;
        PortletControllerEntry entry = null;

        if (name != null)
        {
            entry = (PortletControllerEntry) Registry.getEntry(Registry.PORTLET_CONTROLLER, name);
        }

        Map params = null;

        try
        {
            if (entry == null)
            {
                if (name != null)
                {
                    pc = (PortletController) Class.forName(name).newInstance();
                    params = new Hashtable();
                }
            }
            else
            {
                pc = (PortletController) Class.forName(entry.getClassname()).newInstance();
                params = entry.getParameterMap();
            }
        }
        catch (Exception e)
        {
            Log.error("Unable to instanciate controller " + name + ", using default");
View Full Code Here

            if(mode.equals(SecurityConstants.PARAM_MODE_DELETE)
                || mode.equals(SecurityConstants.PARAM_MODE_UPDATE))
            {
                String controllerName =
                    rundata.getParameters().getString(registryEntryName);
                PortletControllerEntry controllerEntry =
                    (PortletControllerEntry) Registry.getEntry(
                        registry,
                        controllerName);
                context.put("entry", controllerEntry);
            }
View Full Code Here

        RegistryEntry registryEntry)
        throws Exception
    {
        super.updateRegistryEntry(rundata, registryEntry);

        PortletControllerEntry controllerEntry =
            (PortletControllerEntry) registryEntry;
        String className = rundata.getParameters().getString("class_name");
        if (hasChanged(controllerEntry.getClassname(), className))
        {
            controllerEntry.setClassname(className);
        }
    }
View Full Code Here

TOP

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

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.