@Override public boolean isEmpty() { return this.source.getSize() == 0L; }
@Override public long getSize() { return this.source.getSize(); }
private void validateInputs(ResourceResolver res) throws RepositoryException { if (sourceFile != null && sourceFile.getSize() > 0) { validateSpreadsheetInput(); } else { validateSingleMoveInput(); } for (Map.Entry<String, String> entry : movePaths.entrySet()) { String sourcePath = entry.getKey(); String destinationPath = entry.getValue(); validateMovePreconditions(res, sourcePath, destinationPath); } }
if (value.isFormField() || value.getSize() <= 0) { continue;
+ String.valueOf(chunkOffset + value.getSize() - 1); if (totalLength == (currentLength + value.getSize()) || prop.getChunk().isCompleted()) { File file = null; props.put(JcrConstants.JCR_DATA, value.getInputStream()); props.put(SlingPostConstants.NT_SLING_CHUNK_OFFSET, chunkOffset); props.put(SlingPostConstants.NT_SLING_CHUNKS_LENGTH, currentLength + value.getSize()); for(final String key : props.keySet()) { changes.add(Modification.onModified(res.getPath() + "/" + nodeName + "/" + key));