com.blossomproject.autoconfigure.ui.common.privileges.UserPrivilegesConfiguration Maven / Gradle / Ivy
package com.blossomproject.autoconfigure.ui.common.privileges;
import com.blossomproject.core.common.utils.privilege.Privilege;
import com.blossomproject.core.common.utils.privilege.SimplePrivilege;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@Configuration
public class UserPrivilegesConfiguration {
@Bean
public Privilege usersReadPrivilege() {
return new SimplePrivilege("administration", "users", "read");
}
@Bean
public Privilege usersWritePrivilege() {
return new SimplePrivilege("administration", "users", "write");
}
@Bean
public Privilege usersCreatePrivilege() {
return new SimplePrivilege("administration", "users", "create");
}
@Bean
public Privilege usersDeletePrivilege() {
return new SimplePrivilege("administration", "users", "delete");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy