Anonymous avatar Anonymous committed 1ab1791

17:59 2010/07/08

Comments (0)

Files changed (5)

src/info/mrchen/gae/blog/dao/SysConfDao.java

 import com.google.appengine.api.users.User;
 
 @Component
-public class SysconfDao extends Dao<SysConf> {
+public class SysConfDao extends Dao<SysConf> {
 
 	public SysConf get(String key) {
-		// TODO Auto-generated method stub
 		return null;
 	}
 
 	public SysConf get(User user, String key) {
-		// TODO Auto-generated method stub
 		return null;
 	}
 

src/info/mrchen/gae/blog/dao/SysConfDao.java-

-package info.mrchen.gae.blog.dao;
-
-import info.mrchen.gae.blog.Dao;
-import info.mrchen.gae.blog.pojo.SysConf;
-
-import org.springframework.stereotype.Component;
-
-import com.google.appengine.api.users.User;
-
-@Component
-public class SysconfDao extends Dao<SysConf> {
-
-	public SysConf get(String key) {
-		// TODO Auto-generated method stub
-		return null;
-	}
-
-	public SysConf get(User user, String key) {
-		// TODO Auto-generated method stub
-		return null;
-	}
-
-}

src/info/mrchen/gae/blog/service/SysConfService.java

 package info.mrchen.gae.blog.service;
 
-import info.mrchen.gae.blog.dao.SysconfDao;
-import info.mrchen.gae.blog.pojo.Sysconf;
+import info.mrchen.gae.blog.dao.SysConfDao;
+import info.mrchen.gae.blog.pojo.SysConf;
 
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Component;
 import com.google.appengine.api.users.User;
 
 @Component
-public class SysconfService {
+public class SysConfService {
 
 	@Autowired
-	SysconfDao sysconfDao;
+	SysConfDao SysConfDao;
 
-	public Sysconf get(Long id) {
-		return sysconfDao.get(id);
+	public SysConf get(Long id) {
+		return SysConfDao.get(id);
 	}
 
-	public Sysconf get(String key) {
-		return sysconfDao.get(key);
+	public SysConf get(String key) {
+		return SysConfDao.get(key);
 	}
 
-	public Sysconf get(User user, String key) {
-		return sysconfDao.get(user, key);
+	public SysConf get(User user, String key) {
+		return SysConfDao.get(user, key);
 	}
 
-	public String getValue(String sysconfKey) {
-		Sysconf conf = this.get(sysconfKey);
+	public String getValue(String SysConfKey) {
+		SysConf conf = this.get(SysConfKey);
 		if (conf != null && conf.getValue() != null) {
 			return conf.getValue();
 		} else {

src/info/mrchen/gae/blog/service/SysConfService.java-

-package info.mrchen.gae.blog.service;
-
-import info.mrchen.gae.blog.dao.SysconfDao;
-import info.mrchen.gae.blog.pojo.Sysconf;
-
-import org.springframework.beans.factory.annotation.Autowired;
-import org.springframework.stereotype.Component;
-
-import com.google.appengine.api.users.User;
-
-@Component
-public class SysconfService {
-
-	@Autowired
-	SysconfDao sysconfDao;
-
-	public Sysconf get(Long id) {
-		return sysconfDao.get(id);
-	}
-
-	public Sysconf get(String key) {
-		return sysconfDao.get(key);
-	}
-
-	public Sysconf get(User user, String key) {
-		return sysconfDao.get(user, key);
-	}
-
-	public String getValue(String sysconfKey) {
-		Sysconf conf = this.get(sysconfKey);
-		if (conf != null && conf.getValue() != null) {
-			return conf.getValue();
-		} else {
-			return null;
-		}
-	}
-}

src/info/mrchen/gae/blog/xmlrpc/handder/MetaWeblogHandler.java

 import info.mrchen.gae.blog.pojo.Category;
 import info.mrchen.gae.blog.service.ArticleService;
 import info.mrchen.gae.blog.service.CategoryService;
-import info.mrchen.gae.blog.service.SysconfService;
+import info.mrchen.gae.blog.service.SysConfService;
 import info.mrchen.gae.blog.xmlrpc.MetaweblogApiField;
 
 import java.util.ArrayList;
 @Component
 public class MetaWeblogHandler implements XmlRpcHandler, MetaweblogApiField {
 
-	private static final String SYSCONF_BLOG_NAME = null;
+	private static final String SysConf_BLOG_NAME = null;
 
 	@Autowired
 	CategoryService categoryService;
 	ArticleService articleService;
 
 	@Autowired
-	SysconfService sysconfService;
+	SysConfService SysConfService;
 
 	@Autowired
 	UserInfoService userInfoService;
 		}
 		blog.put(BLOG_URL, url);
 		blog.put(BLOG_BLOGID, "1");
-		String blogTitle = sysconfService.getValue(SYSCONF_BLOG_NAME);
+		String blogTitle = SysConfService.getValue(SysConf_BLOG_NAME);
 
 		blog.put(BLOG_BLOGNAME, blogTitle);
 		return new Map[] { blog };
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.