//# 0 errors, 93 messages
//#
/*
    //#CommonPingTargetAdd.java:1:1: class: org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  The ASF licenses this file to You
 * under the Apache License, Version 2.0 (the "License"); you may not
 * use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *   http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.  For additional information regarding
 * copyright in this work, please see the NOTICE file in the top level
 * directory of this distribution.
 */

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

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


/**
 * Action for adding a common ping target.
 */
public class CommonPingTargetAdd extends PingTargetAddBase {
    
    private static Log log = LogFactory.getLog(CommonPingTargetAdd.class);
    //#CommonPingTargetAdd.java:32: method: org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd.org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd__static_init
    //#CommonPingTargetAdd.java:32: Warning: method not available
    //#    -- call on Log org.apache.commons.logging.LogFactory:getLog(Class)
    //#    severity: INFORMATIONAL
    //#    class: org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd
    //#    method: org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd__static_init
    //#    unanalyzed callee: Log org.apache.commons.logging.LogFactory:getLog(Class)
    //#output(org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd__static_init): __Descendant_Table[org/apache/roller/weblogger/ui/struts2/admin/CommonPingTargetAdd]
    //#output(org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd__static_init): __Dispatch_Table.createPingTarget()Lorg/apache/roller/weblogger/pojos/PingTarget;
    //#output(org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd__static_init): __Dispatch_Table.execute()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd__static_init): __Dispatch_Table.getBean()Lorg/apache/roller/weblogger/ui/struts2/common/PingTargetFormBean;
    //#output(org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd__static_init): __Dispatch_Table.getLogger()Lorg/apache/commons/logging/Log;
    //#output(org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd__static_init): __Dispatch_Table.isWeblogRequired()Z
    //#output(org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd__static_init): __Dispatch_Table.myValidate(Lorg/apache/roller/weblogger/pojos/PingTarget;)V
    //#output(org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd__static_init): __Dispatch_Table.requiredUserRole()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd__static_init): __Dispatch_Table.save()Ljava/lang/String;
    //#output(org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd__static_init): __Dispatch_Table.setBean(Lorg/apache/roller/weblogger/ui/struts2/common/PingTargetFormBean;)V
    //#output(org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd__static_init): log
    //#output(org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd__static_init): org/apache/roller/weblogger/ui/struts2/common/PingTargetAddBase.__Descendant_Table[org/apache/roller/weblogger/ui/struts2/admin/CommonPingTargetAdd]
    //#post(org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd__static_init): __Descendant_Table[org/apache/roller/weblogger/ui/struts2/admin/CommonPingTargetAdd] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd__static_init): org/apache/roller/weblogger/ui/struts2/common/PingTargetAddBase.__Descendant_Table[org/apache/roller/weblogger/ui/struts2/admin/CommonPingTargetAdd] == &__Dispatch_Table
    //#post(org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd__static_init): __Dispatch_Table.createPingTarget()Lorg/apache/roller/weblogger/pojos/PingTarget; == &createPingTarget
    //#post(org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd__static_init): __Dispatch_Table.execute()Ljava/lang/String; == &org/apache/roller/weblogger/ui/struts2/common/PingTargetAddBase.execute
    //#post(org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd__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.admin.CommonPingTargetAdd__static_init): __Dispatch_Table.getLogger()Lorg/apache/commons/logging/Log; == &getLogger
    //#post(org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd__static_init): __Dispatch_Table.isWeblogRequired()Z == &isWeblogRequired
    //#post(org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd__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.admin.CommonPingTargetAdd__static_init): __Dispatch_Table.requiredUserRole()Ljava/lang/String; == &requiredUserRole
    //#post(org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd__static_init): __Dispatch_Table.save()Ljava/lang/String; == &org/apache/roller/weblogger/ui/struts2/common/PingTargetAddBase.save
    //#post(org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd__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.admin.CommonPingTargetAdd__static_init): init'ed(log)
    //#CommonPingTargetAdd.java:32: end of method: org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd.org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd__static_init
    
    
    public CommonPingTargetAdd() {
    //#CommonPingTargetAdd.java:35: method: void org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd.org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd()
    //#input(void org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd()): this
    //#output(void org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd()): new PingTargetFormBean(PingTargetAddBase#1) num objects
    //#output(void org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd()): new PingTargetFormBean(PingTargetAddBase#1).__Tag
    //#output(void org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd()): new PingTargetFormBean(PingTargetAddBase#1).id
    //#output(void org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd()): new PingTargetFormBean(PingTargetAddBase#1).name
    //#output(void org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd()): new PingTargetFormBean(PingTargetAddBase#1).pingUrl
    //#output(void org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd()): this.actionName
    //#output(void org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd()): this.bean
    //#output(void org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd()): this.desiredMenu
    //#output(void org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd()): this.pageTitle
    //#new obj(void org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd()): new PingTargetFormBean(PingTargetAddBase#1)
    //#post(void org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd()): this.actionName == &"commonPingTargetAdd"
    //#post(void org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd()): this.bean == &new PingTargetFormBean(PingTargetAddBase#1)
    //#post(void org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd()): this.desiredMenu == &"admin"
    //#post(void org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd()): this.pageTitle == &"pingTarget.pingTarget"
    //#post(void org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd()): new PingTargetFormBean(PingTargetAddBase#1) num objects == 1
    //#post(void org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd()): new PingTargetFormBean(PingTargetAddBase#1).__Tag == org/apache/roller/weblogger/ui/struts2/common/PingTargetFormBean
    //#post(void org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd()): new PingTargetFormBean(PingTargetAddBase#1).id == null
    //#post(void org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd()): new PingTargetFormBean(PingTargetAddBase#1).name == null
    //#post(void org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd()): new PingTargetFormBean(PingTargetAddBase#1).pingUrl == null
    //#unanalyzed(void org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd()): Effects-of-calling:org.apache.roller.weblogger.ui.struts2.util.UIAction
        this.actionName = "commonPingTargetAdd";
        this.desiredMenu = "admin";
        this.pageTitle = "pingTarget.pingTarget";
    }
    //#CommonPingTargetAdd.java:39: end of method: void org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd.org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd()
    
    
    public String requiredUserRole() {
        return "admin";
    //#CommonPingTargetAdd.java:43: method: String org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd.requiredUserRole()
    //#output(String requiredUserRole()): return_value
    //#post(String requiredUserRole()): return_value == &"admin"
    //#CommonPingTargetAdd.java:43: end of method: String org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd.requiredUserRole()
    }
    
