All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eu.ciechanowiec.sling.rocket.jcr.path.ParentJCRPath Maven / Gradle / Ivy

There is a newer version: 13.26.0
Show newest version
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