//# 0 errors, 91 messages
//#
/*
    //#CustomPingTargetAdd.java:1:1: class: org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd
 * CustomPingTargetAdd.java
 *
 * Created on April 30, 2007, 9:52 AM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package org.apache.roller.weblogger.ui.struts2.editor;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.roller.weblogger.pojos.WeblogPermission;
import org.apache.roller.weblogger.pojos.PingTarget;
import org.apache.roller.weblogger.ui.struts2.common.PingTargetAddBase;


/**
 * Action for adding a custom weblog ping target.
 */
public class CustomPingTargetAdd extends PingTargetAddBase {
    
    private static Log log = LogFactory.getLog(CustomPingTargetAdd.class);
    //#CustomPingTargetAdd.java:24: method: org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd.org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init
    //#CustomPingTargetAdd.java:24: Warning: method not available
    //#    -- call on Log org.apache.commons.logging.LogFactory:getLog(Class)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd
    //#    method: org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init
    //#    unanalyzed callee: Log org.apache.commons.logging.LogFactory:getLog(Class)
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init): __Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/CustomPingTargetAdd]
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init): __Dispatch_Table.createPingTarget()Lorg/apache/roller/weblogger/pojos/PingTarget;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init): __Dispatch_Table.execute()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init): __Dispatch_Table.getBean()Lorg/apache/roller/weblogger/ui/struts2/common/PingTargetFormBean;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init): __Dispatch_Table.getLogger()Lorg/apache/commons/logging/Log;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init): __Dispatch_Table.myValidate(Lorg/apache/roller/weblogger/pojos/PingTarget;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init): __Dispatch_Table.requiredWeblogPermission()S
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init): __Dispatch_Table.save()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init): __Dispatch_Table.setBean(Lorg/apache/roller/weblogger/ui/struts2/common/PingTargetFormBean;)V
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init): log
    //#output(org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init): org/apache/roller/weblogger/ui/struts2/common/PingTargetAddBase.__Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/CustomPingTargetAdd]
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init): __Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/CustomPingTargetAdd] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init): org/apache/roller/weblogger/ui/struts2/common/PingTargetAddBase.__Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/CustomPingTargetAdd] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init): __Dispatch_Table.createPingTarget()Lorg/apache/roller/weblogger/pojos/PingTarget; == &createPingTarget
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init): __Dispatch_Table.execute()Ljava/lang/String; == &org/apache/roller/weblogger/ui/struts2/common/PingTargetAddBase.execute
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init): __Dispatch_Table.getBean()Lorg/apache/roller/weblogger/ui/struts2/common/PingTargetFormBean; == &org/apache/roller/weblogger/ui/struts2/common/PingTargetAddBase.getBean
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init): __Dispatch_Table.getLogger()Lorg/apache/commons/logging/Log; == &getLogger
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init): __Dispatch_Table.myValidate(Lorg/apache/roller/weblogger/pojos/PingTarget;)V == &org/apache/roller/weblogger/ui/struts2/common/PingTargetAddBase.myValidate
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init): __Dispatch_Table.requiredWeblogPermission()S == &requiredWeblogPermission
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init): __Dispatch_Table.save()Ljava/lang/String; == &org/apache/roller/weblogger/ui/struts2/common/PingTargetAddBase.save
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init): __Dispatch_Table.setBean(Lorg/apache/roller/weblogger/ui/struts2/common/PingTargetFormBean;)V == &org/apache/roller/weblogger/ui/struts2/common/PingTargetAddBase.setBean
    //#post(org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init): init'ed(log)
    //#CustomPingTargetAdd.java:24: end of method: org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd.org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd__static_init
    
    
    public CustomPingTargetAdd() {
    //#CustomPingTargetAdd.java:27: method: void org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd.org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd()
    //#input(void org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd()): this
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd()): new PingTargetFormBean(PingTargetAddBase#1) num objects
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd()): new PingTargetFormBean(PingTargetAddBase#1).__Tag
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd()): new PingTargetFormBean(PingTargetAddBase#1).id
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd()): new PingTargetFormBean(PingTargetAddBase#1).name
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd()): new PingTargetFormBean(PingTargetAddBase#1).pingUrl
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd()): this.actionName
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd()): this.bean
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd()): this.desiredMenu
    //#output(void org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd()): this.pageTitle
    //#new obj(void org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd()): new PingTargetFormBean(PingTargetAddBase#1)
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd()): this.actionName == &"customPingTargetAdd"
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd()): this.bean == &new PingTargetFormBean(PingTargetAddBase#1)
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd()): this.desiredMenu == &"editor"
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd()): this.pageTitle == &"pingTarget.pingTarget"
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd()): new PingTargetFormBean(PingTargetAddBase#1) num objects == 1
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd()): new PingTargetFormBean(PingTargetAddBase#1).__Tag == org/apache/roller/weblogger/ui/struts2/common/PingTargetFormBean
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd()): new PingTargetFormBean(PingTargetAddBase#1).id == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd()): new PingTargetFormBean(PingTargetAddBase#1).name == null
    //#post(void org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd()): new PingTargetFormBean(PingTargetAddBase#1).pingUrl == null
    //#unanalyzed(void org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd()): Effects-of-calling:org.apache.roller.weblogger.ui.struts2.util.UIAction
        this.actionName = "customPingTargetAdd";
        this.desiredMenu = "editor";
        this.pageTitle = "pingTarget.pingTarget";
    }
    //#CustomPingTargetAdd.java:31: end of method: void org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd.org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd()
    
    
    // admin perms required
    public short requiredWeblogPermission() {
        return WeblogPermission.ADMIN;
    //#CustomPingTargetAdd.java:36: method: short org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd.requiredWeblogPermission()
    //#input(short requiredWeblogPermission()): org.apache.roller.weblogger.pojos.WeblogPermission.ADMIN
    //#output(short requiredWeblogPermission()): return_value
    //#presumption(short requiredWeblogPermission()): init'ed(org.apache.roller.weblogger.pojos.WeblogPermission.ADMIN)
    //#post(short requiredWeblogPermission()): return_value == org.apache.roller.weblogger.pojos.WeblogPermission.ADMIN
    //#post(short requiredWeblogPermission()): (soft) init'ed(return_value)
    //#CustomPingTargetAdd.java:36: end of method: short org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd.requiredWeblogPermission()
    }
    
    
    protected Log getLogger() {
        return log;
    //#CustomPingTargetAdd.java:41: method: Log org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd.getLogger()
    //#input(Log getLogger()): log
    //#output(Log getLogger()): return_value
    //#pre[1] (Log getLogger()): init'ed(log)
    //#post(Log getLogger()): return_value == log
    //#post(Log getLogger()): init'ed(return_value)
    //#CustomPingTargetAdd.java:41: end of method: Log org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd.getLogger()
    }
    
    
    protected PingTarget createPingTarget() {
        
        return new PingTarget(
    //#CustomPingTargetAdd.java:47: method: PingTarget org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd.createPingTarget()
    //#CustomPingTargetAdd.java:47: Warning: method not available
    //#    -- call on Weblog org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd:getActionWeblog()
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd
    //#    method: PingTarget createPingTarget()
    //#    unanalyzed callee: Weblog org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd:getActionWeblog()
    //#CustomPingTargetAdd.java:47: Warning: method not available
    //#    -- call on void org.apache.roller.weblogger.pojos.PingTarget(String, String, String, Weblog, bool)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd
    //#    method: PingTarget createPingTarget()
    //#    unanalyzed callee: void org.apache.roller.weblogger.pojos.PingTarget(String, String, String, Weblog, bool)
    //#input(PingTarget createPingTarget()): __Descendant_Table[org/apache/roller/weblogger/ui/struts2/editor/CustomPingTargetAdd]
    //#input(PingTarget createPingTarget()): __Descendant_Table[others]
    //#input(PingTarget createPingTarget()): __Dispatch_Table.getBean()Lorg/apache/roller/weblogger/ui/struts2/common/PingTargetFormBean;
    //#input(PingTarget createPingTarget()): org/apache/roller/weblogger/ui/struts2/common/PingTargetFormBean.__Descendant_Table[org/apache/roller/weblogger/ui/struts2/common/PingTargetFormBean]
    //#input(PingTarget createPingTarget()): org/apache/roller/weblogger/ui/struts2/common/PingTargetFormBean.__Descendant_Table[others]
    //#input(PingTarget createPingTarget()): org/apache/roller/weblogger/ui/struts2/common/PingTargetFormBean.__Dispatch_Table.getName()Ljava/lang/String;
    //#input(PingTarget createPingTarget()): org/apache/roller/weblogger/ui/struts2/common/PingTargetFormBean.__Dispatch_Table.getPingUrl()Ljava/lang/String;
    //#input(PingTarget createPingTarget()): this
    //#input(PingTarget createPingTarget()): this.__Tag
    //#input(PingTarget createPingTarget()): this.bean
    //#input(PingTarget createPingTarget()): this.bean.__Tag
    //#input(PingTarget createPingTarget()): this.bean.name
    //#input(PingTarget createPingTarget()): this.bean.pingUrl
    //#output(PingTarget createPingTarget()): new PingTarget(createPingTarget#1) num objects
    //#output(PingTarget createPingTarget()): return_value
    //#new obj(PingTarget createPingTarget()): new PingTarget(createPingTarget#1)
    //#pre[2] (PingTarget createPingTarget()): this.__Tag == org/apache/roller/weblogger/ui/struts2/editor/CustomPingTargetAdd
    //#pre[3] (PingTarget createPingTarget()): this.bean != null
    //#pre[4] (PingTarget createPingTarget()): this.bean.__Tag == org/apache/roller/weblogger/ui/struts2/common/PingTargetFormBean
    //#pre[5] (PingTarget createPingTarget()): init'ed(this.bean.name)
    //#pre[6] (PingTarget createPingTarget()): init'ed(this.bean.pingUrl)
    //#post(PingTarget createPingTarget()): return_value == &new PingTarget(createPingTarget#1)
    //#post(PingTarget createPingTarget()): new PingTarget(createPingTarget#1) num objects == 1
    //#CustomPingTargetAdd.java:47: end of method: PingTarget org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd.createPingTarget()
                null, 
                getBean().getName(), 
                getBean().getPingUrl(), 
                getActionWeblog(), 
                false);
    }
    
}
    //#CustomPingTargetAdd.java:: end of class: org.apache.roller.weblogger.ui.struts2.editor.CustomPingTargetAdd
