org.jasig.portal.channel
Class JpaChannelRegistryStore

java.lang.Object
  extended by org.jasig.portal.AbstractChannelRegistryStore
      extended by org.jasig.portal.channel.JpaChannelRegistryStore
All Implemented Interfaces:
IChannelRegistryStore

Deprecated. IChannel rendering code will be replaced with portlet specific rendering code in a future release

@Deprecated
public final class JpaChannelRegistryStore
extends AbstractChannelRegistryStore

JpaChannelRegistryStore is a JPA/Hibernate implementation of the IChannelRegistryStore interface. This implementation currently handles IChannelDefinition and IChannelType persistence, while leaving GAP-based category methods to the parent abstract class.

Author:
Jen Bourey, jbourey@unicon.net

Constructor Summary
JpaChannelRegistryStore()
          Deprecated.  
 
Method Summary
 void deleteChannelDefinition(IChannelDefinition channelDef)
          Deprecated. Permanently deletes a channel definition from the store.
 void deleteChannelType(IChannelType chanType)
          Deprecated. Deletes a channel type.
 IChannelDefinition getChannelDefinition(int channelId)
          Deprecated. Get a channel definition.
 IChannelDefinition getChannelDefinition(String fname)
          Deprecated. Get a channel definition.
 IChannelDefinition getChannelDefinitionByName(String name)
          Deprecated. Get a channel definition by name.
 List<IChannelDefinition> getChannelDefinitions()
          Deprecated. Get all channel definitions including ones that haven't been approved.
 List<IChannelDefinition> getChannelDefinitions(IPerson person)
          Deprecated. Get all channel definitions filtered by a user's channel permissions
 IChannelType getChannelType(int channelTypeId)
          Deprecated. Get the channel type associated with a particular identifier.
 IChannelType getChannelType(String name)
          Deprecated. Get the channel type associated with a particular identifier.
 List<IChannelType> getChannelTypes()
          Deprecated. Returns an array of ChannelTypes.
 IChannelType getOrCreateChannelType(String name, String clazz, String cpdUri)
          Deprecated. Convience for IChannelRegistryStore.getChannelType(String) and IChannelRegistryStore.newChannelType(String, String, String).
 IChannelDefinition newChannelDefinition(int channelTypeId, String fname, String clazz, String name, String title)
          Deprecated. Create a new ChannelDefinition object.
 IChannelType newChannelType(String name, String clazz, String cpdUri)
          Deprecated. Creates a new channel type.
 void saveChannelDefinition(IChannelDefinition channelDef)
          Deprecated. Persists a channel definition.
 IChannelType saveChannelType(IChannelType chanType)
          Deprecated. Persists a channel type.
 void setChannelDao(IChannelDefinitionDao channelDao)
          Deprecated. Set the dao for channel definition persistence.
 void setChannelTypeDao(IChannelTypeDao channelTypeDao)
          Deprecated. Set the dao for channel type persistence.
 void setPortletDefinitionRegistry(IPortletDefinitionRegistry portletDefinitionRegistry)
          Deprecated. Set the portlet definition registry.
 
Methods inherited from class org.jasig.portal.AbstractChannelRegistryStore
addCategoryToCategory, addChannelToCategory, approveChannelDefinition, deleteChannelCategory, disapproveChannelDefinition, getAllChildCategories, getAllChildChannels, getAllChildChannels, getAllManageableChildChannels, getChannelCategory, getChildCategories, getChildChannels, getChildChannels, getManageableChildChannels, getParentCategories, getParentCategories, getTopLevelChannelCategory, newChannelCategory, newChannelCategory, removeCategoryFromCategory, removeChannelFromCategory, saveChannelCategory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JpaChannelRegistryStore

public JpaChannelRegistryStore()
Deprecated. 
Method Detail

setChannelDao

public void setChannelDao(IChannelDefinitionDao channelDao)
Deprecated. 
Set the dao for channel definition persistence.

Parameters:
channelDao -

setChannelTypeDao

public void setChannelTypeDao(IChannelTypeDao channelTypeDao)
Deprecated. 
Set the dao for channel type persistence.

Parameters:
channelTypeDao -

setPortletDefinitionRegistry

public void setPortletDefinitionRegistry(IPortletDefinitionRegistry portletDefinitionRegistry)
Deprecated. 
Set the portlet definition registry.

