com.j2biz.blogunity.pojo
Class Blog

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

public class Blog
extends Object
implements Validatable, Serializable

Since:
0.1
Author:
michelson
See Also:
Serialized Form

Field Summary
static int COMMUNITY_BLOG
           
static int INDIVIDUAL_BLOG
           
static int PRIVATE_COMMUNTIY
           
static int PUBLIC_COMMUNTIY
           
 
Constructor Summary
Blog()
           
 
Method Summary
 void addCategory(Category category)
           
 void addContributor(User contributor)
           
 void addEntry(Entry entry)
           
 void addLink(Link link)
           
 void addTodayReferer(Referer referer)
           
 void addTodayVisitedPage(VisitedPage page)
           
 void addWaitingForAcceptanceUser(User user)
           
 boolean containsCategory(Category c)
           
 boolean containsLink(Link link)
           
 BlogSettings getBlogSettings()
           
 Set getCalendarEntries()
           
 Set getCategories()
           
 int getCommunityType()
           
 Set getContributors()
           
 Date getCreateTime()
           
 String getDescription()
           
 Set getEntries()
           
 File getFilesDirectory()
           
 User getFounder()
           
 String getFullName()
           
 Set getGlobalCategories()
          Returns global categories associated with the given blog.
 Long getId()
           
 File getImagesDirectory()
           
 File getIndexesDirectory()
           
 String getKeywords()
           
 Date getLastModified()
           
 Set getLinks()
           
 Set getLocalCategories()
          Returns local categories associated with the given blog.
 File getLogsDirectory()
           
 File getMainDataDirectory()
           
 int getMaximalLinkOrder()
           
 File getThemeDirectory()
           
 Set getTodayReferers()
           
 Set getTodayVisitedPages()
           
 int getType()
           
 String getUrlName()
           
 Set getWaitingForAcceptanceUsers()
           
 void setBlogSettings(BlogSettings blogSettings)
           
 void setCalendarEntries(Set calendarEntries)
           
 void setCategories(Set categories)
           
 void setCommunityType(int communityType)
           
 void setContributors(Set contributors)
           
 void setCreateTime(Date createTime)
           
 void setDescription(String description)
           
 void setEntries(Set entries)
           
 void setFounder(User founder)
           
 void setFullName(String fullName)
           
 void setId(Long id)
           
 void setKeywords(String keywords)
           
 void setLastModified(Date lastModified)
           
 void setLinks(Set links)
           
 void setTodayReferers(Set todayReferers)
           
 void setTodayVisitedPages(Set todayVisitedPages)
           
 void setType(int type)
           
 void setUrlName(String name)
           
 void setWaitingForAcceptanceUsers(Set waitingForAcceptanceUsers)
           
 void validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INDIVIDUAL_BLOG

public static final int INDIVIDUAL_BLOG
See Also:
Constant Field Values

COMMUNITY_BLOG

public static final int COMMUNITY_BLOG
See Also:
Constant Field Values

PUBLIC_COMMUNTIY

public static final int PUBLIC_COMMUNTIY
See Also:
Constant Field Values

PRIVATE_COMMUNTIY

public static final int PRIVATE_COMMUNTIY
See Also:
Constant Field Values
Constructor Detail

Blog

public Blog()
Method Detail

getBlogSettings

public BlogSettings getBlogSettings()
Returns:
settings for this blog.

setBlogSettings

public void setBlogSettings(BlogSettings blogSettings)
Parameters:
blogSettings -

getCategories

public Set getCategories()
Returns:
Returns the categories.

setCategories

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

addCategory

public void addCategory(Category category)

getGlobalCategories

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

Returns:
global categories associated with the given blog.

getLocalCategories

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

Returns:
local categories associated with the given blog.

getContributors

public Set getContributors()
Returns:
Returns the contributors.

setContributors

public void setContributors(Set contributors)
Parameters:
contributors - The contributors to set.

addContributor

public void addContributor(User contributor)

getWaitingForAcceptanceUsers

public Set getWaitingForAcceptanceUsers()
Returns:
Returns the waitingForAcceptanceUsers.

setWaitingForAcceptanceUsers

public void setWaitingForAcceptanceUsers(Set waitingForAcceptanceUsers)
Parameters:
waitingForAcceptanceUsers - The waitingForAcceptanceUsers to set.

addWaitingForAcceptanceUser

public void addWaitingForAcceptanceUser(User user)

getCreateTime

public Date getCreateTime()
Returns:
Returns the createTime.

setCreateTime

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

getLastModified

public Date getLastModified()
Returns:
Returns the lastModified.

setLastModified

public void setLastModified(Date lastModified)
Parameters:
lastModified - The lastModified to set.

getDescription

public String getDescription()
Returns:
Returns the description.

setDescription

public void setDescription(String description)
Parameters:
description - The description to set.

getKeywords

public String getKeywords()
Returns:
Returns the keywords.

setKeywords

public void setKeywords(String keywords)
Parameters:
keywords - The keywords to set.

getEntries

public Set getEntries()
Returns:
Returns the entries.

setEntries

public void setEntries(Set entries)
Parameters:
entries - The entries to set.

addEntry

public void addEntry(Entry entry)

getId

public Long getId()
Returns:
Returns the id.

setId

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

getUrlName

public String getUrlName()
Returns:
Returns the urlName.

setUrlName

public void setUrlName(String name)

getFullName

public String getFullName()
Returns:

setFullName

public void setFullName(String fullName)
Parameters:
fullName -

getFounder

public User getFounder()
Returns:
Returns the founder.

setFounder

public void setFounder(User founder)
Parameters:
founder - The founder to set.

getLinks

public Set getLinks()
Returns:
Returns the links.

setLinks

public void setLinks(Set links)
Parameters:
links - The links to set.

getCalendarEntries

public Set getCalendarEntries()
Returns:
Returns the calendarEntries.

setCalendarEntries

public void setCalendarEntries(Set calendarEntries)
Parameters:
calendarEntries - The calendarEntries to set.

addLink

public void addLink(Link link)

getType

public int getType()
Returns:
Returns the type.

setType

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

getCommunityType

public int getCommunityType()
Returns:
Returns the communityType.

setCommunityType

public void setCommunityType(int communityType)
Parameters:
communityType - The communityType to set.

containsCategory

public boolean containsCategory(Category c)

containsLink

public boolean containsLink(Link link)

getMaximalLinkOrder

public int getMaximalLinkOrder()
Returns:

getTodayReferers

public Set getTodayReferers()
Returns:

setTodayReferers

public void setTodayReferers(Set todayReferers)
Parameters:
todayReferers -

addTodayReferer

public void addTodayReferer(Referer referer)
Parameters:
referer -

getTodayVisitedPages

public Set getTodayVisitedPages()
Returns:

setTodayVisitedPages

public void setTodayVisitedPages(Set todayVisitedPages)
Parameters:
todayVisitedPages -

addTodayVisitedPage

public void addTodayVisitedPage(VisitedPage page)
Parameters:
page -

getMainDataDirectory

public File getMainDataDirectory()

getThemeDirectory

public File getThemeDirectory()

getLogsDirectory

public File getLogsDirectory()

getIndexesDirectory

public File getIndexesDirectory()

getImagesDirectory

public File getImagesDirectory()

getFilesDirectory

public File getFilesDirectory()

validate

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


Copyright (c)j2biz.com