javax.jcr.lock.LockException Java Examples

The following examples show how to use javax.jcr.lock.LockException. 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: PropertyImpl.java    From jackalope with Apache License 2.0 5 votes vote down vote up
@Override
public void setValue(@Nonnull String[] values) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException {
    List<Value> valueList = new ArrayList<>(values.length);
    for (String value : values)
        valueList.add(new ValueImpl(value));
    setValue(valueList.toArray(new Value[valueList.size()]));
}
 
Example #2
Source File: NodeImpl.java    From jackalope with Apache License 2.0 5 votes vote down vote up
@Override
public Node addNode(String relPath, String primaryNodeTypeName) throws ItemExistsException, PathNotFoundException, NoSuchNodeTypeException, LockException, VersionException, ConstraintViolationException, RepositoryException {
    Node node = new NodeImpl(session, Paths.resolve(getPath(), relPath));
    node.setPrimaryType(primaryNodeTypeName);
    session.changeItem(this);
    return node;
}
 
Example #3
Source File: NodeImpl.java    From jackalope with Apache License 2.0 5 votes vote down vote up
@Override
public Property setProperty(String name, Value[] values) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException {
    PropertyImpl property = getOrCreateProperty(name);
    property.setValue(values);
    session.changeItem(this);
    return property;
}
 
Example #4
Source File: NodeImpl.java    From jackalope with Apache License 2.0 5 votes vote down vote up
@Override
public Property setProperty(String name, Value value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException {
    if (value == null) {
        if (hasProperty(name))
            getProperty(name).remove();
        return null;
    }
    PropertyImpl property = getOrCreateProperty(name);
    property.setValue(value);
    session.changeItem(this);
    return property;
}
 
Example #5
Source File: NodeImpl.java    From jackalope with Apache License 2.0 4 votes vote down vote up
@Override
public Property setProperty(String name, String[] values, int type) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException {
    return setProperty(name, values); // TODO: Implement type conversions
}
 
Example #6
Source File: PropertyWrapper.java    From sling-whiteboard with Apache License 2.0 4 votes vote down vote up
@Override
public void setValue(Calendar value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException {
    delegate.setValue(value);
}
 
Example #7
Source File: PropertyWrapper.java    From sling-whiteboard with Apache License 2.0 4 votes vote down vote up
@Override
public void setValue(boolean value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException {
    delegate.setValue(value);
}
 
Example #8
Source File: PropertyImpl.java    From jackalope with Apache License 2.0 4 votes vote down vote up
@Override
public void setValue(@Nonnull String value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException {
    setValue(new ValueImpl(value));
}
 
Example #9
Source File: ItemWrapper.java    From sling-whiteboard with Apache License 2.0 4 votes vote down vote up
@Override
public void save() throws AccessDeniedException, ItemExistsException, ConstraintViolationException, InvalidItemStateException, ReferentialIntegrityException, VersionException, LockException, NoSuchNodeTypeException, RepositoryException {
    this.sessionWrapper.save();
}
 
Example #10
Source File: PropertyImpl.java    From jackalope with Apache License 2.0 4 votes vote down vote up
@Override
public void setValue(InputStream value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException {
    //Deprecated
}
 
Example #11
Source File: PropertyImpl.java    From jackalope with Apache License 2.0 4 votes vote down vote up
@Override
public void setValue(long value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException {
    setValue(new ValueImpl(value));
}
 
Example #12
Source File: NodeImpl.java    From jackalope with Apache License 2.0 4 votes vote down vote up
@Override
public Version checkin() throws VersionException, UnsupportedRepositoryOperationException, InvalidItemStateException, LockException, RepositoryException {
    throw new UnsupportedRepositoryOperationException();
}
 
Example #13
Source File: NodeImpl.java    From jackalope with Apache License 2.0 4 votes vote down vote up
@Override
public Property setProperty(String name, Value value, int type) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException {
    return setProperty(name, value); // TODO: Implement type conversions
}
 
Example #14
Source File: NodeImpl.java    From jackalope with Apache License 2.0 4 votes vote down vote up
@Override
public Property setProperty(String name, Value[] values, int type) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException {
    return setProperty(name, values); // TODO: Implement type conversions
}
 
Example #15
Source File: NodeImpl.java    From jackalope with Apache License 2.0 4 votes vote down vote up
@Override
public Property setProperty(String name, String[] values) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException {
    return setProperty(name, Values.convertStringsToValues(values));
}
 
Example #16
Source File: NodeImpl.java    From jackalope with Apache License 2.0 4 votes vote down vote up
@Override
public void removeShare() throws VersionException, LockException, ConstraintViolationException, RepositoryException {
    //Not Implemented
}
 
Example #17
Source File: ItemImpl.java    From jackalope with Apache License 2.0 4 votes vote down vote up
@Override
public void remove() throws VersionException, LockException, ConstraintViolationException, AccessDeniedException, RepositoryException {
    session.removeItem(this);
}
 
Example #18
Source File: PropertyWrapper.java    From sling-whiteboard with Apache License 2.0 4 votes vote down vote up
@Override
public void setValue(BigDecimal value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException {
    delegate.setValue(value);
}
 
Example #19
Source File: PropertyWrapper.java    From sling-whiteboard with Apache License 2.0 4 votes vote down vote up
@Override
public void setValue(double value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException {
    delegate.setValue(value);
}
 
Example #20
Source File: NodeImpl.java    From jackalope with Apache License 2.0 4 votes vote down vote up
@Override
public void setPrimaryType(String nodeTypeName) throws NoSuchNodeTypeException, VersionException, ConstraintViolationException, LockException, RepositoryException {
    setProperty("jcr:primaryType", nodeTypeName);
}
 
Example #21
Source File: PropertyWrapper.java    From sling-whiteboard with Apache License 2.0 4 votes vote down vote up
@Override
public void setValue(Binary value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException {
    delegate.setValue(value);
}
 
Example #22
Source File: PropertyWrapper.java    From sling-whiteboard with Apache License 2.0 4 votes vote down vote up
@Override
public void setValue(InputStream value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException {
    delegate.setValue(value);
}
 
Example #23
Source File: PropertyWrapper.java    From sling-whiteboard with Apache License 2.0 4 votes vote down vote up
@Override
public void setValue(String[] values) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException {
    delegate.setValue(values);
}
 
Example #24
Source File: PropertyWrapper.java    From sling-whiteboard with Apache License 2.0 4 votes vote down vote up
@Override
public void setValue(String value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException {
    delegate.setValue(value);
}
 
Example #25
Source File: PropertyImpl.java    From jackalope with Apache License 2.0 4 votes vote down vote up
@Override
public void setValue(@Nonnull Binary value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException {
    setValue(new ValueImpl(value));
}
 
Example #26
Source File: PropertyWrapper.java    From sling-whiteboard with Apache License 2.0 4 votes vote down vote up
@Override
public void setValue(Value value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException {
    delegate.setValue(value);
}
 
Example #27
Source File: LockWrapper.java    From sling-whiteboard with Apache License 2.0 4 votes vote down vote up
@Override
public void refresh() throws LockException, RepositoryException {
    delegate.refresh();
}
 
Example #28
Source File: NodeImpl.java    From jackalope with Apache License 2.0 4 votes vote down vote up
@Override
public Lock getLock() throws UnsupportedRepositoryOperationException, LockException, AccessDeniedException, RepositoryException {
    throw new UnsupportedRepositoryOperationException();
}
 
Example #29
Source File: NodeWrapper.java    From sling-whiteboard with Apache License 2.0 4 votes vote down vote up
@Override
public Lock getLock() throws UnsupportedRepositoryOperationException, LockException, AccessDeniedException, RepositoryException {
    return sessionWrapper.getObjectWrapper().wrap(sessionWrapper, delegate.getLock());
}
 
Example #30
Source File: NodeWrapper.java    From sling-whiteboard with Apache License 2.0 4 votes vote down vote up
@Override
public Lock lock(boolean isDeep, boolean isSessionScoped) throws UnsupportedRepositoryOperationException, LockException, AccessDeniedException, InvalidItemStateException, RepositoryException {
    return sessionWrapper.getObjectWrapper().wrap(sessionWrapper, delegate.lock(isDeep, isSessionScoped));
}