org.opensubsystems.blog.data
Class Blog

java.lang.Object
  extended by org.opensubsystems.core.data.DataObject
      extended by org.opensubsystems.core.data.BasicDataObject
          extended by org.opensubsystems.core.data.ModifiableDataObject
              extended by org.opensubsystems.blog.data.Blog
All Implemented Interfaces:
java.io.Serializable

public class Blog
extends org.opensubsystems.core.data.ModifiableDataObject

Blog is a list of entries. Simples blog has name, description and set of entries added over the time.

Version:
$Id: Blog.java,v 1.5 2007/01/07 06:05:11 bastafidli Exp $
Author:
Miro Halas
See Also:
Serialized Form
Code reviewer:
Miro Halas
Code reviewed:
Initial revision

Field Summary
protected  java.lang.Boolean m_bIsPreformated
          Flag signaling if the text contains formatting or not.
protected  java.lang.String m_strCaption
          Caption is more descriptive name of the blog.
protected  java.lang.String m_strComments
          Comments is any additional description of the blog.
protected  java.lang.String m_strFolder
          Folder allows to organize blogs within folders.
protected static int s_iCaptionMaxLength
          Maximal length of the caption field.
protected static int s_iCommentsMaxLength
          Maximal length of the comments field.
protected static int s_iFolderMaxLength
          Maximal length of the folder field.
 
Fields inherited from class org.opensubsystems.core.data.ModifiableDataObject
m_modificationTimestamp
 
Fields inherited from class org.opensubsystems.core.data.BasicDataObject
m_creationTimestamp, m_iDomainId
 
Fields inherited from class org.opensubsystems.core.data.DataObject
NEW_ID, NEW_ID_OBJ, NEW_ID_STR
 
Constructor Summary
Blog()
          Empty blog initialized to default parameters
Blog(int iDomainId)
          Empty blog for a specified domain initialized to default parameters
Blog(int iId, int iDomainId, java.lang.String strBlogFolder, java.lang.String strCaption, java.lang.String strComments, java.sql.Timestamp creationTimestamp, java.sql.Timestamp modificationTimestamp)
          Create blog from a given parameters.
 
Method Summary
 java.lang.String getCaption()
          Caption is more descriptive name of the blog.
 int getCaptionMaxLength()
           
static int getCaptionMaxLengthStatic()
           
 java.lang.String getComments()
          Comments is any additional description of the blog.
 int getCommentsMaxLength()
           
static int getCommentsMaxLengthStatic()
           
 java.lang.String getFolder()
          Folder allows to organize blogs within folders.
 int getFolderMaxLength()
           
static int getFolderMaxLengthStatic()
           
 boolean getIsPreformated()
          Flag signaling if the text contains formatting or not.
 boolean isSame(java.lang.Object oObject)
          
static void setCaptionMaxLength(int iCaptionMaxLength)
           
static void setCommentsMaxLength(int iCommentsMaxLength)
           
static void setFolderMaxLength(int iFolderMaxLength)
           
 
Methods inherited from class org.opensubsystems.core.data.ModifiableDataObject
equals, getModificationTimestamp, hashCode, restore, setModificationTimestamp
 
Methods inherited from class org.opensubsystems.core.data.BasicDataObject
getCreationTimestamp, getDomainId, getId, getIdAsObject, restore, setCreationTimestamp, setId
 
Methods inherited from class org.opensubsystems.core.data.DataObject
isFromPersistenceStore, setFromPersistenceStore
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

s_iFolderMaxLength

protected static int s_iFolderMaxLength
Maximal length of the folder field. The value depends on the underlying persistance mechanism and it is set once the persistance is initialized.


s_iCaptionMaxLength

protected static int s_iCaptionMaxLength
Maximal length of the caption field. The value depends on the underlying persistance mechanism and it is set once the persistance is initialized.


s_iCommentsMaxLength

protected static int s_iCommentsMaxLength
Maximal length of the comments field. The value depends on the underlying persistance mechanism and it is set once the persistance is initialized.


m_bIsPreformated

protected java.lang.Boolean m_bIsPreformated
Flag signaling if the text contains formatting or not. Example of such formatting is a newline character.


m_strFolder

protected java.lang.String m_strFolder
Folder allows to organize blogs within folders.


m_strCaption

protected java.lang.String m_strCaption
Caption is more descriptive name of the blog.


m_strComments

protected java.lang.String m_strComments
Comments is any additional description of the blog.

Constructor Detail

Blog

public Blog()
Empty blog initialized to default parameters


Blog

public Blog(int iDomainId)
Empty blog for a specified domain initialized to default parameters

Parameters:
iDomainId - - Id of the domain this blog belongs to

Blog

public Blog(int iId,
            int iDomainId,
            java.lang.String strBlogFolder,
            java.lang.String strCaption,
            java.lang.String strComments,
            java.sql.Timestamp creationTimestamp,
            java.sql.Timestamp modificationTimestamp)
Create blog from a given parameters.

Parameters:
iId - - Unique ID identifying this Blog
iDomainId - - Id of the domain this blog belongs to
strBlogFolder - - Folder allows to categorize Blogs to groups
strCaption - - More descriptive name of the Blog
strComments - - Any additional description of the Blog
creationTimestamp - - Timestamp when the Blog was created
modificationTimestamp - - Timestamp when the Blog was last time modified
Method Detail

getFolder

public java.lang.String getFolder()
Folder allows to organize blogs within folders.

Returns:
String

getCaption

public java.lang.String getCaption()
Caption is more descriptive name of the blog.

Returns:
String

getComments

public java.lang.String getComments()
Comments is any additional description of the blog.

Returns:
String

getCaptionMaxLengthStatic

public static int getCaptionMaxLengthStatic()
Returns:
int

getCaptionMaxLength

public int getCaptionMaxLength()
Returns:
int

getCommentsMaxLengthStatic

public static int getCommentsMaxLengthStatic()
Returns:
int

getCommentsMaxLength

public int getCommentsMaxLength()
Returns:
int

getFolderMaxLengthStatic

public static int getFolderMaxLengthStatic()
Returns:
int

getFolderMaxLength

public int getFolderMaxLength()
Returns:
int

setCaptionMaxLength

public static void setCaptionMaxLength(int iCaptionMaxLength)
Parameters:
iCaptionMaxLength - - maximal length for caption

setCommentsMaxLength

public static void setCommentsMaxLength(int iCommentsMaxLength)
Parameters:
iCommentsMaxLength - - maximal length for comments

setFolderMaxLength

public static void setFolderMaxLength(int iFolderMaxLength)
Parameters:
iFolderMaxLength - - maximal length for folder

getIsPreformated

public boolean getIsPreformated()
Flag signaling if the text contains formatting or not. Example of such formatting is a newline character.

Returns:
boolean

isSame

public boolean isSame(java.lang.Object oObject)

Specified by:
isSame in class org.opensubsystems.core.data.DataObject


Copyright © 2003 - 2007 OpenSubsystems s.r.o.