com.netgrif.application.engine.petrinet.domain.dataset.FileField.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of application-engine Show documentation
Show all versions of application-engine Show documentation
System provides workflow management functions including user, role and data management.
package com.netgrif.application.engine.petrinet.domain.dataset
import org.springframework.data.mongodb.core.mapping.Document
@Document
class FileField extends StorageField {
FileField() {
super()
}
@Override
FieldType getType() {
return FieldType.FILE
}
@Override
void setValue(FileFieldValue value) {
if (value instanceof String)
this.setValue((String) value)
else
super.setValue(value)
}
void setValue(String value) {
this.setValue(FileFieldValue.fromString(value))
}
@Override
void setDefaultValue(FileFieldValue defaultValue) {
if (value instanceof String)
this.setDefaultValue((String) value)
else
super.setDefaultValue(defaultValue)
}
void setDefaultValue(String defaultValue) {
this.setDefaultValue(FileFieldValue.fromString(defaultValue))
}
@Override
Field clone() {
FileField clone = new FileField()
super.clone(clone)
clone.storage = this.storage
return clone
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy