de.nava.informa.impl.basic
Class ChannelBuilder

java.lang.Object
  extended by de.nava.informa.impl.basic.ChannelBuilder
All Implemented Interfaces:
ChannelBuilderIF

public class ChannelBuilder
extends Object
implements ChannelBuilderIF

Factory for the creation of the channel object model with the in-memory implementation.

Author:
Niko Schmuck (niko@nava.de)

Constructor Summary
ChannelBuilder()
           
 
Method Summary
 void beginTransaction()
           
 void close()
          The following methods are only meaningful for persistent informa back end implementations such as Hibernate and are no-ops otherwise.
 CategoryIF createCategory(CategoryIF parent, String title)
           
 ChannelIF createChannel(org.jdom.Element channelElement, String title)
           
 ChannelIF createChannel(org.jdom.Element channelElement, String title, String location)
           
 ChannelIF createChannel(String title)
           
 ChannelIF createChannel(String title, String location)
           
 ChannelGroupIF createChannelGroup(String title)
           
 CloudIF createCloud(String domain, int port, String path, String registerProcedure, String protocol)
           
 ImageIF createImage(String title, URL location, URL link)
           
 ItemIF createItem(ChannelIF chan, ItemIF oldItem)
          Create an item from an existing item.
 ItemIF createItem(ChannelIF channel, String title, String description, URL link)
          Creates a news item and assign it to the given channel.
 ItemIF createItem(org.jdom.Element itemElement, ChannelIF channel, String title, String description, URL link)
           
 ItemEnclosureIF createItemEnclosure(ItemIF item, URL location, String type, int length)
           
 ItemGuidIF createItemGuid(ItemIF item, String location, boolean permaLink)
           
 ItemSourceIF createItemSource(ItemIF item, String name, String location, Date timestamp)
           
 TextInputIF createTextInput(String title, String description, String name, URL link)
           
 void endTransaction()
           
 void init(Properties props)
          Sets the runtime properties defined for this channel builder.
 void update(Object obj)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelBuilder

public ChannelBuilder()
Method Detail

init

public void init(Properties props)
          throws ChannelBuilderException
Description copied from interface: ChannelBuilderIF
Sets the runtime properties defined for this channel builder. This method will be invoked by the ChannelBuilderFactory when the ChannelBuilder is first created.

Specified by:
init in interface ChannelBuilderIF
Parameters:
props - The parsed set of properties which may be applied to this object.
Throws:
ChannelBuilderException - If the initialisation fails for some reason.

createChannelGroup

public ChannelGroupIF createChannelGroup(String title)
Specified by:
createChannelGroup in interface ChannelBuilderIF

createChannel

public ChannelIF createChannel(String title,
                               String location)
Specified by:
createChannel in interface ChannelBuilderIF

createChannel

public ChannelIF createChannel(org.jdom.Element channelElement,
                               String title,
                               String location)
Specified by:
createChannel in interface ChannelBuilderIF

createChannel

public ChannelIF createChannel(String title)
Specified by:
createChannel in interface ChannelBuilderIF

createChannel

public ChannelIF createChannel(org.jdom.Element channelElement,
                               String title)
Specified by:
createChannel in interface ChannelBuilderIF

createItem

public ItemIF createItem(ChannelIF channel,
                         String title,
                         String description,
                         URL link)
Description copied from interface: ChannelBuilderIF
Creates a news item and assign it to the given channel.

Specified by:
createItem in interface ChannelBuilderIF

createItem

public ItemIF createItem(org.jdom.Element itemElement,
                         ChannelIF channel,
                         String title,
                         String description,
                         URL link)
Specified by:
createItem in interface ChannelBuilderIF

createItem

public ItemIF createItem(ChannelIF chan,
                         ItemIF oldItem)
Create an item from an existing item.

Specified by:
createItem in interface ChannelBuilderIF
Parameters:
chan - - Channel in which the new item will be held
oldItem - - Old item which will provide the state for the new item
Returns:
-

createImage

public ImageIF createImage(String title,
                           URL location,
                           URL link)
Specified by:
createImage in interface ChannelBuilderIF

createTextInput

public TextInputIF createTextInput(String title,
                                   String description,
                                   String name,
                                   URL link)
Specified by:
createTextInput in interface ChannelBuilderIF

createCloud

public CloudIF createCloud(String domain,
                           int port,
                           String path,
                           String registerProcedure,
                           String protocol)
Specified by:
createCloud in interface ChannelBuilderIF

createItemSource

public ItemSourceIF createItemSource(ItemIF item,
                                     String name,
                                     String location,
                                     Date timestamp)
Specified by:
createItemSource in interface ChannelBuilderIF

createItemEnclosure

public ItemEnclosureIF createItemEnclosure(ItemIF item,
                                           URL location,
                                           String type,
                                           int length)
Specified by:
createItemEnclosure in interface ChannelBuilderIF

createItemGuid

public ItemGuidIF createItemGuid(ItemIF item,
                                 String location,
                                 boolean permaLink)
Specified by:
createItemGuid in interface ChannelBuilderIF

createCategory

public CategoryIF createCategory(CategoryIF parent,
                                 String title)
Specified by:
createCategory in interface ChannelBuilderIF

close

public void close()
           throws ChannelBuilderException
The following methods are only meaningful for persistent informa back end implementations such as Hibernate and are no-ops otherwise.

Specified by:
close in interface ChannelBuilderIF
Throws:
ChannelBuilderException

beginTransaction

public void beginTransaction()
                      throws ChannelBuilderException
Specified by:
beginTransaction in interface ChannelBuilderIF
Throws:
ChannelBuilderException

endTransaction

public void endTransaction()
                    throws ChannelBuilderException
Specified by:
endTransaction in interface ChannelBuilderIF
Throws:
ChannelBuilderException

update

public void update(Object obj)
Specified by:
update in interface ChannelBuilderIF


Copyright © 2002-2007 Niko Schmuck. All Rights Reserved.