Examples of IUserPreferencesManager


Examples of org.jasig.portal.IUserPreferencesManager

        this.parseSingleTargetEvent(request, response, "uP_detach_target", PortalEvent.DETACH_BUTTON, channelManager);


        final IPerson person = userInstance.getPerson();
        final IUserPreferencesManager preferencesManager = userInstance.getPreferencesManager();
        final IUserLayoutManager userLayoutManager = preferencesManager.getUserLayoutManager();
        final UserPreferences userPreferences = preferencesManager.getUserPreferences();

       
        final StructureStylesheetUserPreferences structureStylesheetUserPreferences = userPreferences.getStructureStylesheetUserPreferences();
        final ThemeStylesheetUserPreferences themeStylesheetUserPreferences = userPreferences.getThemeStylesheetUserPreferences();
       
View Full Code Here

Examples of org.jasig.portal.IUserPreferencesManager

    this.internalState = new GBrowseState(this);
  }

  protected IUserLayoutManager getUserLayoutManager() throws PortalException {
      if(this.ulm==null) {
          IUserPreferencesManager upm = context.getUserPreferencesManager();
          // If the we are editing the current user layout, get a copy of the current user layout,
          // otherwise get it from the database or other persistant storage
          if (modifyingCurrentUserLayout()) {
              // get it from the preferences manager
              this.ulm=upm.getUserLayoutManager();
          else {
              // construct a new one
              this.ulm=UserLayoutManagerFactory.getUserLayoutManager(upm.getPerson(),context.getCurrentUserPreferences().getProfile());
          }
      }
      return this.ulm;
  }
View Full Code Here

Examples of org.jasig.portal.IUserPreferencesManager

    this.internalState = new GBrowseState(this);
  }

  protected IUserLayoutManager getUserLayoutManager() throws PortalException {
      if(this.ulm==null) {
          IUserPreferencesManager upm = context.getUserPreferencesManager();
          // If the we are editing the current user layout, get a copy of the current user layout,
          // otherwise get it from the database or other persistant storage
          if (modifyingCurrentUserLayout()) {
              // get it from the preferences manager
              this.ulm=upm.getUserLayoutManager();
          else {
              // construct a new one
              this.ulm=UserLayoutManagerFactory.getUserLayoutManager(upm.getPerson(),context.getCurrentUserPreferences().getProfile());
      }
    }
      return this.ulm;
  }
View Full Code Here

Examples of org.jasig.portal.IUserPreferencesManager

     */
    protected String getTargetChannelId(IWritableHttpServletRequest request) {
        String targetChannelId = null;
       
        final IUserInstance userInstance = this.userInstanceManager.getUserInstance(request);
        final IUserPreferencesManager userPreferencesManager = userInstance.getPreferencesManager();
        final IUserLayoutManager userLayoutManger = userPreferencesManager.getUserLayoutManager();

        // see if this is targeted at an fname channel. if so then it takes
        // precedence. This is done so that a baseActionURL can be used for
        // the basis of an fname targeted channel with the fname query parm
        // appended to direct all query parms to the fname channel
View Full Code Here

Examples of org.jasig.portal.IUserPreferencesManager

       
       
        final IPortletWindowRegistry portletWindowRegistry = createMock(IPortletWindowRegistry.class);
        final IUserInstanceManager userInstanceManager = createMock(IUserInstanceManager.class);
        final IUserInstance userInstance = createMock(IUserInstance.class);
        final IUserPreferencesManager userPreferencesManager = createMock(IUserPreferencesManager.class);
        final IUserLayoutManager userLayoutManager = createMock(IUserLayoutManager.class);
        final IUserLayoutChannelDescription userLayoutChannelDescription = createMock(IUserLayoutChannelDescription.class);
        final IPortletDefinitionRegistry portletDefinitionRegistry = createMock(IPortletDefinitionRegistry.class);
        final IPortletDefinition portletDefinition = createMock(IPortletDefinition.class);
        final IChannelDefinition channelDefinition = createMock(IChannelDefinition.class);
        final IPerson person = createMock(IPerson.class);
        final IPortletEntityRegistry portletEntityRegistry = createMock(IPortletEntityRegistry.class);
        final IPortletEntity portletEntity = createMock(IPortletEntity.class);
        final IPortletWindow portletWindow = createMock(IPortletWindow.class);
       
        final MockPortletDefinitionId portletDefinitionId = new MockPortletDefinitionId("42");
        final MockPortletEntityId portletEntityId = new MockPortletEntityId("subId1");
        final MockPortletWindowId portletWindowId = new MockPortletWindowId("windowId1");
       
        expect(userInstanceManager.getUserInstance(request)).andReturn(userInstance);
        expect(userInstance.getPreferencesManager()).andReturn(userPreferencesManager);
        expect(userPreferencesManager.getUserLayoutManager()).andReturn(userLayoutManager);
        expect(userLayoutManager.getSubscribeId("my-info-student-center-home")).andReturn("subId1");
        expect(userLayoutManager.getNode("subId1")).andReturn(userLayoutChannelDescription);
        expect(userLayoutChannelDescription.getChannelPublishId()).andReturn("42");
        expect(portletDefinitionRegistry.getPortletDefinition(42)).andReturn(portletDefinition);
        expect(portletDefinition.getChannelDefinition()).andReturn(channelDefinition);
View Full Code Here

Examples of org.jasig.portal.IUserPreferencesManager

    this.internalState = new GBrowseState(this);
  }

  protected IUserLayoutManager getUserLayoutManager() throws PortalException {
      if(this.ulm==null) {
          IUserPreferencesManager upm = context.getUserPreferencesManager();
          // If the we are editing the current user layout, get a copy of the current user layout,
          // otherwise get it from the database or other persistant storage
          if (modifyingCurrentUserLayout()) {
              // get it from the preferences manager
              this.ulm=upm.getUserLayoutManager();
          else {
              // construct a new one
              this.ulm=UserLayoutManagerFactory.getUserLayoutManager(upm.getPerson(),context.getCurrentUserPreferences().getProfile());
      }
    }
      return this.ulm;
  }
View Full Code Here

Examples of org.jasig.portal.IUserPreferencesManager

    this.internalState = new GBrowseState(this);
  }

  protected IUserLayoutManager getUserLayoutManager() throws PortalException {
      if(this.ulm==null) {
          IUserPreferencesManager upm = context.getUserPreferencesManager();
          // If the we are editing the current user layout, get a copy of the current user layout,
          // otherwise get it from the database or other persistant storage
          if (modifyingCurrentUserLayout()) {
              // get it from the preferences manager
              this.ulm=upm.getUserLayoutManager();
          else {
              // construct a new one
              this.ulm=UserLayoutManagerFactory.getUserLayoutManager(upm.getPerson(),context.getCurrentUserPreferences().getProfile());
          }
      }
      return this.ulm;
  }
View Full Code Here

Examples of org.jasig.portal.IUserPreferencesManager

  // Helper methods...

  private final IUserLayoutManager getUserLayoutManager() throws Exception
  {
    IUserPreferencesManager upm = context.getUserPreferencesManager();
    IUserLayoutManager lm=null;
    // If the we are editing the current user layout, get a copy of the current user layout,
    // otherwise get it from the database or other persistant storage
    if (modifyingCurrentUserLayout()) {
        // get it from the preferences manager
        lm=upm.getUserLayoutManager();
    else {
        // construct a new one
        lm=UserLayoutManagerFactory.getUserLayoutManager(upm.getPerson(),context.getCurrentUserPreferences().getProfile());
    }
    return lm;
  }
View Full Code Here

Examples of org.jasig.portal.IUserPreferencesManager

          ulm.saveUserLayout();
  }

  private void saveUserPreferences () throws PortalException
  {
    IUserPreferencesManager upm = context.getUserPreferencesManager();
    if (modifyingCurrentUserLayout()) {
        upm.setNewUserLayoutAndUserPreferences(null, userPrefs);
    } else {
      try {
        ulStore.putUserPreferences(staticData.getPerson(), userPrefs);
      } catch (Exception e) {
        throw new PortalException(e);
View Full Code Here

Examples of org.jasig.portal.IUserPreferencesManager

  // Helper methods...

  private final IUserLayoutManager getUserLayoutManager() throws Exception
  {
    IUserPreferencesManager upm = context.getUserPreferencesManager();
    IUserLayoutManager lm=null;
    // If the we are editing the current user layout, get a copy of the current user layout,
    // otherwise get it from the database or other persistant storage
    if (modifyingCurrentUserLayout()) {
        // get it from the preferences manager
        lm=upm.getUserLayoutManager();
    else {
        // construct a new one
        lm=UserLayoutManagerFactory.getUserLayoutManager(upm.getPerson(),context.getCurrentUserPreferences().getProfile());
    }
    return lm;
  }
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.