@Override public boolean isReadonly() { return delegate.isReadonly(); }
public boolean isReadOnly(final int column) throws SQLException { final OProperty p = getProperty(column); return p != null ? p.isReadonly() : false; }
@Override public void afterRegistration(final ODatabaseObject db, final SchemeDescriptor descriptor, final Field field, final Readonly annotation) { final String name = field.getName(); final boolean readonly = annotation.value(); final OProperty property = db.getMetadata().getSchema() .getClass(descriptor.schemeClass).getProperty(name); if (property.isReadonly() != readonly) { property.setReadonly(readonly); logger.debug("Set {}.{} property readonly={}", descriptor.schemeClass, name, readonly); } } }
@Override protected DisplayMode getEffectiveMode(DisplayMode mode, OProperty property) { if(mode.canModify() && property!= null && ((property.isReadonly() || (Boolean)CustomAttribute.UI_READONLY.getValue(property)) && !(property.isMandatory() && !getEntityObject().containsField(property.getName()))) || (!Strings.isEmpty(featureSpecification) && !OSecurityHelper.isAllowed(OSecurityHelper.FEATURE_RESOURCE, featureSpecification, OrientPermission.UPDATE))) { return DisplayMode.VIEW; } return mode; }
row.field("LINKED-TYPE/CLASS", p.getLinkedClass() != null ? p.getLinkedClass() : p.getLinkedType()); row.field("MANDATORY", p.isMandatory()); row.field("READONLY", p.isReadonly()); row.field("NOT-NULL", p.isNotNull()); row.field("MIN", p.getMin() != null ? p.getMin() : "");
if (p.isMandatory()) writer.writeAttribute(0, false, "mandatory", p.isMandatory()); if (p.isReadonly()) writer.writeAttribute(0, false, "readonly", p.isReadonly()); if (p.isNotNull()) writer.writeAttribute(0, false, "not-null", p.isNotNull());
message("\nMandatory............: " + prop.isMandatory()); message("\nNot null.............: " + prop.isNotNull()); message("\nRead only............: " + prop.isReadonly()); message("\nDefault value........: " + prop.getDefaultValue()); message("\nMinimum value........: " + prop.getMin());
ok = false; if (prop.isReadonly() != prop2.isReadonly()) { listener.onMessage( "\n- ERR: Class definition for " + clazz.getName() + " as not same readonly flag setting for property " + prop
readOnly = property.isReadonly();
boolean isStructureReadonly = (Boolean)CustomAttribute.CALCULABLE.getValue(property) || (Boolean)CustomAttribute.UI_READONLY.getValue(property) || property.isReadonly(); IModel<DisplayMode> modeModel = DisplayMode.VIEW.asModel();