private FieldType buildFieldType() throws RepositoryException, InterruptedException { FieldType fieldType = typeManager.newFieldType(valueType, name, scope); fieldType.setId(id); return fieldType; }
@Override public FieldType createOrUpdateFieldType(FieldType fieldType) throws RepositoryException, InterruptedException { if (fieldType.getId() == null) { fieldType.setId(new SchemaIdImpl(UUID.randomUUID())); } fieldTypesByName.put(fieldType.getName(), fieldType); fieldTypes.put(fieldType.getId(), fieldType); return fieldType; }
fieldType.setId(schemaId);
newFieldType.setId(id);
id = new SchemaIdImpl(idString); fieldType.setId(id);