public class Repository
extends InstanceService
public Repository(@NotNull
InstanceSync sync)
public boolean getTypeHints()
Take care about property value types saved in repository.
public void setTypeHints(boolean p)
Take care about property value types saved in repository.
public boolean getResponseChecks()
Controls throwing exceptions in case of response statuses indicating repository errors. Switching it to false, allows custom error handling in task scripting.
public void setResponseChecks(boolean value)
Controls throwing exceptions in case of response statuses indicating repository errors. Switching it to false, allows custom error handling in task scripting.
public boolean getVerboseLogging()
Controls level of logging. By default repository related operations are only logged at debug level. This switch could increase logging level to info level.
public void setVerboseLogging(boolean p)
Controls level of logging. By default repository related operations are only logged at debug level. This switch could increase logging level to info level.
@NotNull public Node node(@NotNull java.lang.String path)
Manipulate node at given path (CRUD).
public <T> T node(@NotNull
java.lang.String path,
@NotNull
kotlin.jvm.functions.Function1<? super com.cognifide.gradle.aem.common.instance.service.repository.Node,? extends T> options)
Calculate a value using node at given path (e.g read property and return it).
@NotNull public RepositoryResult node(@NotNull java.lang.String path, @NotNull java.util.Map<java.lang.String,? extends java.lang.Object> properties)
Shorthand method for creating or updating node at given path.