-
Notifications
You must be signed in to change notification settings - Fork 91
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add functionality to export users in CSV format
This format is compatible with https://helpx.adobe.com/enterprise/using/bulk-upload-users.html#csv-format Fix Web Console deployment with sling-m-p This closes #703 This closes #443 This closes #707
- Loading branch information
Showing
6 changed files
with
358 additions
and
78 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
...dle/src/main/java/biz/netcentric/cq/tools/actool/helper/UncheckedRepositoryException.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
/* | ||
* (C) Copyright 2024 Cognizant Netcentric. | ||
* | ||
* All rights reserved. This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License v1.0 | ||
* which accompanies this distribution, and is available at | ||
* http://www.eclipse.org/legal/epl-v10.html | ||
*/ | ||
package biz.netcentric.cq.tools.actool.helper; | ||
|
||
import java.util.Objects; | ||
|
||
import javax.jcr.RepositoryException; | ||
|
||
/** | ||
* Wraps a {@link RepositoryException} with an unchecked exception. | ||
* This is useful for usage within lambdas. | ||
* | ||
*/ | ||
public class UncheckedRepositoryException extends RuntimeException { | ||
|
||
private static final long serialVersionUID = 2727436608772501551L; | ||
|
||
/** | ||
* Constructs an instance of this class. | ||
* | ||
* @param cause | ||
* the {@code RepositoryException} | ||
* | ||
* @throws NullPointerException | ||
* if the cause is {@code null} | ||
*/ | ||
public UncheckedRepositoryException(RepositoryException cause) { | ||
super(Objects.requireNonNull(cause)); | ||
} | ||
|
||
/** | ||
* Returns the cause of this exception. | ||
* | ||
* @return the {@code RepositoryException} which is the cause of this exception. | ||
*/ | ||
@Override | ||
public synchronized RepositoryException getCause() { | ||
return (RepositoryException) super.getCause(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.