Examples of IPortletEntity


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

            final HttpServletRequest httpServletRequest = pcs.getHttpServletRequest();
            final IPortletWindowId targetedPortletWindowId = this.portletRequestParameterManager.getTargetedPortletWindowId(httpServletRequest);
            if (targetedPortletWindowId != null) {
                final String channelSubscribeId = channelStaticData.getChannelSubscribeId();
                final IPerson person = channelStaticData.getPerson();
                final IPortletEntity portletEntity = this.portletEntityRegistry.getPortletEntity(channelSubscribeId, person.getID());
               
                final IPortletEntity targetParentPortletEntity = this.portletWindowRegistry.getParentPortletEntity(httpServletRequest, targetedPortletWindowId);
               
              
                if (portletEntity.getPortletEntityId().equals(targetParentPortletEntity.getPortletEntityId())) {
                    return targetedPortletWindowId;
                }

                this.logger.warn("Portlet window " + targetedPortletWindowId + " as target but window ID is not for the correct entity " + portletEntity);
            }
View Full Code Here

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

        }
       
        final IPortletDefinitionId portletDefinitionId = portletDefinition.getPortletDefinitionId();
        final String channelSubscribeId = channelStaticData.getChannelSubscribeId();
        final IPerson person = channelStaticData.getPerson();
        final IPortletEntity portletEntity = this.portletEntityRegistry.getOrCreatePortletEntity(portletDefinitionId, channelSubscribeId, person.getID());

        //Get/create the portlet window to init
        final HttpServletRequest httpServletRequest = portalControlStructures.getHttpServletRequest();
        final HttpServletResponse httpServletResponse = portalControlStructures.getHttpServletResponse();
       
View Full Code Here

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

        //If the expiration time since last render has not passed return true
        return lastRenderTime + (expirationCache * 1000) >= now;
    }

    protected PortletDD getPortletDD(final HttpServletRequest httpServletRequest, final IPortletWindowId portletWindowId) throws PortletContainerException {
        final IPortletEntity portletEntity = this.portletWindowRegistry.getParentPortletEntity(httpServletRequest, portletWindowId);
        final IPortletDefinition portletDefinition = this.portletEntityRegistry.getParentPortletDefinition(portletEntity.getPortletEntityId());
        return this.portletDefinitionRegistry.getParentPortletDescriptor(portletDefinition.getPortletDefinitionId());
    }
View Full Code Here

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

    public void portalEvent(ChannelStaticData channelStaticData, PortalControlStructures portalControlStructures, PortalEvent portalEvent) {
        switch (portalEvent.getEventNumber()) {
            case PortalEvent.UNSUBSCRIBE: {
                final String channelSubscribeId = channelStaticData.getChannelSubscribeId();
                final IPerson person = channelStaticData.getPerson();
                final IPortletEntity portletEntity = this.portletEntityRegistry.getPortletEntity(channelSubscribeId, person.getID());
               
                this.portletEntityRegistry.deletePortletEntity(portletEntity);
            }
            break;
           
View Full Code Here

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

        expect(portletDefinition.getPortletDefinitionId()).andReturn(portDef1);
       
        final IPortletDefinitionRegistry portletDefinitionRegistry = createMock(IPortletDefinitionRegistry.class);
        expect(portletDefinitionRegistry.getPortletDefinition(1)).andReturn(portletDefinition);
       
        final IPortletEntity portletEntity = createMock(IPortletEntity.class);
       
        final IPortletEntityRegistry portletEntityRegistry = createMock(IPortletEntityRegistry.class);
        expect(portletEntityRegistry.getOrCreatePortletEntity(portDef1, "sub1", 1)).andReturn(portletEntity);
       
        final IPortletWindowId portletWindowId = new MockPortletWindowId("win1");
View Full Code Here

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

       
       
        final IPortletEntityId portletEntityId = new MockPortletEntityId("ent1");
       
       
        final IPortletEntity portletEntity = createMock(IPortletEntity.class);
        expect(portletEntity.getPortletEntityId()).andReturn(portletEntityId);
       
       
        final IPortletEntityRegistry portletEntityRegistry = createMock(IPortletEntityRegistry.class);
        expect(portletEntityRegistry.getParentPortletDefinition(portletEntityId)).andReturn(portletDefinition);
View Full Code Here

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

       
       
        final IPortletEntityId portletEntityId = new MockPortletEntityId("ent1");
       
       
        final IPortletEntity portletEntity = createMock(IPortletEntity.class);
        expect(portletEntity.getPortletEntityId()).andReturn(portletEntityId);
       
       
        final IPortletEntityRegistry portletEntityRegistry = createMock(IPortletEntityRegistry.class);
        expect(portletEntityRegistry.getParentPortletDefinition(portletEntityId)).andReturn(portletDefinition);
View Full Code Here

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

       
       
        final IPortletEntityId portletEntityId = new MockPortletEntityId("ent1");
       
       
        final IPortletEntity portletEntity = createMock(IPortletEntity.class);
        expect(portletEntity.getPortletEntityId()).andReturn(portletEntityId);
       
       
        final IPortletEntityRegistry portletEntityRegistry = createMock(IPortletEntityRegistry.class);
        expect(portletEntityRegistry.getParentPortletDefinition(portletEntityId)).andReturn(portletDefinition);
View Full Code Here

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

       
       
        final IPortletEntityId portletEntityId = new MockPortletEntityId("ent1");
       
       
        final IPortletEntity portletEntity = createMock(IPortletEntity.class);
        expect(portletEntity.getPortletEntityId()).andReturn(portletEntityId);
       
       
        final IPortletEntityRegistry portletEntityRegistry = createMock(IPortletEntityRegistry.class);
        expect(portletEntityRegistry.getParentPortletDefinition(portletEntityId)).andReturn(portletDefinition);
View Full Code Here

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

       
       
        final IPortletEntityId portletEntityId = new MockPortletEntityId("ent1");
       
       
        final IPortletEntity portletEntity = createMock(IPortletEntity.class);
        expect(portletEntity.getPortletEntityId()).andReturn(portletEntityId);
       
       
        final IPortletEntityRegistry portletEntityRegistry = createMock(IPortletEntityRegistry.class);
        expect(portletEntityRegistry.getParentPortletDefinition(portletEntityId)).andReturn(portletDefinition);
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.