org.apache.shindig.social.core.model
Class MessageCollectionImpl

java.lang.Object
  extended by org.apache.shindig.social.core.model.MessageCollectionImpl
All Implemented Interfaces:
MessageCollection

public class MessageCollectionImpl
extends Object
implements MessageCollection

Default representation of a MessageCollection


Nested Class Summary
 
Nested classes/interfaces inherited from interface org.apache.shindig.social.opensocial.model.MessageCollection
MessageCollection.Field
 
Field Summary
 
Fields inherited from interface org.apache.shindig.social.opensocial.model.MessageCollection
ALL, OUTBOX
 
Constructor Summary
MessageCollectionImpl()
           
 
Method Summary
 String getId()
          Gets the unique ID of the message collection.
 String getTitle()
          Gets the title of the message collection.
 Integer getTotal()
          Gets the total number of messages for this collection.
 Integer getUnread()
          Gets the total number of unread messages.
 Date getUpdated()
          Returns the last time this message collection was modified.
 List<Url> getUrls()
          Get the URLs related to the message collection.
 void setId(String id)
          Sets the unique ID of the message collection.
 void setTitle(String title)
          Sets the title of the message message collection.
 void setTotal(Integer total)
          Sets the total number of messages for this collection
 void setUnread(Integer unread)
          Sets the total number of unread messages.
 void setUpdated(Date updated)
          Sets the updated time for this message collection.
 void setUrls(List<Url> urls)
          Set the URLs related to the message collection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MessageCollectionImpl

public MessageCollectionImpl()
Method Detail

getId

public String getId()
Description copied from interface: MessageCollection
Gets the unique ID of the message collection.

Specified by:
getId in interface MessageCollection
Returns:
the ID of the message

setId

public void setId(String id)
Description copied from interface: MessageCollection
Sets the unique ID of the message collection.

Specified by:
setId in interface MessageCollection
Parameters:
id - the ID value to set

getTitle

public String getTitle()
Description copied from interface: MessageCollection
Gets the title of the message collection.

Specified by:
getTitle in interface MessageCollection
Returns:
the title of the message

setTitle

public void setTitle(String title)
Description copied from interface: MessageCollection
Sets the title of the message message collection.

Specified by:
setTitle in interface MessageCollection
Parameters:
title - the title of the message

getTotal

public Integer getTotal()
Description copied from interface: MessageCollection
Gets the total number of messages for this collection.

Specified by:
getTotal in interface MessageCollection
Returns:
the total number of messages

setTotal

public void setTotal(Integer total)
Description copied from interface: MessageCollection
Sets the total number of messages for this collection

Specified by:
setTotal in interface MessageCollection
Parameters:
total - the total number of messages

getUnread

public Integer getUnread()
Description copied from interface: MessageCollection
Gets the total number of unread messages.

Specified by:
getUnread in interface MessageCollection
Returns:
the total number of unread messages

setUnread

public void setUnread(Integer unread)
Description copied from interface: MessageCollection
Sets the total number of unread messages.

Specified by:
setUnread in interface MessageCollection
Parameters:
unread - the number of unread messages

getUpdated

public Date getUpdated()
Description copied from interface: MessageCollection
Returns the last time this message collection was modified.

Specified by:
getUpdated in interface MessageCollection
Returns:
the updated time

setUpdated

public void setUpdated(Date updated)
Description copied from interface: MessageCollection
Sets the updated time for this message collection.

Specified by:
setUpdated in interface MessageCollection

getUrls

public List<Url> getUrls()
Description copied from interface: MessageCollection
Get the URLs related to the message collection.

Specified by:
getUrls in interface MessageCollection
Returns:
the URLs related to the message collection

setUrls

public void setUrls(List<Url> urls)
Description copied from interface: MessageCollection
Set the URLs related to the message collection

Specified by:
setUrls in interface MessageCollection
Parameters:
urls - the URLs related to the message collection


Copyright © 2007-2012. All Rights Reserved.