|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object lumis.portal.channel.ChannelDaoJdbc
public class ChannelDaoJdbc
Dao implementation for channels, based on JDBC.
Constructor Summary | |
---|---|
ChannelDaoJdbc()
|
Method Summary | |
---|---|
void |
add(ChannelConfig channelConfig,
ITransaction transaction)
Add the channel. |
void |
addCss(String channelId,
String cssId,
int position,
ITransaction transaction)
Add the CSS of the channel. |
boolean |
checkForChannelPrefix(ChannelConfig channelConfig,
ITransaction transaction)
Returns if the channel prefix for local groups is already in use. |
void |
delete(String channelId,
ITransaction transaction)
Delete the channel. |
void |
deleteCss(String channelId,
String cssId,
ITransaction transaction)
Delete the CSS of the channel. |
ChannelConfig |
get(String channelId,
ITransaction transaction)
Returns the channel with the specified channelId. |
int |
getChannelTreeCount(String rootChannelId,
ITransaction transaction)
|
List<String> |
getChannelTreeIds(String rootChannelId,
ITransaction transaction)
|
List<String> |
getCssIds(String channelId,
ITransaction transaction)
Get the ids of the channel's CSS. |
String |
getIdByChannelPrefix(ChannelConfig channelConfig,
ITransaction transaction)
|
Collection<String> |
getIdsByPageTemplateId(String pageTemplateId,
ITransaction transaction)
Get the Ids of all channels that have the specified page template as the default page template |
List<String> |
getIdsByParentTemplateId(String parentTemplateId,
ITransaction transaction)
Get the Ids of all channels associated with the specified template id. |
List<String> |
getSubChannelIds(String channelId,
ITransaction transaction)
Get a list with ids of the sub channels. |
void |
update(ChannelConfig channelConfig,
ITransaction transaction)
Update the channel. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ChannelDaoJdbc()
Method Detail |
---|
public ChannelConfig get(String channelId, ITransaction transaction) throws DaoException, PortalException
IChannelDao
get
in interface IChannelDao
channelId
- the channelId.transaction
- the transaction for persistence access.
PortalObjectNotFoundException
- if the channel was not found.
DaoException
PortalException
public void add(ChannelConfig channelConfig, ITransaction transaction) throws DaoException, PortalException
IChannelDao
add
in interface IChannelDao
DaoException
PortalException
public void update(ChannelConfig channelConfig, ITransaction transaction) throws DaoException, PortalException
IChannelDao
update
in interface IChannelDao
DaoException
PortalException
public List<String> getSubChannelIds(String channelId, ITransaction transaction) throws DaoException, PortalException
IChannelDao
getSubChannelIds
in interface IChannelDao
DaoException
PortalException
public int getChannelTreeCount(String rootChannelId, ITransaction transaction) throws DaoException, PortalException
getChannelTreeCount
in interface IChannelDao
DaoException
PortalException
public List<String> getChannelTreeIds(String rootChannelId, ITransaction transaction) throws DaoException, PortalException
getChannelTreeIds
in interface IChannelDao
DaoException
PortalException
public void delete(String channelId, ITransaction transaction) throws DaoException, PortalException
IChannelDao
delete
in interface IChannelDao
DaoException
PortalException
public void addCss(String channelId, String cssId, int position, ITransaction transaction) throws DaoException, PortalException
IChannelDao
addCss
in interface IChannelDao
DaoException
PortalException
public void deleteCss(String channelId, String cssId, ITransaction transaction) throws DaoException, PortalException
IChannelDao
deleteCss
in interface IChannelDao
DaoException
PortalException
public List<String> getCssIds(String channelId, ITransaction transaction) throws DaoException, PortalException
IChannelDao
getCssIds
in interface IChannelDao
DaoException
PortalException
public boolean checkForChannelPrefix(ChannelConfig channelConfig, ITransaction transaction) throws DaoException, PortalException
IChannelDao
checkForChannelPrefix
in interface IChannelDao
PortalException
UnexpectedException
DaoException
public String getIdByChannelPrefix(ChannelConfig channelConfig, ITransaction transaction) throws DaoException, PortalException
getIdByChannelPrefix
in interface IChannelDao
DaoException
PortalException
public List<String> getIdsByParentTemplateId(String parentTemplateId, ITransaction transaction) throws DaoException, PortalException
IChannelDao
getIdsByParentTemplateId
in interface IChannelDao
DaoException
PortalException
public Collection<String> getIdsByPageTemplateId(String pageTemplateId, ITransaction transaction) throws DaoException, PortalException
IChannelDao
getIdsByPageTemplateId
in interface IChannelDao
DaoException
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |