File Source: CommonPingTargetEdit.java
1 /*
2 * Licensed to the Apache Software Foundation (ASF) under one or more
3 * contributor license agreements. The ASF licenses this file to You
4 * under the Apache License, Version 2.0 (the "License"); you may not
5 * use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License. For additional information regarding
15 * copyright in this work, please see the NOTICE file in the top level
16 * directory of this distribution.
17 */
18
19 package org.apache.roller.weblogger.ui.struts2.admin;
20
21 import org.apache.commons.logging.Log;
22 import org.apache.commons.logging.LogFactory;
23 import org.apache.roller.weblogger.ui.struts2.common.PingTargetEditBase;
24
25
26 /**
27 * Action for modifying a common ping target.
28 */
29 public class CommonPingTargetEdit extends PingTargetEditBase {
30
/*
P/P * Method: org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetEdit__static_init
*
* Postconditions:
* init'ed(log)
*/
31 private static Log log = LogFactory.getLog(CommonPingTargetEdit.class);
32
33
/*
P/P * Method: void org.apache.roller.weblogger.ui.struts2.admin.CommonPingTargetEdit()
*
* Postconditions:
* this.actionName == &"commonPingTargetEdit"
* this.bean == &new PingTargetFormBean(PingTargetEditBase#1)
* this.desiredMenu == &"admin"
* this.pageTitle == &"pingTarget.pingTarget"
* this.pingTarget == null
* new PingTargetFormBean(PingTargetEditBase#1).id == null
* new PingTargetFormBean(PingTargetEditBase#1).name == null
* new PingTargetFormBean(PingTargetEditBase#1).pingUrl == null
* new PingTargetFormBean(PingTargetEditBase#1) num objects == 1
*/
34 public CommonPingTargetEdit() {
35 this.actionName = "commonPingTargetEdit";
36 this.desiredMenu = "admin";
37 this.pageTitle = "pingTarget.pingTarget";
38 }
39
40
41 public String requiredUserRole() {
/*
P/P * Method: String requiredUserRole()
*
* Postconditions:
* return_value == &"admin"
*/
42 return "admin";
43 }
44
45 // no weblog required
46 public boolean isWeblogRequired() {
/*
P/P * Method: bool isWeblogRequired()
*
* Postconditions:
* return_value == 0
*/
47 return false;
48 }
49
50
51 protected Log getLogger() {
/*
P/P * Method: Log getLogger()
*
* Preconditions:
* init'ed(log)
*
* Postconditions:
* return_value == log
* init'ed(return_value)
*/
52 return log;
53 }
54
55 }
SofCheck Inspector Build Version : 2.18479
| CommonPingTargetEdit.java |
2009-Jan-02 14:25:26 |
| CommonPingTargetEdit.class |
2009-Sep-04 03:12:46 |