Anonymous avatar Anonymous committed f03e7ea

hg rename SysconfDao.java SysConfDao.java-

Comments (0)

Files changed (5)

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/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/dao/UserInfoService.java

 package info.mrchen.gae.blog.dao;
 
-import info.mrchen.gae.blog.pojo.Userinfo;
+import info.mrchen.gae.blog.pojo.UserInfo;
 
 import org.springframework.beans.factory.annotation.Autowired;
 
 public class UserInfoService {
 
 	@Autowired
-	UserInfoDao userInfoDao;
+	UserInfoDao UserInfoDao;
 
 	public boolean checkPassword(String username, String password) {
 		if (username == null || username.length() < 1) {
 			return false;
 		}
-		return userInfoDao.checkPassword(username, password);
+		return UserInfoDao.checkPassword(username, password);
 
 	}
 
-	public Userinfo getMyProfile(User user) {
-		Userinfo userInfo = userInfoDao.get(user);
-		if (userInfo == null) {
-			Userinfo userInfo1 = new Userinfo();
-			userInfo.setUser(user);
-			userInfoDao.save(userInfo1);
-			return userInfo1;
+	public UserInfo getMyProfile(User user) {
+		UserInfo UserInfo = UserInfoDao.get(user);
+		if (UserInfo == null) {
+			UserInfo UserInfo1 = new UserInfo();
+			UserInfo1.setUser(user);
+			UserInfoDao.save(UserInfo1);
+			return UserInfo1;
 		} else {
-			return userInfo;
+			return UserInfo;
 		}
 	}
 }

src/info/mrchen/gae/blog/pojo/Category.java

 		this.categoryid = categoryid;
 	}
 
-	public String getRssUrl() {
-		return rssUrl;
-	}
-
-	public void setRssUrl(String rssUrl) {
-		this.rssUrl = rssUrl;
-	}
-
-	public String getHtmlUrl() {
-		return htmlUrl;
-	}
-
-	public void setHtmlUrl(String htmlUrl) {
-		this.htmlUrl = htmlUrl;
-	}
 
 	public String getDescription() {
 		return description;

src/info/mrchen/gae/blog/pojo/UserInfo.java

 import javax.jdo.annotations.Persistent;
 import javax.jdo.annotations.PrimaryKey;
 
+import com.google.appengine.api.users.User;
+
 @PersistenceCapable(identityType = IdentityType.APPLICATION)
 public class UserInfo {
 	@PrimaryKey
 	private Long id;
 
 	@Persistent
+	private User user;
+
+	@Persistent
 	private String username;
 	@Persistent
 	private String password;
+
 	public Long getId() {
 		return id;
 	}
+
 	public void setId(Long id) {
 		this.id = id;
 	}
+
 	public String getUsername() {
 		return username;
 	}
+
 	public void setUsername(String username) {
 		this.username = username;
 	}
+
 	public String getPassword() {
 		return password;
 	}
+
 	public void setPassword(String password) {
 		this.password = password;
 	}
+
+	public User getUser() {
+		return user;
+	}
+
+	public void setUser(User user) {
+		this.user = user;
+	}
 }
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.