You are here

createContainer

The createContainer methods create new site containers.

createContainer

The createContainer(componentId) method creates a new site container of type cm:folder.

Parameters

componentId
The component identifier

createContainer

The createContainer(componentId, folderType) method creates a new site container of the given type (type of container of subtype of cm:folder).

Parameters

componentId
The component identifier
folderType
The type of folder to create. If this is null, it creates a standard folder.

createContainer

The createContainer(componentId, folderType, permissions) method creates a new site container of the given type and applies the provided permissions (a map of authorities and permissions) to the created container.

Parameters

componentId
The component identifier
folderType
The type of folder to create. If this is null, it creates a standard folder.
permissions
The permissions for the site.