|
||||||||||
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(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,
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. |
Method Detail |
---|
void add(ChannelConfig channelConfig, ITransaction transaction) throws DaoException, PortalException
channelConfig
- transaction
-
DaoException
PortalException
ChannelConfig get(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(String channelId, ITransaction transaction) throws DaoException, PortalException
channelId
- transaction
-
DaoException
PortalException
List<String> getSubChannelIds(String channelId, ITransaction transaction) throws DaoException, PortalException
channelId
- transaction
-
DaoException
PortalException
void addCss(String channelId, String cssId, int position, ITransaction transaction) throws DaoException, PortalException
channelId
- cssId
- position
- transaction
-
DaoException
PortalException
void deleteCss(String channelId, String cssId, ITransaction transaction) throws DaoException, PortalException
channelId
- cssId
- transaction
-
DaoException
PortalException
List<String> getCssIds(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
List<String> getIdsByParentTemplateId(String parentTemplateId, ITransaction transaction) throws DaoException, PortalException
parentTemplateId
- transaction
-
DaoException
PortalException
Collection<String> getIdsByPageTemplateId(String pageTemplateId, ITransaction transaction) throws DaoException, PortalException
pageTemplateId
- transaction
-
DaoException
PortalException
int getChannelTreeCount(String rootChannelId, ITransaction transaction) throws DaoException, PortalException
DaoException
PortalException
List<String> getChannelTreeIds(String rootChannelId, ITransaction transaction) throws DaoException, PortalException
DaoException
PortalException
String getIdByChannelPrefix(ChannelConfig channelConfig, ITransaction transaction) throws DaoException, PortalException
DaoException
PortalException
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 |