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

org.beangle.security.blueprint.function.scala Maven / Gradle / Ivy

The newest version!
package org.beangle.security.blueprint

import org.beangle.data.model.TemporalOn

object Scopes extends Enumeration(0) {
  class Scope(name: String) extends super.Val(name)

  /** 不受保护的公共资源 */
  val Public = ScopeValue("Public")
  /** 受保护的公有资源 */
  val Protected = ScopeValue("Protected")
  /** 受保护的私有资源 */
  val Private = ScopeValue("Private")

  private def ScopeValue(name: String): Scope = {
    new Scope(name)
  }
}

trait FuncResource extends Resource {
  import Scopes._
  def scope: Scope
}

trait FuncPermission extends Permission {
  override def resource: FuncResource
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy