Package lib
Class Role
java.lang.Object
lib.Role
- Direct Known Subclasses:
Role
Deprecate!!!!!! this class will be move to x package.
- Author:
- Sakdsitt Likhitmetagool
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidAdd Role. xxxxstatic voidAdd Role.static voidAdd Roles.static StringaddRoleString(String addRole, String roleJson) Add 1 Role.static StringaddRoleString(String addRole1, String addRole2, String roleJson) Add 2 Roles.static StringaddRoleString(String addRole1, String addRole2, String addRole3, String roleJson) Add 3 Roles.static StringAdd 4 Roles.static intcountRoles(String roleJson) xxx.static intcountRoles(th.co.skylogicsystem.skyframework.core.datalayer.XData user) xxx.static StringgetUserStudioRight(String user, String roleMembers) xxx.static booleanhaveRoleString(String haveRole, String roleJson) Have Role.static booleanisStudioContent(String right) xxx.static booleanisStudioData(String right) xxx.static booleanisStudioDesign(String right) xxx.static booleanisStudioDeveloper(String right) xxx.static booleanisUserStudioMember(String user, String roleMembers) xxx.static <T> ArrayList<T> removeDuplicates(ArrayList<T> list) static voidremoveRole(String userName, String removeRole) Remove Role.static voidremoveRoles(String userName, List<String> removeRoles) Remove Roles.static StringremoveRoleString(String removeRole, String roleJson) Remove Role.static StringroleArrayToJson(ArrayList<String> roleArray) roleJsonToArray(String roleJson) xxx.
-
Constructor Details
-
Role
public Role()
-
-
Method Details
-
isUserStudioMember
xxx. -
getUserStudioRight
xxx. -
isStudioDesign
xxx. Design, Develop, Data, Content -
isStudioDeveloper
xxx. Design, Develop, Data, Content -
isStudioData
xxx. Design, Develop, Data, Content -
isStudioContent
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
Add Role. xxxx- Throws:
Exception
-
addRole
Add Role.- Throws:
Exception
-
addRoles
Add Roles.- Throws:
Exception
-
removeRole
Remove Role.- Throws:
Exception
-
removeRoles
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
-