/**
* 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";
/**
* Archive utility interface that handles nodes with primary node type sv:archive.
*
*
* An instance of the Sitevision class implementing this interface can be obtained via {@link senselogic.sitevision.api.Utils#getArchiveUtil()}.
* See {@link senselogic.sitevision.api.Utils} for how to obtain an instance of the Utils interface.
*
* Creates an archive as sub node of the specified parent. *
*
* The parent may be either a {@code sv:sitePage}, {@code sv:page}, {@code sv:folder}, {@code sv:article}
* or a {@code sv:collaborationGroupPage}.
* If an other parent is specified a ConstraintViolationException is thrown.
*
Any name can be given an archive. If null is provided a NullPointerException is thrown.
The current user must be authorized to create archives and to do write operations on the parent node or
* a ConstraintViolationException will be thrown.
Note that a new archive inherits metadata and permissions from its parent.
* @param aParent the parent node of the sv:archive. May not benull
* @param aName the name of the archive. May not be null
* @return the newly created sv:archive node.
* @throws ConstraintViolationException if an invalid parent is specified or if the current user
is not authorized to create an archive
* @throws RepositoryException if something else goes wrong
*/
createArchive(aParent: Node, aName: String | string): Node;
/**
* Alters the name of an archive. If no archive is specified a NullPointerException
* is thrown. If the node is not a sv:archive an IllegalArgumentException is thrown.
Any name can be given an archive. If null is provided a NullPointerException is thrown.
The current user must be authorized to do write operations on the archive or
* a ConstraintViolationException will be thrown.
null
* @param aName the new name of the archive. May not be null
* @throws ConstraintViolationException if the current user is not authorized to alter the name of the
archive
* @throws RepositoryException if something else goes wrong
*/
renameArchive(anArchive: Node, aName: String | string): void;
}
declare namespace ArchiveUtil {}
declare var archiveUtil: ArchiveUtil;
export default archiveUtil;