com.netgrif.application.engine.petrinet.domain.dataset.UserField.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 UserField extends Field {
Set roles
UserField() {
super()
this.roles = new HashSet<>()
}
UserField(String[] values) {
this()
if (values != null) {
this.roles.addAll(Arrays.asList(values))
}
}
@Override
FieldType getType() {
return FieldType.USER
}
Set getRoles() {
return roles
}
@Override
Field clone() {
UserField clone = new UserField()
super.clone(clone)
clone.roles = this.roles
return clone
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy