Package javax.portlet

Examples of javax.portlet.PortletPreferences.store()


        PortletPreferences prefs = request.getPreferences();
        prefs.setValue(WEATHER_CITY, city);
        prefs.setValue(WEATHER_STATE, state);
        prefs.setValue(WEATHER_STYLE, style);
        prefs.setValue(WEATHER_STATION, station);
        prefs.store();
        super.processAction(request, response);
    }
   
}
View Full Code Here


    {  
        if (actionRequest.getPortletMode() == PortletMode.EDIT)
        {
            PortletPreferences prefs = actionRequest.getPreferences();
            PreferencesHelper.requestParamsToPreferences(actionRequest);
            prefs.store();
            actionResponse.setPortletMode(PortletMode.VIEW);
            initPrefsAndAttr(actionRequest);
            return;
        }
       
View Full Code Here

            {
                try
                {
                    PortletPreferences prefs = request.getPreferences();
                    PreferencesHelper.requestParamsToPreferences(request);
                    prefs.store();                   
                    getConnection(request);
                    StatusMessage msg = new StatusMessage("Connection made successfully.", StatusMessage.SUCCESS);                   
                    PortletMessaging.publish(request, "DatabaseBrowserPortlet", "dbConnectTest", msg);                   
                }
                catch (Exception e)
View Full Code Here

            preferences.setValue( "Location", location );
        if ( mapHeight != null )
            preferences.setValue( "MapHeight", mapHeight );
        if ( apiKey != null )
            preferences.setValue( "APIKey", apiKey );
        preferences.store();
    }
   
    public void doHeader(PortletHeaderRequest request, PortletHeaderResponse response)
    throws PortletException
    {
View Full Code Here

            {
                try
                {
                    PortletPreferences prefs = request.getPreferences();
                    PreferencesHelper.requestParamsToPreferences(request);
                    prefs.store();                   
                    getConnection(request);
                    StatusMessage msg = new StatusMessage("Connection made successfully.", StatusMessage.SUCCESS);                   
                    PortletMessaging.publish(request, "DatabaseBrowserPortlet", "dbConnectTest", msg);                   
                }
                catch (Exception e)
View Full Code Here

        prefs.setValue(HEIGHT_PREF, height);
        prefs.setValue(WIDTH_PREF, width);
        prefs.setValue(MAX_SRC_PREF, maxSource);
        prefs.setValue(MAX_HEIGHT_PREF, maxHeight);
        prefs.setValue(MAX_WIDTH_PREF, maxWidth);       
        prefs.store();
        super.processAction(request, response);
    }
   
    public Map parseSemicolonEqualsDelimitedProps( String propsStr )
    {
View Full Code Here

        prefs.setValue(HEIGHT_PREF, height);
        prefs.setValue(WIDTH_PREF, width);
        prefs.setValue(MAX_SRC_PREF, maxSource);
        prefs.setValue(MAX_HEIGHT_PREF, maxHeight);
        prefs.setValue(MAX_WIDTH_PREF, maxWidth);       
        prefs.store();
        super.processAction(request, response);
    }
   
    public Map parseSemicolonEqualsDelimitedProps( String propsStr )
    {
View Full Code Here

        if ( apiKey != null )
        {
            preferences.setValue( "APIKey", apiKey );
        }
       
        preferences.store();
    }
   
    @Override
    protected void doHeaders(RenderRequest request, RenderResponse response)
    {
View Full Code Here

    public void processPreferencesAction(ActionRequest request, ActionResponse actionResponse)
    throws PortletException, IOException
    {
        PortletPreferences prefs = request.getPreferences();
        PreferencesHelper.requestParamsToPreferences(request);
        prefs.store();
        actionResponse.setPortletMode(PortletMode.VIEW);
    }
   
}
View Full Code Here

        if (curMode == PortletMode.EDIT ||
            curMode.equals(JetspeedActions.EDIT_DEFAULTS_MODE))
        {
            PortletPreferences prefs = actionRequest.getPreferences();
            PreferencesHelper.requestParamsToPreferences(actionRequest);
            prefs.store();
            actionResponse.setPortletMode(PortletMode.VIEW);
            return;
        }
       
        try
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.