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

commonMain.io.komune.im.f2.privilege.domain.RoleApi.kt Maven / Gradle / Ivy

There is a newer version: 0.18.0
Show newest version
package io.komune.im.f2.privilege.domain

import io.komune.im.f2.privilege.domain.role.command.RoleDefineFunction
import io.komune.im.f2.privilege.domain.role.query.RoleGetFunction
import io.komune.im.f2.privilege.domain.role.query.RoleListFunction

/**
 * @d2 api
 * @parent [D2RolePage]
 */
interface RoleApi: RoleCommandApi, RoleQueryApi

interface RoleCommandApi {
    /** Create or update a role */
    fun roleDefine(): RoleDefineFunction
}

interface RoleQueryApi {
    /** Get a role by identifier */
    fun roleGet(): RoleGetFunction
    /** Get a list of roles */
    fun roleList(): RoleListFunction
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy