public class ChannelDaoJdbc extends Object implements IChannelDao
Constructor and Description |
---|
ChannelDaoJdbc() |
Modifier and Type | Method and Description |
---|---|
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.
|
String |
generateRandomChannelPrefix(ITransaction transaction)
Generates a new random channel prefix, that is not already in use.
|
ChannelConfig |
get(String channelId,
ITransaction transaction)
Returns the channel with the specified channelId.
|
int |
getChannelTreeCount(String rootChannelId,
ITransaction transaction) |
List<String> |
getChannelTreeIds(String rootChannelId,
boolean includeIgnoredOnImportExportChannels,
ITransaction transaction)
Returns the tree identifiers of the root channel identified by the given identifier.
|
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.
|
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 List<String> getChannelTreeIds(String rootChannelId, boolean includeIgnoredOnImportExportChannels, ITransaction transaction) throws DaoException, PortalException
IChannelDao
getChannelTreeIds
in interface IChannelDao
rootChannelId
- the root channel identifier.includeIgnoredOnImportExportChannels
- indicates whether the ignored channels on export and import should be ignored.transaction
- the transaction.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
public String generateRandomChannelPrefix(ITransaction transaction) throws PortalException
IChannelDao
generateRandomChannelPrefix
in interface IChannelDao
transaction
- the transaction for persistence access.PortalException
LumisXP 12.3.0.200408 - Copyright © 2006–2020 Lumis EIP Tecnologia da Informação LTDA. All Rights Reserved.