public class Repository
extends InstanceService
| Constructor and Description |
|---|
Repository(InstanceSync sync) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getResponseChecks()
Controls throwing exceptions in case of response statuses indicating repository errors.
Switching it to false, allows custom error handling in task scripting.
|
boolean |
getTypeHints()
Take care about property value types saved in repository.
|
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.
|
Node |
node(java.lang.String path)
Manipulate node at given path (CRUD).
|
<T> T |
node(java.lang.String path,
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).
|
RepositoryResult |
node(java.lang.String path,
java.util.Map<java.lang.String,? extends java.lang.Object> properties)
Shorthand method for creating or updating node at given path.
|
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.
|
void |
setTypeHints(boolean p)
Take care about property value types saved in repository.
|
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.
|
getAem, getInstance, getProject, getSyncpublic 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.