Examples of IPortletPreferencesStore


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

Examples of org.jasig.portal.IPortletPreferencesStore

        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

Examples of org.jasig.portal.IPortletPreferencesStore

        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

Examples of org.jasig.portal.IPortletPreferencesStore

    }
   
   
    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

Examples of org.jasig.portal.IPortletPreferencesStore

        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
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.