Package org.apache.pluto.om.common

Examples of org.apache.pluto.om.common.ObjectID


        return (ContentDispatcherCtrl)request.getContentDispatcher();
    }

    protected PortletWindow getPortletWindow(Fragment fragment) throws  FailedToRetrievePortletWindow
    {
        ObjectID oid = JetspeedObjectID.createFromString(fragment.getId());
                       
        PortletWindow portletWindow = windowAccessor.getPortletWindow(fragment);
        if (portletWindow == null)
        {
            throw new FailedToRetrievePortletWindow("Portlet Window creation failed for fragment: " + fragment.getId() + ", " + fragment.getName());
View Full Code Here


     * hold until it's completely rendered.
     * @throws FailedToRenderFragmentException if the Fragment to include could not be rendered.
     */
    public void include(Fragment fragment, HttpServletRequest req, HttpServletResponse rsp) throws FailedToRenderFragmentException
    {
        ObjectID oid = JetspeedObjectID.createFromString(fragment.getId());

        if ((debugLevel > 1) && log.isDebugEnabled())
        {
            log.debug("Including content for OID "+ oid);
        }
View Full Code Here

     * hold until it's completely rendered.
     * @throws FailedToRenderFragmentException if the Fragment to include could not be rendered.
     */
    public void include(Fragment fragment, javax.portlet.RenderRequest req, javax.portlet.RenderResponse rsp) throws FailedToRenderFragmentException
    {
        ObjectID oid = JetspeedObjectID.createFromString(fragment.getId());

        if ((debugLevel > 1) && log.isDebugEnabled())
        {
            log.debug("Including content for OID "+ oid);
        }
View Full Code Here

     * Sequentially wait on content generation
     * @see org.apache.jetspeed.aggregator.ContentDispatcher#sync(org.apache.jetspeed.om.page.Fragment)
     */
    public void sync(Fragment fragment)
    {
        ObjectID oid = JetspeedObjectID.createFromString(fragment.getId());

        PortletContent content = (PortletContent)contents.get(oid);
       
        synchronized (content)
        {
View Full Code Here

    }

    protected PortletWindow getPortletWindow( ContentFragment fragment ) throws FailedToRetrievePortletWindow, PortletEntityNotStoredException
    {

            ObjectID oid = JetspeedObjectID.createFromString(fragment.getId());

            PortletWindow portletWindow = windowAccessor.getPortletWindow(fragment);
            if (portletWindow == null)
            {
                throw new FailedToRetrievePortletWindow("Portlet Window creation failed for fragment: "
View Full Code Here

    }
   
    public HttpServletResponse getResponseForFragment( Fragment fragment, RequestContext request )
    {
        PortletContentImpl myContent = new PortletContentImpl();
        ObjectID oid = JetspeedObjectID.createFromString(fragment.getId());
       
        return getResponseForId(request, myContent, oid);
    }
View Full Code Here

     * @param fragment
     * @return
     */
    public PortletContent getPortletContent( Fragment fragment )
    {      
        ObjectID oid = JetspeedObjectID.createFromString(fragment.getId());
        PortletContentImpl content = (PortletContentImpl) contents.get(oid);
        return content;
    }
View Full Code Here

     */
    public MutablePortletEntity generateEntityFromFragment( ContentFragment fragment, String principal )
            throws PortletEntityNotGeneratedException
    {
        PortletDefinition pd = registry.getPortletDefinitionByUniqueName(fragment.getName());
        ObjectID entityKey = generateEntityKey(fragment, principal);
        MutablePortletEntity portletEntity = null;

        if (pd != null)
        {
            portletEntity = newPortletEntityInstance(pd);
            if (portletEntity == null)
            {
                throw new PortletEntityNotGeneratedException("Failed to create Portlet Entity for "
                        + fragment.getName());
            }
        }
        else
        {
            String msg = "Failed to retrieve Portlet Definition for " + fragment.getName();
            logger.warn(msg);
            portletEntity = new PortletEntityImpl(fragment);
            fragment.overrideRenderedContent(msg);
        }

        portletEntity.setId(entityKey.toString());

        return portletEntity;
    }
View Full Code Here

        }
    }

    public MutablePortletEntity getPortletEntity( String id )
    {
        ObjectID oid = JetspeedObjectID.createFromString(id);
        return getPortletEntity(oid);
    }
View Full Code Here

        if (dot < 0) {
            LOG.warn("ID does not contain '.' to separate application- and portlet-id: " + id);
            return null;
        }

        ObjectID appID =
            org.apache.pluto.portalImpl.util.ObjectID.createFromString(oid.substring(0, dot));

        PortletApplicationEntity appEntity = applications.get(appID);
        if (appEntity == null) {
            LOG.warn("Application not found: " + appID);
View Full Code Here

TOP

Related Classes of org.apache.pluto.om.common.ObjectID

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.