/** * This file is auto generated from JavaDoc. Do not modify it manually. */ import type { String } from "../../types/java/lang/String"; import type { Node } from "../../types/javax/jcr/Node"; /** * Channel utility interface. * *
* An instance of the Sitevision class implementing this interface can be obtained via
* {@link MessagesFactory#getChannelUtil()}.
* See {@link MessagesFactory} for how to obtain an instance of the MessagesFactory interface.
*
* A ConstraintViolationException will be thrown if social collaboration is not enabled
* Or if current user is attempting to create a private channel without
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#CREATE_PRIVATE_CHANNELS} permission.
*
* A IllegalArgumentException will be thrown if aName is null, blank or exceeds 80 characters.
*
* A ItemExistsException will be thrown if a channel with the same name already exists.
*
* A RepositoryException will be thrown If an error occurs while fetching channels
*
channel, or null.
*/
createChannel(
aName: String | string,
aDescription: String | string,
aPrivate: boolean
): Node;
/**
* Searches for a channel by name.
*
* * Permission note Private channels can only be found by members. *
* *
* A ConstraintViolationException will be thrown if social collaboration is not enabled.
*
* A RepositoryException will be thrown if an error occurs while fetching channels.
*