Parameters:
portletDefinitionRegistry -

newChannelDefinition

public IChannelDefinition newChannelDefinition(int channelTypeId,
                                               String fname,
                                               String clazz,
                                               String name,
                                               String title)
Deprecated. 
Description copied from interface: IChannelRegistryStore
Create a new ChannelDefinition object.

Returns:
the new channel definition

getChannelDefinition

public IChannelDefinition getChannelDefinition(int channelId)
Deprecated. 
Description copied from interface: IChannelRegistryStore
Get a channel definition.

Parameters:
channelId - a channel publish ID
Returns:
a definition of the channel or null if no matching channel definition can be found

getChannelDefinition

public IChannelDefinition getChannelDefinition(String fname)
Deprecated. 
Description copied from interface: IChannelRegistryStore
Get a channel definition. If there is more than one channel definition with the given functional name, then the first one will be returned.

Parameters:
fname - a channel functional name
Returns:
a definition of the channel or null if no matching channel definition can be found

getChannelDefinitionByName

public IChannelDefinition getChannelDefinitionByName(String name)
Deprecated. 
Description copied from interface: IChannelRegistryStore
Get a channel definition by name.

Parameters:
name - a channel name
Returns:
a definition of the channel or null if no matching channel definition can be found

saveChannelDefinition

public void saveChannelDefinition(IChannelDefinition channelDef)
Deprecated. 
Description copied from interface: IChannelRegistryStore
Persists a channel definition.

Parameters:
channelDef - the channel definition

deleteChannelDefinition

public void deleteChannelDefinition(IChannelDefinition channelDef)
Deprecated. 
Description copied from interface: IChannelRegistryStore
Permanently deletes a channel definition from the store.

Parameters:
channelDef - the channel definition

getChannelDefinitions

public List<IChannelDefinition> getChannelDefinitions()
Deprecated. 
Description copied from interface: IChannelRegistryStore
Get all channel definitions including ones that haven't been approved.

Returns:
channelDefs, the channel definitions

getChannelDefinitions

public List<IChannelDefinition> getChannelDefinitions(IPerson person)
Deprecated. 
Description copied from interface: IChannelRegistryStore
Get all channel definitions filtered by a user's channel permissions

Returns:
the filtered list of channel definitions

newChannelType

public IChannelType newChannelType(String name,
                                   String clazz,
                                   String cpdUri)
Deprecated. 
Description copied from interface: IChannelRegistryStore
Creates a new channel type.

Returns:
the new channel type

getOrCreateChannelType

public IChannelType getOrCreateChannelType(String name,
                                           String clazz,
                                           String cpdUri)
Deprecated. 
Description copied from interface: IChannelRegistryStore
Convience for IChannelRegistryStore.getChannelType(String) and IChannelRegistryStore.newChannelType(String, String, String). If the get returns null the type will be created and returned. If the get returns an IChannelType the clazz and cpdUri parameters are ignored

See Also:
IChannelRegistryStore.getChannelType(String), IChannelRegistryStore.newChannelType(String, String, String)

getChannelType

public IChannelType getChannelType(int channelTypeId)
Deprecated. 
Description copied from interface: IChannelRegistryStore
Get the channel type associated with a particular identifier.

Parameters:
channelTypeId - the channel type identifier
Returns:
channelType the channel type

getChannelType

public IChannelType getChannelType(String name)
Deprecated. 
Description copied from interface: IChannelRegistryStore
Get the channel type associated with a particular identifier.

Parameters:
name - the channel type name
Returns:
channelType the channel type

getChannelTypes

public List<IChannelType> getChannelTypes()
Deprecated. 
Description copied from interface: IChannelRegistryStore
Returns an array of ChannelTypes.

Returns:
the list of publishable channel types

saveChannelType

public IChannelType saveChannelType(IChannelType chanType)
Deprecated. 
Description copied from interface: IChannelRegistryStore
Persists a channel type.

Parameters:
chanType - a channel type

deleteChannelType

public void deleteChannelType(IChannelType chanType)
Deprecated. 
Description copied from interface: IChannelRegistryStore
Deletes a channel type. The deletion will only succeed if no existing channels reference the channel type.

Parameters:
chanType - a channel type


Copyright © 2010 Jasig. All Rights Reserved.