@Override public boolean isQueryable() { return federatedDocument.getBoolean(DocumentTranslator.QUERYABLE_FIELD, true); } }
/** * Checks whether journaling is enabled or not, based on a journaling configuration having been provided. * * @return true if journaling is enabled, or false otherwise */ public boolean isEnabled() { return this.journalingDoc != EMPTY && this.journalingDoc.getBoolean(FieldName.JOURNAL_ENABLED, true); }
/** * Determine whether users that fail all other authentication should be automatically logged in as an anonymous user. * * @return true if non-authenticated users should be given anonymous sessions, or false if authenication should fail; the * default is '{@value Default#USE_ANONYMOUS_ON_FAILED_LOGINS}'. */ public boolean useAnonymousOnFailedLogings() { return anonymous.getBoolean(FieldName.USE_ANONYMOUS_ON_FAILED_LOGINS, Default.USE_ANONYMOUS_ON_FAILED_LOGINS); } }
@Override public boolean isQueryable() { return federatedDocument.getBoolean(DocumentTranslator.QUERYABLE_FIELD, true); } }
/** * Determine whether users that fail all other authentication should be automatically logged in as an anonymous user. * * @return true if non-authenticated users should be given anonymous sessions, or false if authenication should fail; the * default is '{@value Default#USE_ANONYMOUS_ON_FAILED_LOGINS}'. */ public boolean useAnonymousOnFailedLogings() { return anonymous.getBoolean(FieldName.USE_ANONYMOUS_ON_FAILED_LOGINS, Default.USE_ANONYMOUS_ON_FAILED_LOGINS); } }
/** * Checks whether journaling is enabled or not, based on a journaling configuration having been provided. * * @return true if journaling is enabled, or false otherwise */ public boolean isEnabled() { return this.journalingDoc != EMPTY && this.journalingDoc.getBoolean(FieldName.JOURNAL_ENABLED, true); }
/** * Get whether the reindexing should be done synchronously or asynchronously * * @return {@code true} if the reindexing should be performed asynchronously, {@code false} otherwise */ public boolean isAsync() { return reindexing == null || reindexing.getBoolean(FieldName.REINDEXING_ASYNC, true); }
/** * Determine whether monitoring is enabled. The default is to enable monitoring, but this can be used to turn off support * for monitoring should it not be necessary. * * @return true if monitoring is enabled, or false if it is disabled */ public boolean enabled() { return monitoring.getBoolean(FieldName.MONITORING_ENABLED, Default.MONITORING_ENABLED); } }
/** * Get whether the reindexing should be done synchronously or asynchronously * * @return {@code true} if the reindexing should be performed asynchronously, {@code false} otherwise */ public boolean isAsync() { return reindexing == null || reindexing.getBoolean(FieldName.REINDEXING_ASYNC, true); }
/** * Determine whether monitoring is enabled. The default is to enable monitoring, but this can be used to turn off support * for monitoring should it not be necessary. * * @return true if monitoring is enabled, or false if it is disabled */ public boolean enabled() { return monitoring.getBoolean(FieldName.MONITORING_ENABLED, Default.MONITORING_ENABLED); } }
@Override public boolean isSynchronous() { return doc.getBoolean(FieldName.SYNCHRONOUS, Default.SYNCHRONOUS); }
/** * Whether asynchronous writes shoudl be enabled or not. * * @return true if anyschronos writes should be enabled. */ public boolean asyncWritesEnabled() { return this.journalingDoc.getBoolean(FieldName.ASYNC_WRITES_ENABLED, Default.ASYNC_WRITES_ENABLED); }
public boolean isCreatingWorkspacesAllowed() { Document workspaces = doc.getDocument(FieldName.WORKSPACES); if (workspaces != null) { return workspaces.getBoolean(FieldName.ALLOW_CREATION, Default.ALLOW_CREATION); } return Default.ALLOW_CREATION; }
public boolean isCreatingWorkspacesAllowed() { Document workspaces = doc.getDocument(FieldName.WORKSPACES); if (workspaces != null) { return workspaces.getBoolean(FieldName.ALLOW_CREATION, Default.ALLOW_CREATION); } return Default.ALLOW_CREATION; }
private Object createReferenceFromString( ReferenceFactory referenceFactory, Document doc, String valueStr ) { boolean isForeign = doc.getBoolean("$foreign"); if (!NodeKey.isValidFormat(valueStr)) { throw new IllegalStateException("The reference " + valueStr + " is corrupt: expected a node-key reference"); } return referenceFactory.create(new NodeKey(valueStr), isForeign); }
private Object createReferenceFromString( ReferenceFactory referenceFactory, Document doc, String valueStr ) { boolean isForeign = doc.getBoolean("$foreign"); if (!NodeKey.isValidFormat(valueStr)) { throw new IllegalStateException("The reference " + valueStr + " is corrupt: expected a node-key reference"); } return referenceFactory.create(new NodeKey(valueStr), isForeign); }
protected void addValidatorsForRequired( Document parent, Path parentPath, Problems problems, CompositeValidator validators ) { Boolean required = parent.getBoolean("required", Boolean.FALSE); if (required.booleanValue()) { String requiredName = parentPath.getLast(); if (requiredName != null) { validators.add(new RequiredValidator(requiredName)); } } }
protected void addValidatorsForRequired( Document parent, Path parentPath, Problems problems, CompositeValidator validators ) { Boolean required = parent.getBoolean("required", Boolean.FALSE); if (required.booleanValue()) { String requiredName = parentPath.getLast(); if (requiredName != null) { validators.add(new RequiredValidator(requiredName)); } } }
protected void addValidatorsForUniqueItems( Document parent, Path parentPath, Problems problems, CompositeValidator validators ) { if (parent.getBoolean("uniqueItems", false)) { String requiredName = parentPath.getLast(); if (requiredName != null) { validators.add(new UniqueItemsValidator(requiredName)); } } }
protected void addValidatorsForUniqueItems( Document parent, Path parentPath, Problems problems, CompositeValidator validators ) { if (parent.getBoolean("uniqueItems", false)) { String requiredName = parentPath.getLast(); if (requiredName != null) { validators.add(new UniqueItemsValidator(requiredName)); } } }