Package com.agiletec.plugins.jpcontentfeedback.aps.system.services.contentfeedback

Examples of com.agiletec.plugins.jpcontentfeedback.aps.system.services.contentfeedback.IContentFeedbackConfig


public class ContentFeedbackConfigAction extends BaseAction {

    public String edit() {
        try {
            IContentFeedbackConfig config = this.getContentFeedbackManager().getConfig();
            if (null == config) {
                config = new ContentFeedbackConfig();
            }
            this.setConfig((ContentFeedbackConfig) config);
        } catch (Throwable t) {
View Full Code Here


    Logger log = ApsSystemUtils.getLogger();
    if (null == showlet) {
      try {
        showlet = this.createNewShowlet();
        //for ContentFeedbackWidgetAction
        IContentFeedbackConfig systemConfig = this.getContentFeedbackManager().getConfig();
        String value = systemConfig.getComment();
        if (null != value && value.equalsIgnoreCase("true")) showlet.getConfig().setProperty(WIDGET_PARAM_COMMENT_ACTIVE, value);

        value = systemConfig.getAnonymousComment();
        if (null != value && value.equalsIgnoreCase("true")) showlet.getConfig().setProperty(WIDGET_PARAM_COMMENT_ANONYMOUS, value);

        value = systemConfig.getModeratedComment();
        if (null != value && value.equalsIgnoreCase("true")) showlet.getConfig().setProperty(WIDGET_PARAM_COMMENT_MODERATED, value);

        value = systemConfig.getRateContent();
        if (null != value && value.equalsIgnoreCase("true")) showlet.getConfig().setProperty(WIDGET_PARAM_RATE_CONTENT, value);

        value = systemConfig.getRateComment();
        if (null != value && value.equalsIgnoreCase("true")) showlet.getConfig().setProperty(WIDGET_PARAM_RATE_COMMENT, value);
        //---

      } catch (Throwable t) {
        ApsSystemUtils.logThrowable(t, this, NONE);
View Full Code Here

TOP

Related Classes of com.agiletec.plugins.jpcontentfeedback.aps.system.services.contentfeedback.IContentFeedbackConfig

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.