@Override public boolean isVersionable() { return Boolean.TRUE.equals(getDocumentType().isVersionable()); }
@Override public boolean isVersionable() { return Boolean.TRUE.equals(getDocumentType().isVersionable()); }
@Override public Boolean isVersionSeriesPrivateWorkingCopy() { if (Boolean.FALSE.equals(getDocumentType().isVersionable())) { return false; } Boolean isCheckedOut = isVersionSeriesCheckedOut(); if (Boolean.FALSE.equals(isCheckedOut)) { return false; } Boolean isPWC = isPrivateWorkingCopy(); if (isPWC != null) { return isPWC; } String vsCoId = getVersionSeriesCheckedOutId(); if (vsCoId == null) { // we don't know ... return null; } return vsCoId.equals(getId()); }
@Override public Boolean isVersionSeriesPrivateWorkingCopy() { if (Boolean.FALSE.equals(getDocumentType().isVersionable())) { return false; } Boolean isCheckedOut = isVersionSeriesCheckedOut(); if (Boolean.FALSE.equals(isCheckedOut)) { return false; } Boolean isPWC = isPrivateWorkingCopy(); if (isPWC != null) { return isPWC; } String vsCoId = getVersionSeriesCheckedOutId(); if (vsCoId == null) { // we don't know ... return null; } return vsCoId.equals(getId()); }
DocumentType docType = (DocumentType) session.getTypeDefinition(typeId); if (Boolean.TRUE.equals(docType.isVersionable())) { versioningState = VersioningState.MAJOR;
ContentStream contentStream = session.getObjectFactory().createContentStream(document.getName(), content.length, type, input); try { if (((DocumentType)(document.getType())).isVersionable() && (mode.equals(UpdateMode.MAJOR) || mode.equals(UpdateMode.MINOR))) { Document pwc = (Document) session.getObject(document.checkOut());
if (type instanceof DocumentType && Boolean.FALSE.equals(((DocumentType) type).isVersionable())) {
if (type instanceof DocumentType && Boolean.FALSE.equals(((DocumentType) type).isVersionable())) {
if (Boolean.TRUE.equals(((DocumentType) documents.values().iterator().next().getType()).isVersionable())) { f = createResult(FAILURE, "Although the created documents are independent, some documents share a Version Series Id!");