001: /**
002: * Copyright (c) 2003-2007, David A. Czarnecki
003: * All rights reserved.
004: *
005: * Redistribution and use in source and binary forms, with or without
006: * modification, are permitted provided that the following conditions are met:
007: *
008: * Redistributions of source code must retain the above copyright notice, this list of conditions and the
009: * following disclaimer.
010: * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the
011: * following disclaimer in the documentation and/or other materials provided with the distribution.
012: * Neither the name of "David A. Czarnecki" and "blojsom" nor the names of its contributors may be used to
013: * endorse or promote products derived from this software without specific prior written permission.
014: * Products derived from this software may not be called "blojsom", nor may "blojsom" appear in their name,
015: * without prior written permission of David A. Czarnecki.
016: *
017: * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
018: * CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
019: * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
020: * AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
021: * EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
022: * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
023: * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
024: * PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
025: * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
026: * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
027: * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
028: * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
029: * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
030: */package org.blojsom.blog;
031:
032: import java.util.Date;
033: import java.util.Map;
034:
035: /**
036: * User
037: *
038: * @author David Czarnecki
039: * @since blojsom 3.0
040: * @version $Id: User.java,v 1.4 2007/01/17 02:35:16 czarneckid Exp $
041: */
042: public interface User {
043:
044: /**
045: * Get the user ID
046: *
047: * @return User ID
048: */
049: public Integer getId();
050:
051: /**
052: * Set the user ID
053: *
054: * @param id User ID
055: */
056: public void setId(Integer id);
057:
058: /**
059: * Get the blog ID
060: *
061: * @return Blog ID
062: */
063: public Integer getBlogId();
064:
065: /**
066: * Set the blog ID
067: *
068: * @param blogId Blog ID
069: */
070: public void setBlogId(Integer blogId);
071:
072: /**
073: * Get the user login
074: *
075: * @return User login
076: */
077: public String getUserLogin();
078:
079: /**
080: * Set the user login
081: *
082: * @param userLogin User login
083: */
084: public void setUserLogin(String userLogin);
085:
086: /**
087: * Get the password
088: *
089: * @return Password
090: */
091: public String getUserPassword();
092:
093: /**
094: * Set the password
095: *
096: * @param userPassword Password
097: */
098: public void setUserPassword(String userPassword);
099:
100: /**
101: * Get the user name
102: *
103: * @return User name
104: */
105: public String getUserName();
106:
107: /**
108: * Set the user name
109: *
110: * @param userName User name
111: */
112: public void setUserName(String userName);
113:
114: /**
115: * Get the user e-mail
116: *
117: * @return User e-mail
118: */
119: public String getUserEmail();
120:
121: /**
122: * Set the user e-mail
123: *
124: * @param userEmail User e-mail
125: */
126: public void setUserEmail(String userEmail);
127:
128: /**
129: * Get the user registered date
130: *
131: * @return User registered date
132: */
133: public Date getUserRegistered();
134:
135: /**
136: * Set the user registered date
137: *
138: * @param userRegistered User registered date
139: */
140: public void setUserRegistered(Date userRegistered);
141:
142: /**
143: * Get the user status
144: *
145: * @return User status
146: */
147: public String getUserStatus();
148:
149: /**
150: * Set the user status
151: *
152: * @param userStatus User status
153: */
154: public void setUserStatus(String userStatus);
155:
156: /**
157: * Get the meta-data
158: *
159: * @return Meta-data
160: */
161: public Map getMetaData();
162:
163: /**
164: * Set the meta-data
165: *
166: * @param metaData Meta-data
167: */
168: public void setMetaData(Map metaData);
169: }
|