yakworks.security.Roles.groovy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of security-core Show documentation
Show all versions of security-core Show documentation
gorm-tools security and domain models
/*
* Copyright 2022 Yak.Works - Licensed under the Apache License, Version 2.0 (the "License")
* You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
*/
package yakworks.security
import groovy.transform.CompileStatic
/**
* Constants for role names, NOT restricted to these just for easier and cleaner usage.
*/
@CompileStatic
class Roles {
// enabled by default in base data
//full access, system user
static final String ADMIN = "ADMIN"
//restricted super user.
static final String POWER_USER = "POWER_USER"
//default user, access to all the screens, not manager (cannot approve, view other's tasks or delete cash system data)
static final String MANAGER = "MANAGER"
//read only
static final String GUEST = "GUEST"
// single customer user
static final String CUSTOMER = "CUSTOMER"
//FIXME move into domain9 when we move over domain9 logic from RallyUserService
static final String AR_MANAGER = "AR_MANAGER" //can see other collector tasks, approvals
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy