All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.netgrif.application.engine.petrinet.domain.dataset.UserField.groovy Maven / Gradle / Ivy

Go to download

System provides workflow management functions including user, role and data management.

There is a newer version: 6.4.0
Show newest version
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