org.blojsom.blog
Class BlogUser

java.lang.Object
  extended byorg.blojsom.blog.BlogUser

public class BlogUser
extends java.lang.Object

BlogUser

Since:
blojsom 2.0
Version:
$Id: BlogUser.java,v 1.4 2006/01/04 16:59:53 czarneckid Exp $
Author:
David Czarnecki

Field Summary
protected  Blog _blog
           
protected  java.util.Map _flavors
           
protected  java.util.Map _flavorToContentType
           
protected  java.util.Map _flavorToTemplate
           
protected  java.lang.String _id
           
protected  java.util.Map _pluginChain
           
 
Constructor Summary
BlogUser()
          Default constructor
 
Method Summary
 Blog getBlog()
          Get the blog user's blog information
 java.util.Map getFlavors()
          Get the supported flavors for the blog user
 java.util.Map getFlavorToContentType()
          Get the flavor to content-type mapping for the blog user
 java.util.Map getFlavorToTemplate()
          Get the flavor to template mapping for the blog user
 java.lang.String getId()
          Get the blog user's id
 java.util.Map getPluginChain()
          Return the plugin chains for the blog user
 void setBlog(Blog blog)
          Set the blog user's blog information
 void setFlavors(java.util.Map flavors)
          Set the supported flavors for the blog user
 void setFlavorToContentType(java.util.Map flavorToContentType)
          Set the flavor to content-type mapping for the blog user
 void setFlavorToTemplate(java.util.Map flavorToTemplate)
          Set the flavor to template mapping for the blog user
 void setId(java.lang.String id)
          Set the blog user's id
 void setPluginChain(java.util.Map pluginChain)
          Set the flavor-based plugin chains for the blog user
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_id

protected java.lang.String _id

_blog

protected Blog _blog

_pluginChain

protected java.util.Map _pluginChain

_flavors

protected java.util.Map _flavors

_flavorToTemplate

protected java.util.Map _flavorToTemplate

_flavorToContentType

protected java.util.Map _flavorToContentType
Constructor Detail

BlogUser

public BlogUser()
Default constructor

Method Detail

setId

public void setId(java.lang.String id)
Set the blog user's id

Parameters:
id - Blog user id, more commonly known as their username

getId

public java.lang.String getId()
Get the blog user's id

Returns:
Blog user id

getBlog

public Blog getBlog()
Get the blog user's blog information

Returns:
Blog information

setBlog

public void setBlog(Blog blog)
Set the blog user's blog information

Parameters:
blog - Blog information

getPluginChain

public java.util.Map getPluginChain()
Return the plugin chains for the blog user

Returns:
Map of the plugin chains for the blog user. The map will contain entries keyed on the particular flavor with values corresponding to a String[] for the plugins to be executed for that flavor

setPluginChain

public void setPluginChain(java.util.Map pluginChain)
Set the flavor-based plugin chains for the blog user

Parameters:
pluginChain - Map of the plugin chains for the blog user. The map will contain entries keyed on the particular flavor with values corresponding to a String[] for the plugins to be executed for that flavor

getFlavors

public java.util.Map getFlavors()
Get the supported flavors for the blog user

Returns:
Map of the flavors available for this user. The map will contain entries keyed on the particular flavor with a corresponding value set to the same key

setFlavors

public void setFlavors(java.util.Map flavors)
Set the supported flavors for the blog user

Parameters:
flavors - Map of the flavors available for this user. The map will contain entries keyed on the particular flavor with a corresponding value set to the same key

getFlavorToTemplate

public java.util.Map getFlavorToTemplate()
Get the flavor to template mapping for the blog user

Returns:
Map of the flavors available for this user. The map will contain entries keyed on the particular flavor with a corresponding value set to the template that should be used in rendering the flavor

setFlavorToTemplate

public void setFlavorToTemplate(java.util.Map flavorToTemplate)
Set the flavor to template mapping for the blog user

Parameters:
flavorToTemplate - Map of the flavors available for this user. The map will contain entries keyed on the particular flavor with a corresponding value set to the template that should be used in rendering the flavor

getFlavorToContentType

public java.util.Map getFlavorToContentType()
Get the flavor to content-type mapping for the blog user

Returns:
Map of the flavors available for this user. The map will contain entries keyed on the particular flavor with a corresponding value set to the content-type that should be used in rendering the flavor

setFlavorToContentType

public void setFlavorToContentType(java.util.Map flavorToContentType)
Set the flavor to content-type mapping for the blog user

Parameters:
flavorToContentType - Map of the flavors available for this user. The map will contain entries keyed on the particular flavor with a corresponding value set to the content-type that should be used in rendering the flavor