Package lib

Class Role

Direct Known Subclasses:
Role

public class Role extends Object
Deprecate!!!!!! this class will be move to x package.
Author:
Sakdsitt Likhitmetagool
  • Constructor Details

    • Role

      public Role()
  • Method Details

    • isUserStudioMember

      public static boolean isUserStudioMember(String user, String roleMembers)
      xxx.
    • getUserStudioRight

      public static String getUserStudioRight(String user, String roleMembers)
      xxx.
    • isStudioDesign

      public static boolean isStudioDesign(String right)
      xxx. Design, Develop, Data, Content
    • isStudioDeveloper

      public static boolean isStudioDeveloper(String right)
      xxx. Design, Develop, Data, Content
    • isStudioData

      public static boolean isStudioData(String right)
      xxx. Design, Develop, Data, Content
    • isStudioContent

      public static boolean isStudioContent(String right)
      xxx. Design, Develop, Data, Content
    • addRoleString

      public static String addRoleString(String addRole, String roleJson) throws th.co.skylogicsystem.skyframework.core.utils.web.json.JSONException
      Add 1 Role.
      Throws:
      th.co.skylogicsystem.skyframework.core.utils.web.json.JSONException
    • addRoleString

      public static String addRoleString(String addRole1, String addRole2, String roleJson) throws th.co.skylogicsystem.skyframework.core.utils.web.json.JSONException
      Add 2 Roles.
      Throws:
      th.co.skylogicsystem.skyframework.core.utils.web.json.JSONException
    • addRoleString

      public static String addRoleString(String addRole1, String addRole2, String addRole3, String roleJson) throws th.co.skylogicsystem.skyframework.core.utils.web.json.JSONException
      Add 3 Roles.
      Throws:
      th.co.skylogicsystem.skyframework.core.utils.web.json.JSONException
    • addRoleString

      public static String addRoleString(String addRole1, String addRole2, String addRole3, String addRole4, String roleJson) throws th.co.skylogicsystem.skyframework.core.utils.web.json.JSONException
      Add 4 Roles.
      Throws:
      th.co.skylogicsystem.skyframework.core.utils.web.json.JSONException
    • removeRoleString

      public static String removeRoleString(String removeRole, String roleJson) throws th.co.skylogicsystem.skyframework.core.utils.web.json.JSONException
      Remove Role.
      Throws:
      th.co.skylogicsystem.skyframework.core.utils.web.json.JSONException
    • haveRoleString

      public static boolean haveRoleString(String haveRole, String roleJson) throws th.co.skylogicsystem.skyframework.core.utils.web.json.JSONException
      Have Role.
      Throws:
      th.co.skylogicsystem.skyframework.core.utils.web.json.JSONException
    • addRole

      public static void addRole(String addRole) throws Exception
      Add Role. xxxx
      Throws:
      Exception
    • addRole

      public static void addRole(String userName, String addRole) throws Exception
      Add Role.
      Throws:
      Exception
    • addRoles

      public static void addRoles(String userName, List<String> addRoles) throws Exception
      Add Roles.
      Throws:
      Exception
    • removeRole

      public static void removeRole(String userName, String removeRole) throws Exception
      Remove Role.
      Throws:
      Exception
    • removeRoles

      public static void removeRoles(String userName, List<String> removeRoles) throws Exception
      Remove Roles.
      Throws:
      Exception
    • countRoles

      public static int countRoles(th.co.skylogicsystem.skyframework.core.datalayer.XData user) throws th.co.skylogicsystem.skyframework.core.utils.web.json.JSONException
      xxx.
      Throws:
      th.co.skylogicsystem.skyframework.core.utils.web.json.JSONException
    • countRoles

      public static int countRoles(String roleJson) throws th.co.skylogicsystem.skyframework.core.utils.web.json.JSONException
      xxx.
      Throws:
      th.co.skylogicsystem.skyframework.core.utils.web.json.JSONException
    • roleJsonToArray

      public static ArrayList<String> roleJsonToArray(String roleJson) throws th.co.skylogicsystem.skyframework.core.utils.web.json.JSONException
      xxx.
      Throws:
      th.co.skylogicsystem.skyframework.core.utils.web.json.JSONException
    • roleArrayToJson

      public static String roleArrayToJson(ArrayList<String> roleArray) throws th.co.skylogicsystem.skyframework.core.utils.web.json.JSONException
      Throws:
      th.co.skylogicsystem.skyframework.core.utils.web.json.JSONException
    • removeDuplicates

      public static <T> ArrayList<T> removeDuplicates(ArrayList<T> list)