com.blossomproject.autoconfigure.ui.common.privileges.GroupPrivilegesConfiguration 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 GroupPrivilegesConfiguration {
@Bean
public Privilege groupsReadPrivilegePlugin() {
return new SimplePrivilege("administration", "groups", "read");
}
@Bean
public Privilege groupsWritePrivilegePlugin() {
return new SimplePrivilege("administration", "groups", "write");
}
@Bean
public Privilege groupsCreatePrivilegePlugin() {
return new SimplePrivilege("administration", "groups", "create");
}
@Bean
public Privilege groupsDeletePrivilegePlugin() {
return new SimplePrivilege("administration", "groups", "delete");
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy