Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add distribute and invalidate method #39

Closed
bdhoine opened this issue Feb 15, 2023 · 0 comments · Fixed by #42
Closed

Add distribute and invalidate method #39

bdhoine opened this issue Feb 15, 2023 · 0 comments · Fixed by #42
Labels
enhancement New feature or request

Comments

@bdhoine
Copy link
Collaborator

bdhoine commented Feb 15, 2023

Add helper methods to use Sling Content Disitribution to invalidate content (DELETE) and to distribute content (ADD).

def distributor = getService("org.apache.sling.distribution.Distributor")
def paths = ["/content/a", "/content/b"]
DistributionRequest distributionRequest = new SimpleDistributionRequest(DistributionRequestType.ADD, false, *paths);
@royteeuwen royteeuwen added the enhancement New feature or request label Feb 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants