Class CasbinPolicy

java.lang.Object
com.sankcrm.erp.domain.model.IdentifiedDomainObject
com.sankcrm.erp.domain.model.Entity
com.sankcrm.erp.domain.model.ConcurrencySafeEntity
com.sankcrm.erp.auth.domain.model.casbin.CasbinPolicy
All Implemented Interfaces:
Serializable

@Entity public class CasbinPolicy extends com.sankcrm.erp.domain.model.ConcurrencySafeEntity
Casbin 策略

不包含角色策略

Since:
2.1.0
Author:
zhsxin
See Also:
create time:
2023/4/3 上午11:01
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final String
    策略类型
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    toText(String define)
     
    去除值得空格
    value(com.sankcrm.erp.auth.application.casbin.PolicyField field)
    获取属性值

    Methods inherited from class com.sankcrm.erp.domain.model.ConcurrencySafeEntity

    failWhenConcurrencyViolation, getUpdatedDateTime, getVersion, setUpdatedDateTime, setVersion

    Methods inherited from class com.sankcrm.erp.domain.model.Entity

    getCreatedDateTime, setCreatedDateTime

    Methods inherited from class com.sankcrm.erp.domain.model.IdentifiedDomainObject

    equals, evict, getId, hashCode, merge, refresh, setId

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Field Details

  • Constructor Details

    • CasbinPolicy

      public CasbinPolicy()
  • Method Details

    • toText

      public String toText(String define)
    • trim

      public CasbinPolicy trim()
      去除值得空格
      Returns:
      策略
    • value

      public Optional<String> value(com.sankcrm.erp.auth.application.casbin.PolicyField field)
      获取属性值
      Parameters:
      field - 属性
      Returns:
      Optional