Java Code Examples for javax.jcr.Property#getPath()

The following examples show how to use javax.jcr.Property#getPath() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: PropertyValueArtifact.java    From jackrabbit-filevault with Apache License 2.0 6 votes vote down vote up
public PropertyValueArtifact(Artifact parent, String relPath, String ext, ArtifactType type,
                             Property prop, int index, long lastModified)
        throws RepositoryException {
    super(parent, relPath, ext, type);
    this.property = prop;
    this.path = prop.getPath();
    if (prop.getDefinition().isMultiple()) {
        if (index < 0) {
            index = 0;
        }
    } else {
        if (index >=0) {
            index = -1;
        }
    }
    this.valueIndex = index;
    this.lastModified = lastModified;
}
 
Example 2
Source File: GenericAggregator.java    From jackrabbit-filevault with Apache License 2.0 5 votes vote down vote up
/**
 * {@inheritDoc}
 */
public boolean includes(Node root, Node parent, Property property, String path) throws RepositoryException {
    if (path == null) {
        path = property.getPath();
    }
    return contentFilter.contains(property, path, PathUtil.getDepth(path) - root.getDepth());
}