public SQLSession( org.nuxeo.ecm.core.storage.sql.Session session, Repository repository, String sessionId) { this.session = session; this.repository = repository; Node rootNode = session.getRootNode(); this.sessionId = sessionId; root = newDocument(rootNode); negativeAclAllowed = Framework.isBooleanPropertyTrue(ALLOW_NEGATIVE_ACL_PROPERTY); copyFindFreeNameDisabled = Framework.isBooleanPropertyTrue(COPY_FINDFREENAME_DISABLED_PROP); }
public boolean isAnnotationsEnabled(DocumentModel doc) { BlobHolder blobHolder = doc.getAdapter(BlobHolder.class); Blob blob = blobHolder.getBlob(); if (blob == null || blob.getMimeType() == null) { return false; } return Framework.isBooleanPropertyTrue(TEXT_ANNOTATIONS_KEY) || blob.getMimeType().startsWith("image"); }
protected static boolean forceNoCacheOnMSIE() { // see NXP-7759 return Framework.isBooleanPropertyTrue(FORCE_NO_CACHE_ON_MSIE); }