Interface WarlockRoleService

  • All Implemented Interfaces:

    
    public interface WarlockRoleService
    
                        
    Since:

    2021-03-05

    Author:

    trydofor

    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Map<Long, String> loadRoleAll() Load all Role id and its Normalized code
      abstract long create(@NotNull() String name, String remark) Create role, fail if exist the same name
      abstract void modify(long roleId, String remark) Modify the remark/comment of ROle
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • Method Detail

      • loadRoleAll

         abstract Map<Long, String> loadRoleAll()

        Load all Role id and its Normalized code

        Returns:

        map of id and code

      • create

         abstract long create(@NotNull() String name, String remark)

        Create role, fail if exist the same name

        Parameters:
        name - name
        remark - comment
        Returns:

        id

      • modify

         abstract void modify(long roleId, String remark)

        Modify the remark/comment of ROle

        Parameters:
        roleId - id
        remark - comment