|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IChannelDao
Dao Interface for Channel entity
Method Summary | |
---|---|
void |
add(ChannelConfig channelConfig,
ITransaction transaction)
Add the channel. |
void |
addCss(java.lang.String channelId,
java.lang.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(java.lang.String channelId,
ITransaction transaction)
Delete the channel. |
void |
deleteCss(java.lang.String channelId,
java.lang.String cssId,
ITransaction transaction)
Delete the CSS of the channel. |
java.lang.String |
generateRandomChannelPrefix(ITransaction transaction)
Generates a new random channel prefix, that is not already in use. |
ChannelConfig |
get(java.lang.String channelId,
ITransaction transaction)
Returns the channel with the specified channelId. |
int |
getChannelTreeCount(java.lang.String rootChannelId,
ITransaction transaction)
|
java.util.List<java.lang.String> |
getChannelTreeIds(java.lang.String rootChannelId,
ITransaction transaction)
|
java.util.List<java.lang.String> |
getCssIds(java.lang.String channelId,
ITransaction transaction)
Get the ids of the channel's CSS. |
java.lang.String |
getIdByChannelPrefix(ChannelConfig channelConfig,
ITransaction transaction)
|
java.util.Collection<java.lang.String> |
getIdsByPageTemplateId(java.lang.String pageTemplateId,
ITransaction transaction)
Get the Ids of all channels that have the specified page template as the default page template |
java.util.List<java.lang.String> |
getIdsByParentTemplateId(java.lang.String parentTemplateId,
ITransaction transaction)
Get the Ids of all channels associated with the specified template id. |
java.util.List<java.lang.String> |
getSubChannelIds(java.lang.String channelId,
ITransaction transaction)
Get a list with ids of the sub channels. |
void |
update(ChannelConfig channelConfig,
ITransaction transaction)
Update the channel. |
Method Detail |
---|
void add(ChannelConfig channelConfig, ITransaction transaction) throws DaoException, PortalException
channelConfig
- transaction
-
DaoException
PortalException
ChannelConfig get(java.lang.String channelId, ITransaction transaction) throws DaoException, PortalException
channelId
- the channelId.transaction
- the transaction for persistence access.
PortalObjectNotFoundException
- if the channel was not found.
DaoException
PortalException
void update(ChannelConfig channelConfig, ITransaction transaction) throws DaoException, PortalException
channelConfig
- transaction
-
DaoException
PortalException
void delete(java.lang.String channelId, ITransaction transaction) throws DaoException, PortalException
channelId
- transaction
-
DaoException
PortalException
java.util.List<java.lang.String> getSubChannelIds(java.lang.String channelId, ITransaction transaction) throws DaoException, PortalException
channelId
- transaction
-
DaoException
PortalException
void addCss(java.lang.String channelId, java.lang.String cssId, int position, ITransaction transaction) throws DaoException, PortalException
channelId
- cssId
- position
- transaction
-
DaoException
PortalException
void deleteCss(java.lang.String channelId, java.lang.String cssId, ITransaction transaction) throws DaoException, PortalException
channelId
- cssId
- transaction
-
DaoException
PortalException
java.util.List<java.lang.String> getCssIds(java.lang.String channelId, ITransaction transaction) throws DaoException, PortalException
channelId
- transaction
-
DaoException
PortalException
boolean checkForChannelPrefix(ChannelConfig channelConfig, ITransaction transaction) throws DaoException, PortalException
channelConfig
- transaction
-
PortalException
UnexpectedException
DaoException
java.util.List<java.lang.String> getIdsByParentTemplateId(java.lang.String parentTemplateId, ITransaction transaction) throws DaoException, PortalException
parentTemplateId
- transaction
-
DaoException
PortalException
java.util.Collection<java.lang.String> getIdsByPageTemplateId(java.lang.String pageTemplateId, ITransaction transaction) throws DaoException, PortalException
pageTemplateId
- transaction
-
DaoException
PortalException
int getChannelTreeCount(java.lang.String rootChannelId, ITransaction transaction) throws DaoException, PortalException
DaoException
PortalException
java.util.List<java.lang.String> getChannelTreeIds(java.lang.String rootChannelId, ITransaction transaction) throws DaoException, PortalException
DaoException
PortalException
java.lang.String getIdByChannelPrefix(ChannelConfig channelConfig, ITransaction transaction) throws DaoException, PortalException
DaoException
PortalException
java.lang.String generateRandomChannelPrefix(ITransaction transaction) throws PortalException
transaction
- the transaction for persistence access.
PortalException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |