javax.jcr.nodetype.ConstraintViolationException Java Examples
The following examples show how to use
javax.jcr.nodetype.ConstraintViolationException.
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: NodeImpl.java From jackalope with Apache License 2.0 | 5 votes |
@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 #2
Source File: PropertyImpl.java From jackalope with Apache License 2.0 | 5 votes |
@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 #3
Source File: PropertyImpl.java From jackalope with Apache License 2.0 | 5 votes |
public PropertyImpl(@Nonnull SessionImpl session, @Nonnull String path, @Nonnull String[] values) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException { this(session, path); List<Value> stringValues = new ArrayList<>(values.length); for (String value : values) stringValues.add(new ValueImpl(value)); setValue(stringValues.toArray(new Value[stringValues.size()])); }
Example #4
Source File: NodeImpl.java From jackalope with Apache License 2.0 | 5 votes |
@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 |
@Override public Property setProperty(String name, Node value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException { return null; // Not implemented }
Example #6
Source File: NodeImpl.java From jackalope with Apache License 2.0 | 4 votes |
@Override public void orderBefore(String srcChildRelPath, String destChildRelPath) throws UnsupportedRepositoryOperationException, VersionException, ConstraintViolationException, ItemNotFoundException, LockException, RepositoryException { throw new UnsupportedRepositoryOperationException(); }
Example #7
Source File: PropertyImpl.java From jackalope with Apache License 2.0 | 4 votes |
@Override public void setValue(boolean value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException { setValue(new ValueImpl(value)); }
Example #8
Source File: PropertyImpl.java From jackalope with Apache License 2.0 | 4 votes |
@Override public void setValue(@Nonnull Value value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException { this.value = value; session.changeItem(this); }
Example #9
Source File: QueryImpl.java From jackalope with Apache License 2.0 | 4 votes |
@Override public Node storeAsNode(String absPath) throws ItemExistsException, PathNotFoundException, VersionException, ConstraintViolationException, LockException, UnsupportedRepositoryOperationException, RepositoryException { return null; }
Example #10
Source File: PropertyImpl.java From jackalope with Apache License 2.0 | 4 votes |
@Override public void setValue(@Nonnull String value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException { setValue(new ValueImpl(value)); }
Example #11
Source File: NodeImpl.java From jackalope with Apache License 2.0 | 4 votes |
@Override public Node addNode(String relPath) throws ItemExistsException, PathNotFoundException, VersionException, ConstraintViolationException, LockException, RepositoryException { return addNode(relPath, DEFAULT_NODETYPE); }
Example #12
Source File: NodeImpl.java From jackalope with Apache License 2.0 | 4 votes |
@Override public void setPrimaryType(String nodeTypeName) throws NoSuchNodeTypeException, VersionException, ConstraintViolationException, LockException, RepositoryException { setProperty("jcr:primaryType", nodeTypeName); }
Example #13
Source File: NodeImpl.java From jackalope with Apache License 2.0 | 4 votes |
@Override public void addMixin(String mixinName) throws NoSuchNodeTypeException, VersionException, ConstraintViolationException, LockException, RepositoryException { //Not Implemented }
Example #14
Source File: NodeImpl.java From jackalope with Apache License 2.0 | 4 votes |
@Override public void removeShare() throws VersionException, LockException, ConstraintViolationException, RepositoryException { //Not Implemented }
Example #15
Source File: WorkspaceImpl.java From jackalope with Apache License 2.0 | 4 votes |
@Override public void copy(String srcAbsPath, String destAbsPath) throws ConstraintViolationException, VersionException, AccessDeniedException, PathNotFoundException, ItemExistsException, LockException, RepositoryException { }
Example #16
Source File: NodeImpl.java From jackalope with Apache License 2.0 | 4 votes |
@Override public void restore(Version version, String relPath, boolean removeExisting) throws PathNotFoundException, ItemExistsException, VersionException, ConstraintViolationException, UnsupportedRepositoryOperationException, LockException, InvalidItemStateException, RepositoryException { throw new UnsupportedRepositoryOperationException(); }
Example #17
Source File: NodeImpl.java From jackalope with Apache License 2.0 | 4 votes |
@Override public Property setProperty(String name, long value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException { return setProperty(name, new ValueImpl(value)); }
Example #18
Source File: ItemImpl.java From jackalope with Apache License 2.0 | 4 votes |
@Override public void remove() throws VersionException, LockException, ConstraintViolationException, AccessDeniedException, RepositoryException { session.removeItem(this); }
Example #19
Source File: SessionImpl.java From jackalope with Apache License 2.0 | 4 votes |
@Override public void importXML(String parentAbsPath, InputStream in, int uuidBehavior) throws IOException, PathNotFoundException, ItemExistsException, ConstraintViolationException, VersionException, InvalidSerializedDataException, LockException, RepositoryException { }
Example #20
Source File: SessionImpl.java From jackalope with Apache License 2.0 | 4 votes |
@Override public ContentHandler getImportContentHandler(String parentAbsPath, int uuidBehavior) throws PathNotFoundException, ConstraintViolationException, VersionException, LockException, RepositoryException { return null; }
Example #21
Source File: PropertyImpl.java From jackalope with Apache License 2.0 | 4 votes |
@Override public void setValue(@Nonnull Node value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException { //Not implemented }
Example #22
Source File: SessionWrapper.java From sling-whiteboard with Apache License 2.0 | 4 votes |
@Override public void importXML(String parentAbsPath, InputStream in, int uuidBehavior) throws IOException, PathNotFoundException, ItemExistsException, ConstraintViolationException, VersionException, InvalidSerializedDataException, LockException, RepositoryException { this.wrappedSession.importXML(parentAbsPath, in, uuidBehavior); }
Example #23
Source File: SessionWrapper.java From sling-whiteboard with Apache License 2.0 | 4 votes |
@Override public ContentHandler getImportContentHandler(String parentAbsPath, int uuidBehavior) throws PathNotFoundException, ConstraintViolationException, VersionException, LockException, RepositoryException { return this.wrappedSession.getImportContentHandler(parentAbsPath, uuidBehavior); }
Example #24
Source File: SessionWrapper.java From sling-whiteboard with Apache License 2.0 | 4 votes |
@Override public void save() throws AccessDeniedException, ItemExistsException, ReferentialIntegrityException, ConstraintViolationException, InvalidItemStateException, VersionException, LockException, NoSuchNodeTypeException, RepositoryException { this.wrappedSession.save(); }
Example #25
Source File: SessionWrapper.java From sling-whiteboard with Apache License 2.0 | 4 votes |
@Override public void removeItem(String absPath) throws VersionException, LockException, ConstraintViolationException, AccessDeniedException, RepositoryException { this.wrappedSession.removeItem(absPath); }
Example #26
Source File: ItemWrapper.java From sling-whiteboard with Apache License 2.0 | 4 votes |
@Override public void remove() throws VersionException, LockException, ConstraintViolationException, AccessDeniedException, RepositoryException { this.sessionWrapper.removeItem(this.getPath()); }
Example #27
Source File: ItemWrapper.java From sling-whiteboard with Apache License 2.0 | 4 votes |
@Override public void save() throws AccessDeniedException, ItemExistsException, ConstraintViolationException, InvalidItemStateException, ReferentialIntegrityException, VersionException, LockException, NoSuchNodeTypeException, RepositoryException { this.sessionWrapper.save(); }
Example #28
Source File: PropertyWrapper.java From sling-whiteboard with Apache License 2.0 | 4 votes |
@Override public void setValue(Node value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException { delegate.setValue(value); }
Example #29
Source File: PropertyWrapper.java From sling-whiteboard with Apache License 2.0 | 4 votes |
@Override public void setValue(boolean value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException { delegate.setValue(value); }
Example #30
Source File: PropertyWrapper.java From sling-whiteboard with Apache License 2.0 | 4 votes |
@Override public void setValue(Calendar value) throws ValueFormatException, VersionException, LockException, ConstraintViolationException, RepositoryException { delegate.setValue(value); }