com.j2biz.blogunity.pojo
Class Entry

java.lang.Object
  extended bycom.j2biz.blogunity.pojo.Entry
All Implemented Interfaces:
Serializable, Validatable

public class Entry
extends Object
implements Validatable, Serializable

Since:
0.1
Author:
michelson
See Also:
Serialized Form

Field Summary
static int DRAFT
          Draft entry is just a temporary saved entry.
static SimpleDateFormat PERMALINK_FORMAT
           
static int PRIVATE
          Private entry is accessable for private read.
static int PUBLIC
          Public entry is accessable for public read.
 
Constructor Summary
Entry()
           
 
Method Summary
 void addCategory(Category category)
           
 boolean containsCategory(Category category)
           
 String getAliasname()
           
 boolean getAnonymousCommentingAllowed()
           
 User getAuthor()
           
 String getAuthorIP()
           
 Blog getBlog()
           
 String getBody()
           
 Set getCategories()
           
 boolean getCommentingAllowed()
           
 Set getComments()
           
 Date getCreateTime()
           
 String getExcerpt()
           
 Set getFirstLevelComments()
           
 Set getGlobalCategories()
          Returns global categories associated with given blog-entry.
 Long getId()
           
 Set getIncomingTrackbacks()
           
 Set getLocalCategories()
          Returns local categories associated with given blog-entry.
 Set getOutgoingTrackbacks()
           
 String getPermalink()
          Returns permalink-string to the current entry.
 String getRawBody()
           
 String getRawExcerpt()
           
 String getRawTitle()
           
 String getTitle()
           
 boolean getTrackbackAllowed()
           
 Set getTrackbacks()
           
 int getType()
           
 Userpic getUserpic()
           
 boolean isAnonymousCommentingAllowed()
           
 boolean isCommentingAllowed()
           
 boolean isTrackbackAllowed()
           
 void setAliasname(String aliasname)
           
 void setAnonymousCommentingAllowed(boolean anonymousCommentingAllowed)
           
 void setAuthor(User author)
           
 void setAuthorIP(String authorIP)
           
 void setBlog(Blog blog)
           
 void setBody(String body)
           
 void setCategories(Set categories)
           
 void setCommentingAllowed(boolean commentingAllowed)
           
 void setComments(Set comments)
           
 void setCreateTime(Date createTime)
           
 void setExcerpt(String exrept)
           
 void setId(Long id)
           
 void setRawBody(String rawBody)
           
 void setRawExcerpt(String rawExcerpt)
           
 void setRawTitle(String rawTitle)
           
 void setTitle(String title)
           
 void setTrackbackAllowed(boolean tbAllowed)
           
 void setTrackbacks(Set trackbacks)
           
 void setType(int type)
           
 void setUserpic(Userpic userpic)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PUBLIC

public static final int PUBLIC
Public entry is accessable for public read.

See Also:
Constant Field Values

PRIVATE

public static final int PRIVATE
Private entry is accessable for private read.

See Also:
Constant Field Values

DRAFT

public static final int DRAFT
Draft entry is just a temporary saved entry.

See Also:
Constant Field Values

PERMALINK_FORMAT

public static final SimpleDateFormat PERMALINK_FORMAT
Constructor Detail

Entry

public Entry()
Method Detail

getBlog

public Blog getBlog()
Returns:
Returns the blog.

setBlog

public void setBlog(Blog blog)
Parameters:
blog - The blog to set.

getAliasname

public String getAliasname()
Returns:

setAliasname

public void setAliasname(String aliasname)
Parameters:
aliasname -

getTrackbackAllowed

public boolean getTrackbackAllowed()
Returns:
Returns the trackbackAllowed

setTrackbackAllowed

public void setTrackbackAllowed(boolean tbAllowed)
Returns:
Returns the trackbackAllowed.

isTrackbackAllowed

public boolean isTrackbackAllowed()
Returns:
Returns the trackbackAllowed.

getAnonymousCommentingAllowed

public boolean getAnonymousCommentingAllowed()
Returns:
Returns the anonymousCommentingAllowed.

isAnonymousCommentingAllowed

