Examples of PortalConfiguration


Examples of org.apache.jetspeed.administration.PortalConfiguration

{
    protected String guest = "guest";
   
    public void init(FilterConfig filterConfig) throws ServletException
    {
        PortalConfiguration config = Jetspeed.getConfiguration();
        if (config != null)
            guest = config.getString("default.user.principal");               
    }
View Full Code Here

Examples of org.apache.jetspeed.administration.PortalConfiguration

    protected String guest = "guest";
   
    public PortletActionSecurityConstraintsBehavior(PageManager pageManager)
    {
        super(pageManager);
        PortalConfiguration config = Jetspeed.getConfiguration();
        if (config != null)
        {
            guest = config.getString("default.user.principal");
        }
    }
View Full Code Here

Examples of org.apache.jetspeed.administration.PortalConfiguration

{
    protected String guest = "guest";
   
    public void init(FilterConfig filterConfig) throws ServletException
    {
        PortalConfiguration config = Jetspeed.getConfiguration();
        if (config != null)
            guest = config.getString("default.user.principal");               
    }
View Full Code Here

Examples of org.apache.jetspeed.administration.PortalConfiguration

        if (null == windowAccess)
        {
            throw new PortletException("Failed to find the Window Access on portlet initialization");
        }       

        PortalConfiguration portalConfiguration = (PortalConfiguration) getPortletContext().getAttribute(CommonPortletServices.CPS_PORTAL_CONFIGURATION);
        if (null == portalConfiguration)
        {
            throw new PortletException("Failed to find the Portal Configuration on portlet initialization");
        }       
        storeViewPageInSession = portalConfiguration.getBoolean("layout.page.storeViewPageInSession", true);
       
        templateLocator = (TemplateLocator) getPortletContext().getAttribute("TemplateLocator");
        decorationLocator = (TemplateLocator) getPortletContext().getAttribute("DecorationLocator");
    }
View Full Code Here

Examples of org.apache.jetspeed.administration.PortalConfiguration

    {
        // lazily access configured guest principal name
        if (guestPrincipalName == null)
        {
            guestPrincipalName = DEFAULT_GUEST_PRINCIPAL_NAME;
            PortalConfiguration config = Jetspeed.getConfiguration();
            if (config != null)
            {
                String configGuestPrincipalName = config.getString("default.user.principal");
                if (configGuestPrincipalName != null)
                {
                    guestPrincipalName = configGuestPrincipalName;
                }
            }
View Full Code Here

Examples of org.apache.jetspeed.administration.PortalConfiguration

      this( pageManager, Boolean.FALSE );
    }
    public PortletActionSecurityConstraintsBehavior(PageManager pageManager, Boolean enableCreateUserPagesFromRolesOnEdit )
    {
        super( pageManager, enableCreateUserPagesFromRolesOnEdit );
        PortalConfiguration config = Jetspeed.getConfiguration();
        if (config != null)
        {
            guest = config.getString("default.user.principal");
        }
    }
View Full Code Here

Examples of org.apache.jetspeed.administration.PortalConfiguration

{
    protected String guest = "guest";
   
    public void init(FilterConfig filterConfig) throws ServletException
    {
        PortalConfiguration config = Jetspeed.getConfiguration();
        if (config != null)
            guest = config.getString("default.user.principal");               
    }
View Full Code Here

Examples of org.apache.jetspeed.administration.PortalConfiguration

      this( pageManager, Boolean.FALSE );
    }
    public PortletActionSecurityConstraintsBehavior(PageManager pageManager, Boolean enableCreateUserPagesFromRolesOnEdit )
    {
        super( pageManager, enableCreateUserPagesFromRolesOnEdit );
        PortalConfiguration config = Jetspeed.getConfiguration();
        if (config != null)
        {
            guest = config.getString("default.user.principal");
        }
    }
View Full Code Here

Examples of org.apache.jetspeed.administration.PortalConfiguration

        if (null == jptFactory)
        {
            throw new PortletException("Failed to find the JPT Factory on portlet initialization");
        }       
       
        PortalConfiguration portalConfiguration = (PortalConfiguration) getPortletContext().getAttribute(CommonPortletServices.CPS_PORTAL_CONFIGURATION);
        if (null == portalConfiguration)
        {
            throw new PortletException("Failed to find the Portal Configuration on portlet initialization");
        }       
        storeViewPageInSession = portalConfiguration.getBoolean("layout.page.storeViewPageInSession", true);
       
        templateLocator = (TemplateLocator) getPortletContext().getAttribute("TemplateLocator");
        decorationLocator = (TemplateLocator) getPortletContext().getAttribute("DecorationLocator");
    }
View Full Code Here

Examples of org.apache.jetspeed.administration.PortalConfiguration

   
    @Override
    public void setUp() throws Exception
    {
        this.portletFactory = new JetspeedPortletFactory(new RequestDispatcherServiceImpl(), true, true);
        PortalConfiguration configuration = (PortalConfiguration) DelegatingObjectProxy.createProxy(new Class [] { PortalConfiguration.class },
                                                                                                    new MockPortalConfiguration());
        PortalContext portalContext = (PortalContext) DelegatingObjectProxy.createProxy(new Class [] { PortalContext.class },
                                                                                        new MockPortalContext(configuration));
        this.portletFactory.setPortalContext(portalContext);       
    }
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.