|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.AbstractChannelRegistryStore
org.jasig.portal.channel.JpaChannelRegistryStore
@Deprecated public final class JpaChannelRegistryStore
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.
| 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 java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JpaChannelRegistryStore()
| Method Detail |
|---|
public void setChannelDao(IChannelDefinitionDao channelDao)
channelDao - public void setChannelTypeDao(IChannelTypeDao channelTypeDao)
channelTypeDao - public void setPortletDefinitionRegistry(IPortletDefinitionRegistry portletDefinitionRegistry)
portletDefinitionRegistry -
public IChannelDefinition newChannelDefinition(int channelTypeId,
String fname,
String clazz,
String name,
String title)
IChannelRegistryStore
public IChannelDefinition getChannelDefinition(int channelId)
IChannelRegistryStore
channelId - a channel publish ID
null if no matching channel definition can be foundpublic IChannelDefinition getChannelDefinition(String fname)
IChannelRegistryStore
fname - a channel functional name
null if no matching channel definition can be foundpublic IChannelDefinition getChannelDefinitionByName(String name)
IChannelRegistryStore
name - a channel name
null if no matching
channel definition can be foundpublic void saveChannelDefinition(IChannelDefinition channelDef)
IChannelRegistryStore
channelDef - the channel definitionpublic void deleteChannelDefinition(IChannelDefinition channelDef)
IChannelRegistryStore
channelDef - the channel definitionpublic List<IChannelDefinition> getChannelDefinitions()
IChannelRegistryStore
public List<IChannelDefinition> getChannelDefinitions(IPerson person)
IChannelRegistryStore
public IChannelType newChannelType(String name,
String clazz,
String cpdUri)
IChannelRegistryStore
public IChannelType getOrCreateChannelType(String name,
String clazz,
String cpdUri)
IChannelRegistryStoreIChannelRegistryStore.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
IChannelRegistryStore.getChannelType(String),
IChannelRegistryStore.newChannelType(String, String, String)public IChannelType getChannelType(int channelTypeId)
IChannelRegistryStore
channelTypeId - the channel type identifier
public IChannelType getChannelType(String name)
IChannelRegistryStore
name - the channel type name
public List<IChannelType> getChannelTypes()
IChannelRegistryStore
public IChannelType saveChannelType(IChannelType chanType)
IChannelRegistryStore
chanType - a channel typepublic void deleteChannelType(IChannelType chanType)
IChannelRegistryStore
chanType - a channel type
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||