/** * This file is auto generated from JavaDoc. Do not modify it manually. */ import type { Node } from "../../types/javax/jcr/Node"; import type { String } from "../../types/java/lang/String"; import type CollaborationGroupType from "../CollaborationGroupType"; /** * Collaboration group utility interface. * *
* Note! This interface is used to create collaboration groups. You would typically use * {@link senselogic.sitevision.api.collaboration.CollaborationGroupWrapper} to update an existing * collaboration group. *
* *
* An instance of the Sitevision class implementing this interface can be obtained via {@link CollaborationFactory#getCollaborationGroupUtil()}.
* See {@link CollaborationFactory} for how to obtain an instance of the CollaborationFactory interface.
*
* * This is a legacy convenience method that delegates to {@link #createCollaborationGroup(Node, Node, String, CollaborationGroupType)} * using {@link CollaborationGroupType#OPEN} as group type. * *
* @param aGroupTemplate the collaboration group template (sv:collaborationGroupTemplate) to use when creating the collaboration group page of the collaboration group * @param aGroupFolder the collaboration group folder (sv:collaborationGroupFolder) where the collaboration group page of the collaboration group should reside * @param aGroupName the name of the collaboration group * @return The created collaboration group (sv:collaborationGroup) * @throws java.lang.NullPointerException ifaGroupTemplate, aGroupFolder or aGroupName
is null
* @throws ConstraintViolationException if aGroupTemplate or aGroupFolder is of invalid type,
if aGroupName is whitespace only,
if aGroupFolder already contains a collaboration group named aGroupName (case ignored)
or if current user is not authorized to create the collaboration group
* @throws RepositoryException if something else goes wrong
* @see #createCollaborationGroup(Node, Node, String, CollaborationGroupType)
*/
createCollaborationGroup(
aGroupTemplate: Node,
aGroupFolder: Node,
aGroupName: String | string
): Node;
/**
* Creates a collaboration group.
*
*
* Permission note! Current user must have
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#READ} on aGroupTemplate
* and {@link senselogic.sitevision.api.security.PermissionUtil.Permission#CREATE_COLLABORATION_GROUP} on aGroupFolder.
* In order to create a {@link CollaborationGroupType#CLOSED} collaboration group, current user must also have
* {@link senselogic.sitevision.api.security.PermissionUtil.Permission#CREATE_CLOSED_COLLABORATION_GROUP} on aGroupFolder.
*
* User note! Current user must have a user identity as it will be the administrator of the created
* group. Anonymous users doesn't have a user identity, nor the Indexer, Validator or the Extractor.
* In other words: {@link senselogic.sitevision.api.context.PortletContextUtil#getCurrentUserIdentity()} must be non-null.
*
* Tip! Use {@link CollaborationGroupTemplateUtil} to get a group template, * use {@link CollaborationGroupFolderUtil} to get the default group folder (and perhaps check if the collaboration folder already contains * a collaboration group with specified name). Use {@link CollaborationGroupWrapper} to update the group that is created. *
* @param aGroupTemplate the collaboration group template (sv:collaborationGroupTemplate) to use when creating the collaboration group page of the collaboration group * @param aGroupFolder the collaboration group folder (sv:collaborationGroupFolder) where the collaboration group page of the collaboration group should reside * @param aGroupName the name of the collaboration group * @param aGroupType the group type, note that {@link CollaborationGroupType#CLOSED} needs additional permission * @return The created collaboration group (sv:collaborationGroup) * @throws java.lang.NullPointerException ifaGroupTemplate, aGroupFolder, aGroupName
or aGroupType is null
* @throws ConstraintViolationException if aGroupTemplate or aGroupFolder is of invalid type,
if aGroupName is whitespace only,
if aGroupFolder already contains a collaboration group named aGroupName (case ignored)
or if current user is not authorized to create the collaboration group (see permission note above)
* @throws RepositoryException if something else goes wrong
* @since Sitevision 4.1
*/
createCollaborationGroup(
aGroupTemplate: Node,
aGroupFolder: Node,
aGroupName: String | string,
aGroupType: CollaborationGroupType
): Node;
/**
* Removes a collaboration group.
*
*
* Note! When a collaboration group (sv:collaborationGroup) is removed,
* its collaboration group page (sv:collaborationGroupPage) is moved to the trashcan.
*
* Permission note! To remove a collaboration group current user must have * {@link senselogic.sitevision.api.security.PermissionUtil.Permission#MANAGE_COLLABORATION_GROUP} on the collaboration group page. *
* @param aCollaborationGroup a collaboration group to remove * @returntrue if aCollaborationGroup was removed, i.e. collaboration group page was moved to trashcan,
false otherwise.
* @since Sitevision 4.5.3
*/
removeCollaborationGroup(aCollaborationGroup: Node): boolean;
}
declare namespace CollaborationGroupUtil {}
declare var collaborationGroupUtil: CollaborationGroupUtil;
export default collaborationGroupUtil;