    // no weblog required
    public boolean isWeblogRequired() {
        return false;
    //#CommonPingTargetAdd.java:48: method: bool org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd.isWeblogRequired()
    //#output(bool isWeblogRequired()): return_value
    //#post(bool isWeblogRequired()): return_value == 0
    //#CommonPingTargetAdd.java:48: end of method: bool org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd.isWeblogRequired()
    }
    
    
    protected Log getLogger() {
        return log;
    //#CommonPingTargetAdd.java:53: method: Log org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd.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)
    //#CommonPingTargetAdd.java:53: end of method: Log org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd.getLogger()
    }
    
    
    protected PingTarget createPingTarget() {
        
        return new PingTarget(
    //#CommonPingTargetAdd.java:59: method: PingTarget org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd.createPingTarget()
    //#CommonPingTargetAdd.java:59: 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.admin.CommonPingTargetAdd
    //#    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/admin/CommonPingTargetAdd]
    //#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/admin/CommonPingTargetAdd
    //#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
    //#CommonPingTargetAdd.java:59: end of method: PingTarget org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd.createPingTarget()
                null, 
                getBean().getName(), 
                getBean().getPingUrl(), 
                null, 
                false);
    }
    
}
    //#CommonPingTargetAdd.java:: end of class: org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetAdd
