@Override public boolean canAdd() { return canAdd(DEFAULT_LAYER); }
@Override public boolean canModify() { return canModify(DEFAULT_LAYER); }
@Override public boolean canRead() { return canRead(DEFAULT_LAYER); }
RefinedAttributeDefinitionImpl<T> rAttrDef = new RefinedAttributeDefinitionImpl<>(schemaAttrDef, prismContext); rAttrDef.setDisplayName(schemaHandlingAttrDefType.getDisplayName()); } else { if (schemaAttrDef.getDisplayName() != null) { rAttrDef.setDisplayName(schemaAttrDef.getDisplayName()); rAttrDef.setDisplayOrder(schemaHandlingAttrDefType.getDisplayOrder()); } else { if (schemaAttrDef.getDisplayOrder() != null) { rAttrDef.setDisplayOrder(schemaAttrDef.getDisplayOrder()); PropertyLimitations schemaLimitations = getOrCreateLimitations(rAttrDef.limitationsMap, LayerType.SCHEMA); schemaLimitations.setMinOccurs(schemaAttrDef.getMinOccurs()); schemaLimitations.setMaxOccurs(schemaAttrDef.getMaxOccurs()); rAttrDef.setDescription(schemaHandlingAttrDefType.getDescription()); rAttrDef.setOutboundMappingType(schemaHandlingAttrDefType.getOutbound()); rAttrDef.setInboundMappingTypes(schemaHandlingAttrDefType.getInbound()); rAttrDef.setModificationPriority(schemaHandlingAttrDefType.getModificationPriority()); rAttrDef.setReadReplaceMode(schemaHandlingAttrDefType.isReadReplaceMode()); // may be null at this point PropertyLimitations limitations = getOrCreateLimitations(rAttrDef.limitationsMap, layer); if (previousLimitations != null) { limitations.setMinOccurs(previousLimitations.getMinOccurs());
@Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append(super.toString()); if (getDisplayName() != null) { sb.append(",Disp"); } if (getDescription() != null) { sb.append(",Desc"); } if (getOutboundMappingType() != null) { sb.append(",OUT"); } if (getInboundMappingTypes() != null) { sb.append(",IN"); } if (Boolean.TRUE.equals(getReadReplaceMode())) { sb.append(",R+E"); } if (getModificationPriority() != null) { sb.append(",P").append(getModificationPriority()); } return sb.toString(); }
@NotNull @Override public RefinedAttributeDefinitionImpl<T> clone() { ResourceAttributeDefinition<T> attrDefClone = this.attributeDefinition.clone(); RefinedAttributeDefinitionImpl<T> clone = new RefinedAttributeDefinitionImpl<>(attrDefClone, getPrismContext()); copyDefinitionData(clone); return clone; }
@Override public String debugDump(int indent) { return debugDump(indent, (LayerType) null); }