Package org.jasig.portal

Examples of org.jasig.portal.IPortletPreferencesStore


        this.preferences = preferences;
    }
   
    public void loadPreferences() throws IOException {
        try {
            IPortletPreferencesStore portletPrefsStore = PortletPreferencesStoreFactory.getPortletPreferencesStoreImpl();
            PreferenceSet publishPreferences = portletPrefsStore.getDefinitionPreferences(channelDefinition.getId());
           
            ((PreferenceSetImpl)preferences).addAll(publishPreferences);
        } catch (Exception e) {
            log.error("Could not load portlet definition preferences", e);
View Full Code Here


        this.portletDefinition = portletDefinition;
    }

    public void store() throws IOException {
        try {
            IPortletPreferencesStore portletPrefsStore = PortletPreferencesStoreFactory.getPortletPreferencesStoreImpl();
            int userId = person.getID();
            int layoutId = Integer.parseInt(layout.getId());
            String channelDescId = channelDescription.getId();
            portletPrefsStore.setEntityPreferences(userId, layoutId, channelDescId, preferences);
           
            // Save preferences as original preferences     
            originalPreferences = new PreferenceSetImpl();  
            ((PreferenceSetImpl)originalPreferences).addAll(preferences);
           
View Full Code Here

        this.preferences = preferences;
    }
   
    public void loadPreferences() throws IOException {
        try {
            IPortletPreferencesStore portletPrefsStore = PortletPreferencesStoreFactory.getPortletPreferencesStoreImpl();
            int userId = person.getID();
            int layoutId = Integer.parseInt(layout.getId());
            String channelDescId = channelDescription.getId();
           
            preferences = portletPrefsStore.getEntityPreferences(userId, layoutId, channelDescId);
           
            // Save preferences as original preferences     
            originalPreferences = new PreferenceSetImpl();  
            ((PreferenceSetImpl)originalPreferences).addAll(preferences);           
        } catch (Exception e) {
View Full Code Here

    }
   
   
    public void removePreferences() throws Exception {
        try {
            IPortletPreferencesStore portletPrefsStore = PortletPreferencesStoreFactory.getPortletPreferencesStoreImpl();
            int userId = person.getID();
            int layoutId = Integer.parseInt(layout.getId());
            String channelDescId = channelDescription.getId();
           
            portletPrefsStore.deletePortletPreferencesByInstance(userId, layoutId, channelDescId);
        } catch (Exception e) {
            log.error("Could not delete portlet entity preferences", e);
           
            if (e instanceof IOException)
                throw (IOException)e;
View Full Code Here

        this.portletClassLoader = classLoader;
    }   

    public void store() throws IOException {
        try {
            IPortletPreferencesStore portletPrefsStore = PortletPreferencesStoreFactory.getPortletPreferencesStoreImpl();
            portletPrefsStore.setDefinitionPreferences(channelDefinition.getId(), preferences);
        } catch (Exception e){
            log.error("Could not store portlet definition preferences.", e);

            if (e instanceof IOException)
                throw (IOException)e;
View Full Code Here

TOP

Related Classes of org.jasig.portal.IPortletPreferencesStore

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.