aem-plugin / com.cognifide.gradle.aem.common.instance.service.repository / Repository

Repository

class Repository : InstanceService

Constructors

<init>

Repository(sync: InstanceSync)

Properties

responseChecks

Controls throwing exceptions in case of response statuses indicating repository errors. Switching it to false, allows custom error handling in task scripting.

var responseChecks: Boolean

typeHints

Take care about property value types saved in repository.

var typeHints: Boolean

verboseLogging

Controls level of logging. By default repository related operations are only logged at debug level. This switch could increase logging level to info level.

var verboseLogging: Boolean

Functions

node

Manipulate node at given path (CRUD).

fun node(path: String): Node

Calculate a value using node at given path (e.g read property and return it).

fun <T> node(path: String, options: Node.() -> T): T

Shorthand method for creating or updating node at given path.

fun node(path: String, properties: Map<String, Any?>): RepositoryResult