コード例 #1
0
 @Override
 public boolean isAuthToEdit(UserDetails user, ContentAuthorizationInfo info)
     throws ApsSystemException {
   String mainGroupName = info.getMainGroup();
   return this.isAuthToEdit(user, mainGroupName);
 }
コード例 #2
0
 @Override
 public boolean isAuth(UserDetails user, ContentAuthorizationInfo info) throws ApsSystemException {
   List<Group> userGroups = this.getAuthorizationManager().getGroupsOfUser(user);
   return info.isUserAllowed(userGroups);
 }