Package org.jasig.portal.layout.IStylesheetUserPreferencesService

Examples of org.jasig.portal.layout.IStylesheetUserPreferencesService.PreferencesScope


     */
    @Override
    public final CacheKey getCacheKey(HttpServletRequest request, HttpServletResponse response) {
        final CacheKeyBuilder<String, String> cacheKeyBuilder = CacheKey.builder(getName());
       
        final PreferencesScope stylesheetPreferencesScope = this.getStylesheetPreferencesScope(request);

        this.stylesheetUserPreferencesService.populateStylesheetParameters(request, stylesheetPreferencesScope, cacheKeyBuilder);
       
        this.stylesheetUserPreferencesService.populateOutputProperties(request, stylesheetPreferencesScope, cacheKeyBuilder);
       
View Full Code Here


    /* (non-Javadoc)
     * @see org.jasig.portal.rendering.xslt.TransformerConfigurationSource#getTransformerParameters(javax.servlet.http.HttpServletRequest, javax.servlet.http.HttpServletResponse)
     */
    @Override
    public final Map<String, Object> getParameters(HttpServletRequest request, HttpServletResponse response) {
        final PreferencesScope stylesheetPreferencesScope = this.getStylesheetPreferencesScope(request);
       
        final LinkedHashMap<String, Object> stylesheetParameters = new LinkedHashMap<String, Object>();
       
        this.stylesheetUserPreferencesService.populateStylesheetParameters(request, stylesheetPreferencesScope, new MapPopulator<String, String>(stylesheetParameters));

View Full Code Here

        return stylesheetParameters;
    }
   
    @Override
    public Properties getOutputProperties(HttpServletRequest request, HttpServletResponse response) {
        final PreferencesScope stylesheetPreferencesScope = this.getStylesheetPreferencesScope(request);
       
        final PropertiesPopulator outputProperties = this.stylesheetUserPreferencesService.populateOutputProperties(request, stylesheetPreferencesScope, new PropertiesPopulator());
        return outputProperties.getProperties();
    }
View Full Code Here

    @Override
    public final CacheKey getCacheKey(HttpServletRequest request, HttpServletResponse response) {
        final CacheKeyBuilder cacheKeyBuilder = CacheKey.builder(this.getName());
       
        final PreferencesScope preferencesScope = this.getStylesheetPreferencesScope(request);
       
        final IStylesheetDescriptor stylesheetDescriptor = this.stylesheetUserPreferencesService.getStylesheetDescriptor(request, preferencesScope);
       
        //Build key from stylesheet descriptor parameters
        for (final IStylesheetParameterDescriptor stylesheetParameterDescriptor : stylesheetDescriptor.getStylesheetParameterDescriptors()) {
View Full Code Here

        return cacheKeyBuilder.build();
    }
   
    @Override
    public final Map<String, Object> getParameters(HttpServletRequest request, HttpServletResponse response) {
        final PreferencesScope preferencesScope = this.getStylesheetPreferencesScope(request);
       
        final IStylesheetDescriptor stylesheetDescriptor = this.stylesheetUserPreferencesService.getStylesheetDescriptor(request, preferencesScope);
       
        //Build map of stylesheet descriptor parameters
        final LinkedHashMap<String, Object> parameters = new LinkedHashMap<String, Object>();
View Full Code Here

    @Override
    public final Iterator<Attribute> getAdditionalAttributes(HttpServletRequest request, HttpServletResponse response, StartElement event) {
        final IStylesheetDescriptor stylesheetDescriptor = this.getStylesheetDescriptor(request);
       
        final PreferencesScope stylesheetPreferencesScope = this.getStylesheetPreferencesScope(request);
       
        final Collection<Attribute> attributes = new LinkedList<Attribute>();
       
        for (final ILayoutAttributeDescriptor layoutAttributeDescriptor : stylesheetDescriptor.getLayoutAttributeDescriptors()) {
            final Set<String> targetElementNames = layoutAttributeDescriptor.getTargetElementNames();
View Full Code Here

        return attributes.iterator();
    }

    @Override
    public final CacheKey getCacheKey(HttpServletRequest request, HttpServletResponse response) {
        final PreferencesScope stylesheetPreferencesScope = this.getStylesheetPreferencesScope(request);
       
        final CacheKeyBuilder<String, String> cacheKeyBuilder = CacheKey.builder(this.name);
       
        final Iterable<String> layoutAttributeNodeIds = this.stylesheetUserPreferencesService.getAllLayoutAttributeNodeIds(request, stylesheetPreferencesScope);
        for (final String nodeId : layoutAttributeNodeIds) {
View Full Code Here

    public IStylesheetDescriptor getStylesheetDescriptor(HttpServletRequest request) {
        final IUserInstance userInstance = this.userInstanceManager.getUserInstance(request);
        final IUserPreferencesManager preferencesManager = userInstance.getPreferencesManager();
        final IUserProfile userProfile = preferencesManager.getUserProfile();
       
        final PreferencesScope stylesheetPreferencesScope = this.getStylesheetPreferencesScope(request);
        final int stylesheetId = stylesheetPreferencesScope.getStylesheetId(userProfile);
       
        return this.stylesheetDescriptorDao.getStylesheetDescriptor(stylesheetId);
    }
View Full Code Here

TOP

Related Classes of org.jasig.portal.layout.IStylesheetUserPreferencesService.PreferencesScope

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.