|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.randomcoder.article.Article
public class Article
JavaBean representing an article.
Copyright (c) 2006, Craig Condit. All rights reserved.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
| Constructor Summary | |
|---|---|
Article()
|
|
| Method Summary | |
|---|---|
List<Comment> |
getComments()
Gets the list of comments for this article. |
String |
getContent()
Gets the textual content of this article. |
ContentType |
getContentType()
Gets the content type for this article. |
User |
getCreatedByUser()
Gets the User this article was created by. |
Date |
getCreationDate()
Gets the creation date of this article. |
Long |
getId()
Gets the id of this article. |
Date |
getModificationDate()
Gets the modification date of this article. |
User |
getModifiedByUser()
Gets the user who last modified this article. |
String |
getPermalink()
Gets the permalink for this article. |
String |
getPermalinkUrl()
Builds a context-relative permalink for the selected article. |
String |
getSummary()
Gets the summary text for this article. |
List<Tag> |
getTags()
Gets the tags associated with this article. |
String |
getTitle()
Gets the title of this article. |
void |
setComments(List<Comment> comments)
Sets the list of comments for this article. |
void |
setContent(String content)
Sets the textual content of this article. |
void |
setContentType(ContentType contentType)
Sets the content type of this article. |
void |
setCreatedByUser(User createdByUser)
Sets the user this article was created by. |
void |
setCreationDate(Date creationDate)
Sets the creation date of this article. |
void |
setId(Long id)
Sets the id of this article |
void |
setModificationDate(Date modificationDate)
Sets the modification date of this article. |
void |
setModifiedByUser(User modifiedByUser)
Sets the user who last modified this article. |
void |
setPermalink(String permalink)
Sets the permalink for this article. |
void |
setSummary(String summary)
Sets the summary text for this article. |
void |
setTags(List<Tag> tags)
Sets the tags associated with this article. |
void |
setTitle(String title)
Sets the title of this article. |
String |
toString()
Gets a string representation of this object, suitable for debugging. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Article()
| Method Detail |
|---|
public Long getId()
public void setId(Long id)
id - article idpublic List<Tag> getTags()
Tag objectspublic void setTags(List<Tag> tags)
tags - List of Tag objectspublic List<Comment> getComments()
public void setComments(List<Comment> comments)
comments - list of commentspublic ContentType getContentType()
public void setContentType(ContentType contentType)
contentType - content typepublic String getPermalink()
public void setPermalink(String permalink)
permalink - permalinkpublic User getCreatedByUser()
public void setCreatedByUser(User createdByUser)
createdByUser - user, or null if user no longer exists.public Date getCreationDate()
public void setCreationDate(Date creationDate)
creationDate - creation datepublic User getModifiedByUser()
public void setModifiedByUser(User modifiedByUser)
modifiedByUser - userpublic Date getModificationDate()
public void setModificationDate(Date modificationDate)
modificationDate - modification datepublic String getTitle()
public void setTitle(String title)
title - article titlepublic String getContent()
public void setContent(String content)
content - article contentpublic String getSummary()
public void setSummary(String summary)
summary - summary textpublic String getPermalinkUrl()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||