Class WarlockRoleServiceDummy

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      Map<Long, String> loadRoleAll() Load all Role id and its Normalized code
      long create(@NotNull() String name, String remark) Create role, fail if exist the same name
      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

      • WarlockRoleServiceDummy

        WarlockRoleServiceDummy()
    • Method Detail

      • create

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

        Create role, fail if exist the same name

        Parameters:
        name - name
        remark - comment
        Returns:

        id

      • modify

         void modify(long roleId, String remark)

        Modify the remark/comment of ROle

        Parameters:
        roleId - id
        remark - comment