|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jasig.portal.channel.dao.jpa.JpaChannelDefinitionDao
@Repository public class JpaChannelDefinitionDao
JPA/Hibernate implementation of IChannelDefinitionDao. This DAO handles channel definitions, their parameters, and their localization strings.
| Constructor Summary | |
|---|---|
JpaChannelDefinitionDao()
|
|
| Method Summary | |
|---|---|
IChannelDefinition |
createChannelDefinition(IChannelType channelType,
String fname,
String clazz,
String name,
String title)
Creates, initializes and persists a new IChannelDefinition based on the specified parameters |
void |
deleteChannelDefinition(IChannelDefinition definition)
Removes the specified IChannelDefinition from the persistent store. |
IChannelDefinition |
getChannelDefinition(int id)
Get a IChannelDefinition for the specified id. |
IChannelDefinition |
getChannelDefinition(String fname)
Get a IChannelDefinition for the specified functional name |
IChannelDefinition |
getChannelDefinitionByName(String name)
Get a IChannelDefinition for the specified channel name. |
List<IChannelDefinition> |
getChannelDefinitions()
|
void |
setEntityManager(EntityManager entityManager)
|
IChannelDefinition |
updateChannelDefinition(IChannelDefinition definition)
Persists changes to a IChannelDefinition. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JpaChannelDefinitionDao()
| Method Detail |
|---|
public void setEntityManager(EntityManager entityManager)
entityManager - the entityManager to set
@Transactional
public IChannelDefinition createChannelDefinition(IChannelType channelType,
String fname,
String clazz,
String name,
String title)
IChannelDefinitionDaoIChannelDefinition based on the specified parameters
createChannelDefinition in interface IChannelDefinitionDaochannelType - The type the channel is based onfname - A unique, human-readable key for the channel. Must match the regular expression FunctionalNameType.VALID_FNAME_PATTERNclazz - A fully qualified Java class name that implements the IChannel interface. This is the class the portal will execute when rendering the channel.name - The display name for the channel, this is shown in administrative UIstitle - The title used on portal generated chrome
IChannelDefinition@Transactional public void deleteChannelDefinition(IChannelDefinition definition)
IChannelDefinitionDaoIChannelDefinition from the persistent store.
deleteChannelDefinition in interface IChannelDefinitionDaodefinition - The definition to remove.public List<IChannelDefinition> getChannelDefinitions()
getChannelDefinitions in interface IChannelDefinitionDaoList of all persisted IChannelDefinitionspublic IChannelDefinition getChannelDefinition(int id)
IChannelDefinitionDaoIChannelDefinition for the specified id.
getChannelDefinition in interface IChannelDefinitionDaoid - The id to get the definition for.
public IChannelDefinition getChannelDefinition(String fname)
IChannelDefinitionDaoIChannelDefinition for the specified functional name
getChannelDefinition in interface IChannelDefinitionDaofname - The fname to get the definition for.
public IChannelDefinition getChannelDefinitionByName(String name)
IChannelDefinitionDaoIChannelDefinition for the specified channel name.
getChannelDefinitionByName in interface IChannelDefinitionDaoname - The name to get the definition for.
@Transactional public IChannelDefinition updateChannelDefinition(IChannelDefinition definition)
IChannelDefinitionDaoIChannelDefinition.
updateChannelDefinition in interface IChannelDefinitionDaodefinition - The channel definition to store the changes for
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||