eu.ciechanowiec.sling.rocket.jcr.path.ParentJCRPath Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sling.rocket.commons Show documentation
Show all versions of sling.rocket.commons Show documentation
Common utilities used by Sling Rocket
package eu.ciechanowiec.sling.rocket.jcr.path;
import lombok.EqualsAndHashCode;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import javax.jcr.Item;
import javax.jcr.Repository;
/**
* Represents a parent path of the persisted or hypothetically persisted {@link Item} in the {@link Repository},
* upon which some action is to be performed.
*/
@ToString
@Slf4j
@EqualsAndHashCode
public class ParentJCRPath implements JCRPath {
private final JCRPath source;
/**
* Constructs an instance of this class using a source JCR path.
* @param source JCR path to be represented by the constructed object
*/
public ParentJCRPath(JCRPath source) {
this.source = source;
log.trace("Initialized {}", this);
}
@Override
public String get() {
return source.get();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy