Copyright© 2008-2024 Sitevision AB, all rights reserved.
public interface ChannelWrapper extends Wrapper<Node>
This wrapper provides methods to update an existing channel (node of type sv:topic).
An instance of the Sitevision class implementing this interface can be obtained via
MessagesFactory.getChannelWrapper(javax.jcr.Node)
.
See MessagesFactory
for how to obtain an instance of the MessagesFactory interface.
Modifier and Type | Method and Description |
---|---|
boolean |
addMember(Node aUserIdentity)
Adds a user identity as member of the wrapped channel.
|
boolean |
isMember(Node aUserIdentity)
Checks if a user identity is a member of the wrapped channel.
|
boolean |
removeMember(Node aUserIdentity)
Removes a member from the wrapped channel.
|
boolean |
renameChannel(String aChannelName)
Alters the name of the wrapped channel.
|
boolean |
setChannelDescription(String aChannelDescription)
Alters the description of the wrapped channel.
|
boolean addMember(Node aUserIdentity)
Requires enabled Social collaboration, and for the operating user to have a social user identity.
Only non-members will be added, i.e. a user identity that already is a member will be ignored. Channels that are archived don't accept any new members.
Permission notes!
Open channels require the operating user to have either membership or the
PermissionUtil.Permission.MANAGE_CHANNELS
permission
when adding members other than self.
Private channels require the operating user to have membership.
aUserIdentity
- a user identity (or user)boolean removeMember(Node aUserIdentity)
Only members can be removed, i.e. a user identity that is a non-member will be ignored. Members can not be removed from channels that are archived.
Permission notes!
Open channels require the operating user to have one of the following:
PermissionUtil.Permission.MANAGE_CHANNELS
permission.
Private channels require the operating user to have one of the following:
PermissionUtil.Permission.MANAGE_CHANNELS
permission.
aUserIdentity
- a user identity (or user)boolean isMember(Node aUserIdentity)
aUserIdentity
- a user identity (or user)boolean renameChannel(String aChannelName)
Permission note Only the author or members with the
PermissionUtil.Permission.MANAGE_CHANNELS
permission can alter the channel name.
The new channel name most not exceed 80 characters in length and must be unique otherwise false will be returned.
aChannelName
- the new name of the channelboolean setChannelDescription(String aChannelDescription)
Permission note Only the author or members with the
PermissionUtil.Permission.MANAGE_CHANNELS
permission can alter the channel description.
aChannelDescription
- the new description of the channelSitevision - Portal and Content Management Made Easy
Sitevision is an advanced Java enterprise portal product and a portlet container (JSR 286) that implements Java Content Repository (JSR 283).
Copyright© 2008-2024 Sitevision AB, all rights reserved.