egovframework.rfc3.iam.acl
Class ViewResourceHelper

java.lang.Object
  extended by egovframework.rfc3.iam.acl.ViewResourceHelper

public class ViewResourceHelper
extends java.lang.Object


Constructor Summary
ViewResourceHelper()
           
 
Method Summary
static boolean isGranted(int foundMask, java.util.List requiredPermissionList)
          Return true when given mask - foundMask is matched with requiredPermissionList(List of bit mask(Integer) ) at least once.
static java.util.Map makeLoginUserMap(boolean isLogin, boolean isSgroup, java.lang.String groupId)
          Get userId, groupId, authorities(List of assigned role) from authentication object of log-in user and return this information as Map.
static java.util.Map makeLoginUserMap(boolean isLogin, boolean isSgroup, java.lang.String groupId, java.lang.String sgroupGrantApply)
           
static java.util.Map makeLoginUserMap2(boolean isLogin, boolean isSgroup, java.lang.String groupId, java.lang.String sgroupGrantApply, int matchOfficeCnt, java.lang.String myOfficeCd, java.util.List<java.lang.String> matchOfficeList, java.lang.String authApply)
          조직도 권한 탈수있게.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ViewResourceHelper

public ViewResourceHelper()
Method Detail

makeLoginUserMap

public static java.util.Map makeLoginUserMap(boolean isLogin,
                                             boolean isSgroup,
                                             java.lang.String groupId)
Get userId, groupId, authorities(List of assigned role) from authentication object of log-in user and return this information as Map. in case of IAM ExtUser, keep a fact in mind that groupId should be set in userGroupPropertyName of jdbcUserService(ExtJdbcUserDetailsManager). Also usersByUsernameQuery query should contain selection of UserGroups

Returns:
Map Map object that contains information of log-in user

makeLoginUserMap

public static java.util.Map makeLoginUserMap(boolean isLogin,
                                             boolean isSgroup,
                                             java.lang.String groupId,
                                             java.lang.String sgroupGrantApply)

makeLoginUserMap2

public static java.util.Map makeLoginUserMap2(boolean isLogin,
                                              boolean isSgroup,
                                              java.lang.String groupId,
                                              java.lang.String sgroupGrantApply,
                                              int matchOfficeCnt,
                                              java.lang.String myOfficeCd,
                                              java.util.List<java.lang.String> matchOfficeList,
                                              java.lang.String authApply)
조직도 권한 탈수있게. JKH


isGranted

public static boolean isGranted(int foundMask,
                                java.util.List requiredPermissionList)
Return true when given mask - foundMask is matched with requiredPermissionList(List of bit mask(Integer) ) at least once.

Parameters:
foundMask - bit mask of input permission(int)
requiredPermissionList - List of permission that want to be checked
Returns:
boolean true when given mask is matched with permission list at least once.