com.binaryfantasy.murq.content
Interface IContent

All Known Subinterfaces:
IBinaryContent
All Known Implementing Classes:
BinaryContentAdapter, ContentAdapter

public interface IContent

Defines the essential properties of content to be persisted.

Author:
Bill Weiss

Method Summary
 String getContentId()
          Returns the unique identifier of this content.
 Date getCreationDate()
          Returns the date the content was first persisted, or null if not yet persisted.
 Date getLastModifiedDate()
          Returns the date the content was last persisted, or null if not yet persisted.
 Locale getLocale()
          Returns the locale this content is meant for, or null if default.
 void setContentId(String contentId)
          Sets the unique identifier of this content.
 void setCreationDate(Date date)
          Sets the date the content was first persisted.
 void setLastModifiedDate(Date date)
          Sets the date the content was last persisted.
 void setLocale(Locale locale)
          Sets the locale this content is meant for.
 

Method Detail

getContentId

String getContentId()
Returns the unique identifier of this content.

Returns:
the unique identifier of this content.

setContentId

void setContentId(String contentId)
Sets the unique identifier of this content.

FOR INTERNAL USE ONLY.

Parameters:
contentId - the unique identifier of this content.

getLocale

Locale getLocale()
Returns the locale this content is meant for, or null if default.

Returns:
the locale this content is meant for, or null if default.

setLocale

void setLocale(Locale locale)
Sets the locale this content is meant for.

Parameters:
locale - the locale this content is meant for, or null if default.

getCreationDate

Date getCreationDate()
Returns the date the content was first persisted, or null if not yet persisted.

Returns:
the date the content was first persisted, or null if not yet persisted.

setCreationDate

void setCreationDate(Date date)
Sets the date the content was first persisted.

FOR INTERNAL USE ONLY.

Parameters:
date - the date the content was first persisted.

getLastModifiedDate

Date getLastModifiedDate()
Returns the date the content was last persisted, or null if not yet persisted.

Returns:
the date the content was last persisted, or null if not yet persisted.

setLastModifiedDate

void setLastModifiedDate(Date date)
Sets the date the content was last persisted.

FOR INTERNAL USE ONLY.

Parameters:
date - the date the content was last persisted.


Copyright (c) 2000-2006, BinaryFantasy.com