public boolean isAnonymousCommentingAllowed()
Returns:
Returns the anonymousCommentingAllowed.

setAnonymousCommentingAllowed

public void setAnonymousCommentingAllowed(boolean anonymousCommentingAllowed)
Parameters:
anonymousCommentingAllowed - The anonymousCommentingAllowed to set.

getAuthor

public User getAuthor()
Returns:
Returns the author.

setAuthor

public void setAuthor(User author)
Parameters:
author - The author to set.

getBody

public String getBody()
Returns:
Returns the body.

setBody

public void setBody(String body)
Parameters:
body - The body to set.

getRawBody

public String getRawBody()
Returns:
Returns the rawBody.

setRawBody

public void setRawBody(String rawBody)
Parameters:
rawBody - The rawBody to set.

getCategories

public Set getCategories()
Returns:
Returns the categories.

addCategory

public void addCategory(Category category)

containsCategory

public boolean containsCategory(Category category)

getGlobalCategories

public Set getGlobalCategories()
Returns global categories associated with given blog-entry.

Returns:
global categories associated with given blog-entry.

getLocalCategories

public Set getLocalCategories()
Returns local categories associated with given blog-entry.

Returns:
local categories associated with given blog-entry.

setCategories

public void setCategories(Set categories)
Parameters:
categories - The categories to set.

getCommentingAllowed

public boolean getCommentingAllowed()
Returns:
Returns the commentingAllowed.

isCommentingAllowed

public boolean isCommentingAllowed()
Returns:
Returns the commentingAllowed.

setCommentingAllowed

public void setCommentingAllowed(boolean commentingAllowed)
Parameters:
commentingAllowed - The commentingAllowed to set.

getComments

public Set getComments()
Returns:
Returns the comments.

setComments

public void setComments(Set comments)
Parameters:
comments - The comments to set.

getFirstLevelComments

public Set getFirstLevelComments()

getCreateTime

public Date getCreateTime()
Returns:
Returns the createTime.

setCreateTime

public void setCreateTime(Date createTime)
Parameters:
createTime - The createTime to set.

getExcerpt

public String getExcerpt()
Returns:
Returns the excerpt.

setExcerpt

public void setExcerpt(String exrept)

getRawExcerpt

public String getRawExcerpt()
Returns:
Returns the rawExcerpt.

setRawExcerpt

public void setRawExcerpt(String rawExcerpt)
Parameters:
rawExcerpt - The rawExcerpt to set.

getId

public Long getId()
Returns:
Returns the id.

setId

public void setId(Long id)
Parameters:
id - The id to set.

getTitle

public String getTitle()
Returns:
Returns the title.

setTitle

public void setTitle(String title)
Parameters:
title - The title to set.

getRawTitle

public String getRawTitle()
Returns:
Returns the rawTitle.

setRawTitle

public void setRawTitle(String rawTitle)
Parameters:
rawTitle - The rawTitle to set.

getType

public int getType()
Returns:
Returns the type.

setType

public void setType(int type)
Parameters:
type - The type to set.

getAuthorIP

public String getAuthorIP()
Returns:
Returns the authorIP.

setAuthorIP

public void setAuthorIP(String authorIP)
Parameters:
authorIP - The authorIP to set.

getUserpic

public Userpic getUserpic()
Returns:
Returns the userpic.

setUserpic

public void setUserpic(Userpic userpic)
Parameters:
userpic - The userpic to set.

getTrackbacks

public Set getTrackbacks()
Returns:
Returns the trackbacks.

setTrackbacks

public void setTrackbacks(Set trackbacks)
Parameters:
trackbacks - The trackbacks to set.

getIncomingTrackbacks

public Set getIncomingTrackbacks()

getOutgoingTrackbacks

public Set getOutgoingTrackbacks()

validate

public void validate()
              throws ValidationFailure
Specified by:
validate in interface Validatable
Throws:
ValidationFailure

getPermalink

public String getPermalink()
Returns permalink-string to the current entry. Format of this permalink is: /yyyy/MM/dd/id or, if the aliasname exists: /yyyy/MM/dd/aliasname

Returns:
permalink for the given entry.


Copyright (c)j2biz.com